Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 05-03-2013, 09:29 AM   #1
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
Custom application not showing in "Open with" menu, in Gnome2

Hi all.

I have developed a new document-reader, and want to have it "installed" in Gnome2 on Fedora-14.
So, I created the following "~/.local/share/applications/gnome-ebookreader.desktop" file ::

[Desktop Entry]
Name[en_CA]=E-Book Reader
Name[en_GB]=E-Book Reader
Name[en_US]=E-Book Reader
Comment[en_CA]=Perform arithmetic, scientific or financial calculations
Comment[en_GB]=Perform arithmetic, scientific or financial calculations
Exec=python /home/ajay/Activities/EBookReader.activity/ "" /home/ajay/Activities/EBookReader.activity

(Note that, I have largely derived it from the Calculator application :P).

With the above file, I am able to see the option for "E-Book Reader" in Applications -> "Accessories", and can launch the app too
However, when I right-click on a document like a PDF, I DO NOT see the "Open with E-Book Reader" option in the right-click menu.

What am I missing?
I will be grateful for any pointers

Thanks and Regards,
Old 05-03-2013, 11:59 AM   #2
Senior Member
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,651

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
Right-click on a PDF, choose Properties, Open with, and Add. Then you can set your program as the default.
1 members found this post helpful.
Old 05-05-2013, 05:59 AM   #3
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
Thanks DavidMcCann,

Your reply was helpful

I was missing the "%f" in the "exec" section (this "%f" denotes the path of the file, upon whom the "Right click" has happened).
Once I inserted that, the "Open With EBookReader" appeared after right-clicking

Thanks again !!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Home Folder" showing up 2 times in panel menu dEnDrOn Linux - General 2 02-06-2012 05:53 AM
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 07:41 PM
xfce4-quicklauncher plugin not showing in the xfce panel's "add New Items" menu. bgryderclock Slackware 1 07-05-2011 01:24 AM
Kate Editor not showing up in the "Application-> * " menu anywhere. nikunjbadjatya Linux - Desktop 2 02-22-2011 03:53 AM
[SOLVED] Remove "Wine core exe" in "Open with" menu (Ubuntu) tranduyhung Linux - Software 3 01-13-2011 08:21 PM

All times are GMT -5. The time now is 05:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration