LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 05-03-2013, 09:29 AM   #1
ajaygarg
Member
 
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 ::

Code:
[Desktop Entry]
Name=EBookReader
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/main.py "" /home/ajay/Activities/EBookReader.activity
Icon=accessories-calculator
NotShowIn=KDE;
Terminal=false
MimeType=application/pdf;image/vnd.djvu;image/x.djvu;image/tiff;application/x-cbz;application/x-cbr;application/epub+zip;text/plain;application/zip
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;Calculator;

(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,
Ajay
 
Old 05-03-2013, 11:59 AM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,229

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
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
ajaygarg
Member
 
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 !!
 
  


Reply


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 04:07 PM.

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