You are not logged in.
Hello everyone,
I'm using feh as my image viewer, and I wanted to be able to make it start when double clicking on an image, while using Nautilus. The problem is feh doesn't appear in the application list Nautilus has. How can I add it?
I'm not using Gnome, I just installed nautilus, and I'm using OpenBox as a stand-alone window manager. I'm not sure if that's enough information about the system.
I'm sorry if this has been posted before, but I couldn't find a thread about it.
Last edited by OhBoy (2018-03-06 10:28:33)
Offline
Have a look at nautilus-actions, an extension that allows you to define custom commands to open certain files.
Last edited by Terminator (2012-06-18 12:28:59)
Offline
You need to register some MIME types with it and give it a .desktop file so that Nautilus knows about feh.
Here's an example, which you could put in /usr/share/applications/feh.desktop. You'll want to edit it to specify an icon and to make sure that all the correct MIME types are listed (I just copied this from eog).
[Desktop Entry]
Name=feh
TryExec=feh
Exec=feh %U
Icon=eog
StartupNotify=true
Terminal=false
Type=Application
Categories=Graphics;RasterGraphics;Viewer;
MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-gray;image/x-icb;image/x-ico;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-pcx;image/svg+xml;image/svg+xml-compressed;image/vnd.wap.wbmp;Then just run
# update-desktop-databaseLast edited by jakobcreutzfeldt (2012-06-18 12:47:54)
Offline
You need to register some MIME types with it and give it a .desktop file so that Nautilus knows about feh.
Here's an example, which you could put in /usr/share/applications/feh.desktop. You'll want to edit it to specify an icon and to make sure that all the correct MIME types are listed (I just copied this from eog).
[Desktop Entry] Name=feh TryExec=feh Exec=feh %U Icon=eog StartupNotify=true Terminal=false Type=Application Categories=Graphics;RasterGraphics;Viewer; MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/pjpeg;image/png;image/tiff;image/x-bmp;image/x-gray;image/x-icb;image/x-ico;image/x-png;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;image/x-pcx;image/svg+xml;image/svg+xml-compressed;image/vnd.wap.wbmp;Then just run
# update-desktop-database
That did it! Thank you!
Offline
Here's an example, which you could put in /usr/share/applications/feh.desktop. You'll want to edit it to specify an icon and to make sure that all the correct MIME types are listed (I just copied this from eog).
put it in ~/.local/share/applications instead.
Offline