I have not tested this but one possible way would be to do something like the following:
and add the following lines to ~/.local/share/applications/defaults.list
The above is a fairly crude association. For finer grained association, you need to use desktop entries. See the Desktop Entry Specification.
Does anyone know how to associate a file to a program in solaris 8(running CDE). I use my filemgr in solaris and have some .jpg files that are associated with the old openwindows imagetool, so when I dubbleclick the .jpg-file imagetool opens.
How and where can I change this to another program... (0 Replies)
Dear all,
We are planning on upgrading our current HP unix 64 bites from version 11.0 to 11.11. I would like to find out all the possible problems that we will encounter especially on the application side. Can anyone provide me with list(s) or link(s) where I can find out more information?
... (0 Replies)
Hi...
I have build a program for the Velleman K8000 interface card, in java, which works just fine in windows, but now I want to use the program on a Unix-System.
Is it possible to somehow convert the dll file to a format that Unix supports, or do I have to find another way?
Dll-file:... (3 Replies)
Under Leopard, I like to conveniently open Terminal windows onto remote systems. I've created several settings files in Terminal, one for each remote system that I want to access. To open window, I right-click on the Terminal icon in the Dock, expand the "New Window" menu item, and select the... (0 Replies)
I'm not very good at associative arrays; and working on this PHP code has got me a bit stumped. My goal is to populate a (multidimensional) associative array in a PHP while look after a MySQL query. The code fragment looks like this:
while($campaign_row = mysql_fetch_array($campaigninfo))
{
... (9 Replies)
hello,
I need help in Unix scripting
I have a whole list of file name in a Input file. I need to run the command iteratively and output the result into a text file
e.g
While read < Input file ; do
QUERY filenane
done > output.txt
Appreciate your help
Thank you
Suhas;) (8 Replies)
I want to have a xterm or xapplication from a Solaris client to appear on my RHEL Server running GNOME desktop. It may sound easy at first but, I have done the basics and I be stuck.
Have Tried:
Linux - logged in as root, open a Terminal and did a echo $DISPLAY and it reports back :0.0
I... (7 Replies)
With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here:
ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages
The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies
LEARN ABOUT OPENSOLARIS
update-desktop-database
update-desktop-database(1) User Commands update-desktop-database(1)NAME
update-desktop-database - Desktop file caching utility
SYNOPSIS
update-desktop-database [--help] [--verbose] [--quiet] [filepath]
DESCRIPTION
update-desktop-database creates cache files for desktop file MIME type mapping for improved MIME lookup performance.
It expects to be given the path to a directory or directories containing a number of application installed .desktop files, e.g.
/usr/share/applications, and writes a mime-info.cache containing cached information about the MIME types that each application can handle.
If no directory is provided, this utility will use a default directory list as specified in the FreeDesktop MIME specification. This cache
file is used to avoid a lot of system call and disk seek overhead in a number of applications.
OPTIONS
The following options are supported:
-?, --help Show help options.
-v, --verbose Turn on verbose output.
-q, --quiet Do not provide any output.
OPERANDS
The following operands are supported:
filepath The path to a directory or directories containing a number of application installed .desktop files.
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
1 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/update-desktop-databaseThe command-line executable for the application.
/usr/share/applications System desktop file directory
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-desktop-prefs |
+-----------------------------+-----------------------------+
|Interface stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO update-mime-database(1), gnome-desktop-item-edit(1), attributes(5), gnome-interfaces(5)
Latest version of the GNOME Desktop User Guide and GNOME System Administration Guide for your platform.
NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2007.
SunOS 5.11 31 Jan 2007 update-desktop-database(1)