[solved] Gnome / Nautilus: Open With CLI programm

Hello,
How can I add CLI programs such as sxiv Image Viewer to the Open With context menu entry in Nautilus?
In particular I want to open images with sxiv by default when clicking on the image in Nautilus.
Thanks
Last edited by orschiro (2013-08-09 20:21:56)

I think the list of "Open With" applications is created by reading the ".desktop" files that are on your computer. You can read about them here. The sysem files are in "/usr/share/applications" and your personal ones are in "~/.local/share/applications". Just create a .desktop file for sxiv that uses a command similar to the one cellisten posted.
GNOME probably also has a way to create .desktop files with a GUI (I think it used to be called "alacarte").
cellisten wrote:What I have done is to create a script and put that in /usr/bin.
Did you copy your OWN file into a directory that's controlled by pacman?

Similar Messages

  • [SOLVED] Gnome Nautilus File Browser Make Open Folder open in browser

    Hi,
    I fixed this on my desktop a while back, can't seem to remember how. I want it that that so if i click on a folder, it opens with full browser, not just the folder itself.
    Last edited by playdafunkimuzic (2009-01-01 05:50:15)

    also in the future i guess u are new like me do a little searching around on the Wiki it has lot of information that can help you out
    especially the install guide and beginners guide
    happy new year

  • [SORT OF SOLVED] Trash keeps opening with Firefox on AWN!

    Yeah, this is really starting to annoy me.
    Apparently, :trash is set to open using Firefox when I load it through anything other than a File Manager (Nautilus, Thunar, etc)
    I cant seem to remove it either from Firefox's extensions list.
    I cant open my trash via AWN in any desktop environment for this very reason, and it's irritating the living daylights out of me. I'm sure it's something in the OS or Firefox that is to blame. What's even stupider is that in gconf-editor, the key under desktop/gnome/url-handlers/trash is set to nautilus %s, so I am completely dumbfounded at why this doesn't work right.
    I suspect it's Firefox, and I'd like to see if I can remove the :trash file association from it, I just don't know how to go about this.
    Also, when I attempt to access :trash by typing it into PCManFM's location bar, heres what I get
    (pcmanfm:11635): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
    ** (pcmanfm:11635): DEBUG: FmJob error: No such file or directory
    ** (pcmanfm:11635): DEBUG: unable to load icon . GThemedIcon application-octet-stream gnome-mime-application-octet-stream application-x-generic
    ** (pcmanfm:11635): DEBUG: unable to load icon . GThemedIcon inode-symlink gnome-mime-inode-symlink inode-x-generic
    ** (pcmanfm:11635): DEBUG: unable to load icon . GThemedIcon application-x-extension-part gnome-mime-application-x-extension-part application-x-generic
    ** (pcmanfm:11635): DEBUG: unable to load icon . GThemedIcon application-x-extension-img gnome-mime-application-x-extension-img application-x-generic
    ** (pcmanfm:11635): DEBUG: FmJob error: No such file or directory
    ** (pcmanfm:11635): DEBUG: FmJob error: No such file or directory
    ** (pcmanfm:11635): DEBUG: FmJob error: No such file or directory
    ** (pcmanfm:11635): DEBUG: FmJob error: The specified directory is not valid
    (pcmanfm:11635): Gtk-CRITICAL **: gtk_entry_get_text: assertion `GTK_IS_ENTRY (entry)' failed
    Segmentation fault
    Something is obviously borked and I'd like to know what it is. I did manage to edit one of the mimetype folders and completely remove :trash links from Firefox, but they still keep trying to open with it anyway, only now they ask me what program I want to use. I just wanna use my trash as normal.
    Edit: Apparently docky works just fine, but I've decided against using a dock. I'll figure out the trash myself. Gonna use bmpanel2 for now.
    Last edited by Nimbus (2011-07-03 01:41:12)

    I looked under both locations, and found nothing. When I typed in msconfig in Start>Run..., I checked System Configuration Utility, and found one process that puzzled me... http://img821.imageshack.us/img821/3281/wuththehell.jpg
    I unchecked it and closed the window after saving, but didnt restart. Later on I decided to take a look at it again, and when I opened the window, the process was gone.

  • Bridge CS6 "open with" choose programms

    OS: Win 7 Professional 64bit
    Bridge: CS6 5.0.2.4
    Hello,
    how can I choose the programms that are shown in Adobe Bridge CS6 at "File->Open With"? I've got at least 2 programms which shouldn't be there, e.g. Firefox or COM Surrogate 6.1. I don't know, how they came into the menu. When I right-click the files in Windows Explorer, the "Open With" menu is filled with image editing and viewing tools. Everything is ok there. No Firefox and no COM Surrogate. Besides I want to add some tools like Photoshop or Windows Image Viewer and some more. When I add Photoshop in "Preferences->File Allocation", it is in the menu. But when I add Windows Image Viewer, Photoshop isn't there anymore. Is there a way to configure this? Especially COM Surrogate is a operating system network tool and shouldn't absolutly be there. I tried to set the file allocation to standard, but COM Surrogate and Firefox stayed in the menu.
    Greetings
    Thomas

    Curt Y wrote:
    Also, be sure to use a card reader for file transfer as a camera transfer can introduce errors.
    I work with a Hasselblad medium format camera. I do not have a CF card in use. And I can tell that this worked absolutely flawless for many years. I NEVER had corrupted files caused by transfer. Many photographers using pro medium format cameras work the same way (Phase One, Leaf, etc.). They do not use CF cards but firewire cable. the problem arised when I started using the CS6 Bridge software. And it turned out that I get more and more corrupted files which appeared to be fine before. So from one shooting i.e. 1 file of 100 was corrupted first. Since I started using Bridge and changed RAW settings and worked with the same files after some days I have 5 corrupted files of 100 now. And NO it is not my system. It works fine with other camera RAWs where I have absolutely no problems. It is only the Hasselblad files. Though I still can open the Hasselblad RAW files with the Hasselblad software. The problems are only with the Bridge (respectively the raw editor) in combination with the Hasselblad files.
    To me it looks like CS is corrupting the files since they worked fine at first - even in CS and after some days playing around in CS the appear to be corrupted. Funny that I can open the same files without problems using a different software - isn't it? ;-)
    thanks for the link I will try it.... :-)

  • [solved] Gnome 2.30 with Compiz - xcursor theme problem

    Hello all.
    After the recent upgrade to gnome 2.30 I've notice that the cursor under compiz/emerald stays in the "default" theme, no matter what you set on configs...
    All my computers, after the upgrade, show the "default" theme cursor, except when passing the cursor over GTK apps like firefox or openoffice (when it shows the selected cursor theme) or over window close/max/min buttons.
    If you switch from compiz to metacity, the theming works normally.
    I've tested this with all themes I have installed, in many computers.
    Any ideas how to solve this?
    Thanks in advance for any help.
    Last edited by Raws (2010-04-15 16:30:05)

    Same Problem here, but creating /usr/share/icons/default/index.theme does not work.
    I have the DMZ-White theme in /usr/share/icons
    [michael@acer01 ~]$ ll /usr/share/icons/DMZ-White/
    insgesamt 204K
    -rw-r--r-- 1 root root 32 1. Dez 22:40 cursor.theme
    -rw-r--r-- 1 root root 186K 1. Dez 22:40 dmz.svg
    -rw-r--r-- 1 root root 1,3K 1. Dez 22:40 index.theme
    drwxr-xr-x 5 root root 4,0K 1. Dez 22:40 pngs
    I created two links /usr/share/icons/default/index.theme and ~/.icons/default/index.theme
    both point to /usr/share/icons/DMZ-White/cursor.theme
    [michael@acer01 ~]$ ll /usr/share/icons/default/index.theme
    lrwxrwxrwx 1 root root 39 1. Dez 22:49 /usr/share/icons/default/index.theme -> /usr/share/icons/DMZ-White/cursor.theme
    [michael@acer01 ~]$ ll ~/.icons/default/index.theme
    lrwxrwxrwx 1 michael michael 39 1. Dez 22:43 /home/michael/.icons/default/index.theme -> /usr/share/icons/DMZ-White/cursor.theme
    which has this content
    [michael@acer01 ~]$ cat /usr/share/icons/DMZ-White/cursor.theme
    [Icon Theme]
    Inherits=DMZ-White
    If I choose default pointer in Appearance Preferances, still the X-default-Theme is used.
    And in the DMZ-White Theme does not appear in  "Appearance Preferances --> Theme --> costumize --> Pointer" at all.
    I tried also other themes (which appear in the Pointer Tab) but it does not work. Still the X-default-Theme
    Are there maybe any other things I've missed.
    Why does the DMZ-White Theme not appear in the Pointer Tab in Appearance Prefs?
    I'm using Gnome since a few days ...

  • [solved] gnome-panel restarts with alt+f2???

    Hello, few days ago I made an upgrade (pacman -Syyu) and I noticed today that when I make alt+f2 my gnome-panel restarts and no Run windows opens... well the first time I press alt+f2 it opens but only for a microsecond and it closes and gnome-panel restarts...
    Any ideas how can fix this?
    Last edited by n0kS (2010-05-06 15:37:29)

    update to gtk2 2.20.1-2

  • (solved) gnome-terminal opening as xterm

    So when I open gnome-terminal, the title shows xterm instead. What's causing this?
    Last edited by zephyrus17 (2008-12-26 12:52:07)

    a) Yes
    b) I did pacman -S gnome-terminal and it just asked for a reinstall
    EDIT: I think a restart fixed it. Thanks, anyway.
    Last edited by zephyrus17 (2008-12-26 12:48:28)

  • [SOLVED] Gnome 3 : Nautilus won't start from other application

    Hi everyone!
    Ok I search everywhere and I found nothing. I have this problem for a long time for now. My interface is in french so I'll try to translate the message but they could be differente in an english gnome.
    I can start nautilus directly from the console or from the menu, no problem. But when I connect a usb drive or any external drive it pop me : "Impossible to open a folder for 'usbName'. No application are register to execute this file".
    Another exemple is when a download a file from internet and then from the browser I click "open the containing folder" it do nothing.
    If a open Baobab and I right click a folder and "open folder" it pop me : "Impossible to open the folder 'folderName'. No viewer are install"
    So well.... I really don't know what to do... Maybe it is in a kind of default application editor but well.. I find something that was kind of this but there was no option for the default system explorer.
    Help me please!!
    Thank you ! Hope someone know what to do! :-(
    Last edited by mooviies (2011-07-30 02:13:16)

    mooviies wrote:
    Hi everyone!
    I can start nautilus directly from the console or from the menu, no problem. But when I connect a usb drive or any external drive it pop me : "Impossible to open a folder for 'usbName'. No application are register to execute this file".
    Another exemple is when a download a file from internet and then from the browser I click "open the containing folder" it do nothing.
    If a open Baobab and I right click a folder and "open folder" it pop me : "Impossible to open the folder 'folderName'. No viewer are install"
    So well.... I really don't know what to do... Maybe it is in a kind of default application editor but well.. I find something that was kind of this but there was no option for the default system explorer.
    right-click on a file / file-type that has no registered application, then click 'properties' and then navigate to the 'open with' tab ~ if there are no applications listed then click 'show other applications'... after that find the proper application to open a given file, then click 'set as default'.
    this should solve your problem. The only one i am not sure about is the USB thing, but the rest are easily solved. Gnome by default will not automatically associate all mime-types to applications. you need to do some of this yourself.
    for example; in order for .html files to open in gedit by default, I first had to associate .html to gedit, and 'set as default' ~ otherwise, all html (local files) automatically would open in Firefox. 
    hope this helps
    Last edited by triplesquarednine (2011-07-29 16:05:02)

  • [SOLVED] nautilus-open-terminal without menubar

    How do I get nautilus-open-terminal to open the terminal with no menubar?
    I.e. I prefer 'gnome-terminal --hide-menubar' as suppose to just 'gnome-terminal'
    Anyone?
    Last edited by alphahsk (2007-12-04 17:49:34)

    you can disable the menu in all new windows in the general tab of gnome-terminal's edit profile
    That solved it. Thanks.

  • GDM no more "open with" menu after last Gnome upgrade (3.16.0)

    Hi,
    Using nautilus, I used to have an "open with" menu showing a list of alternative applications to open a file, such as in this picture:
    https://ubuntugenius.files.wordpress.co … .png?w=500
    This was quite handy as I could use different applications to open the same type of file without changing the default association each time I use an alternative application.
    Since I have updated my system, Gnome has been upgraded and now there is only an "open with another application" entry in the "right click menu", which, if I use it, change the default application for the type of the selected file.
    The list of alternative applications is still the same as before, but the behaviour is now different, since these application do not appear directly in the menu any more, and since selecting any of them will change the default file-application association. For me, this is a bit annoying since I wants to use two different applications to open the same type of file.
    I could not find anything on the internet related to this vanishing of the "open with" menu.
    I am curious to know if anybody has the same problem as me. I wonder if it is a feature or if there is a problem somewhere?
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by charlie (2015-04-14 14:49:02)

    That behavior of nautilus seems to be a new "feature". I really have no idea why they change such things.
    At least, there's allready a bugreport for this:
    https://bugzilla.gnome.org/show_bug.cgi?id=747706

  • [SOLVED] Android askedt to be 'opened' with Anjuta when plugged in

    When i plug in my android phone (samsung galaxy s advance) on my Gnome Shell 3.10 powered android a notification pop-up on the bottom of the screen asking me if I want to "open" it with anjuta.
    Expected behavour:
    i expect gnome shell ask me if I want to open it with Nautilus
    How i can change the "open with" behavour?
    Nautilus perfectly recognize Android allowing me to access all my files, so it's just annoing it doesn't is the default application to be opened when i plug in the phone
    Last edited by tracuboTL (2014-03-09 18:41:36)

    Give
    $ xdg-mime default nautilus.desktop inode/directory
    a shot.

  • Gnome places menu opens with file-roller

    In the gnome places menu - all works fine except when trying to open recently used items - which open up with file roller instead of the proper app. The same thing happens when trying to download OOo docs - I can't open them directly but have to save them first. I've search through gconf-editor settings, have all my 'properties/open with' etc. all correct in nautilus and for individual items, but no luck.
    Any thoughts?

    Thanks - I read this already though, but it doesn't work. Actually the only things in recently used docs that don't open, and the only things I can't open automatically when downloading (ie I have to save them first and open them separately) are OOo docs. But I have OOo docs set to open with OOo - so its a conundrum!

  • Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Lightroom 4 crashes when trying to open the slideshow module. I spent over three hours with both Adobe and Apple tech support and we know it is a permission issue but have not been able to get it solved.  It started with the last upgrade to 10.8

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    The first step should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    resetpassword
    That's one word, all lower case, with no spaces. Then press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?

    Every Programme that it is opened with Adobe Reader doesn't work What Can I do ?

    More information please.
    Version of Reader? OS?  Can you open reader by double-clicking on its icon? Can you open reader by double-clicking on a pdf file? What programs are trying to open reader? Some programs might be restricting your ability to view pdf files using the Reader plug-in due to security concerns. If this is the case you need to find out how to enable the plug-in in the case of each application.

  • The airport card on my macbook pro is not functioning. In the airport firmware folder it says that it opens with final cut express. Is this the problem and how do i solve it?

    The airport card on my macbook pro is not functioning. In the airport firmware folder it says that it opens with final cut express. Is this the problem and how do i solve it?

    Hopefully one of these steps should solve the problem.
    1. System Preference > Sound > Output > Internal Speakers
        Highlight  Internal Speakers
        Make sure that Mute is not enabled.
    2. Remove the headphone.
        If you see red light in the headphone port, plug the headphone
        in and out of the port 5 or 6 times to flip the microswitch inside.
        Sound output may be stuck in the digital mode.
    3. Reset PRAM.  http://support.apple.com/kb/PH4405
    4. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    5. Applications > Utilities > Audio MIDI Setup
        Audio Devices window
        Side Bar
        Click the Built-in Output.
        Under Mute any of the boxes checked? If so, uncheck it.
    6. System Preferences > Sound> Sound Effects
        Play sound effects through:
       Select "Internal speakers" and then back to "Selected sound output device".

Maybe you are looking for