Re: How do I set up the system to launch my app when the user double-clicks a file?



2008/10/17 Garth's KidStuff <garthskidstuff gmail com>:
I'd like to have a user install my application (LoggerLite) and then be able
to double-click on a "LoggerLite" file and have LoggerLite automatically
launch.  I see how one can use the "Open With" tab in a File's "properties"

I guess this is on Linux? Freedesktop.org has two standards for this:
a way of registering new file types, so that the system can put a name
to the files your app makes, and a way of registering new applications
so that they appear in a menu and have an associated set of file
types.

You need to write two small files which desicribe your file type and
your application, then run two scripts:

update-mime-database
update-desktop-database

Check the docs for details. This should work for Gnome and KDE and
maybe some others. Different magic is required for Windows and for OS
X.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]