If your application works on a certain type of file (a MIME type), you can write a .desktop file and associate your application with that MIME type; then it will be available in all file managers.
If you don't have any specific MIME type, you can cheat and use MIME type inode/directory
, then you can open it from the context menu of directories.
Examples:
Minimalistic .desktop file
[Desktop Entry]
Type=Application
Name=MyApplication
Exec=myapp %f
Icon=myapp
GenericName=MyApplication that does cool things
Terminal=false
MimeType=inode/directory;
Move that file to /usr/share/applications
to make it available for all users on your machine. If you create a .deb package from your application to distribute it, install the .desktop file to /usr/share/applications
in your make install
step and package it with your application.
Further Reading