LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2011, 02:48 PM   #1
Jickler
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Rep: Reputation: Disabled
Cannot execute .desktop package


Hey all,

Hope this in the right forum to (considered desktop forum), apologies if it has to be moved.

I'm running a Smeegol distribution (MeeGo on top of OpenSUSE), which prohibits me from using the typical right click to add launcher to program menu method. I've installed a piece of notetaking software (KeepNote), and I'd very much like it to show up in my distro's application menu. It was installed via downloading source and running an included setup.py file. It will run perfectly when I run "keepnote" in terminal.

I was originally trying to write my own .desktop file for it, but found a .desktop while poking around in the source folder. I moved it into /usr/share/applications and it shows up in the program bar but I can't get it to do anything either from the program bar or by doubleclicking it in the file browser. While trying to get it to work, I've also chowned it to root and made sure it's set to run as an executable.

I doubt that the issue is caused by the actual .desktop file because the one that I wrote will also not work, but I'll post the contents just in case. Thanks for any help!

Code:
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=KeepNote
GenericName=Note-taking Application
Icon=/home/nfd/Files/Static Files/Icons/keepnote.png
Exec=keepnote %f
Categories=Office
#MimeType=
#Terminal=false
#StartupNotify=false
 
Old 09-06-2011, 03:46 PM   #2
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Right-click on the icon, click on Properties, and tell me what the command is?

If there isn't a command, you will need to put it in there ( /usr/bin/program_name usually ).

If you want to edit the menuitem, do this:

- Press Alt+F2
- type this: alacarte
 
Old 09-06-2011, 04:19 PM   #3
Jickler
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
It's set to
Code:
keepnote %f
I whereis'd keepnote and put in /usr/local/bin/keepnote via alacarte, but that didn't work either. I navigated to that directory in the file browser, and it failed to open by doubleclicking it. Could that be the wrong directory? I'm also wondering if it could be related to using the python installer?

To reiterate, it runs fine by typing "keepnote" into a terminal prompt.

Thanks!
 
Old 09-06-2011, 04:24 PM   #4
kasl33
Member
 
Registered: Oct 2004
Location: USA
Distribution: Ubuntu-Server, Mac OS X, Arch Linux
Posts: 356

Rep: Reputation: 48
Quote:
Originally Posted by Jickler View Post
It's set to
Code:
keepnote %f
I whereis'd keepnote and put in /usr/local/bin/keepnote via alacarte, but that didn't work either. I navigated to that directory in the file browser, and it failed to open by doubleclicking it. Could that be the wrong directory? I'm also wondering if it could be related to using the python installer?

To reiterate, it runs fine by typing "keepnote" into a terminal prompt.

Thanks!
That's strange. I'm not familiar with the keepnote program or what the %f option is for, but what happens if you remove the %f from the command?
 
Old 09-06-2011, 04:33 PM   #5
Jickler
LQ Newbie
 
Registered: Sep 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
I dropped the f via alacarte so it now just reads "keepnote" but still no luck Just to test, I executed "keepnote %f" in terminal (not sure if those arguments translate), and it opened KeepNote, and KeepNote tried (and failed) to open "%f"
 
Old 09-06-2011, 06:05 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
a few things
I take it the icon also dose not work
Quote:
Icon=/home/nfd/Files/Static Files/Icons/keepnote.png
see the space in the location -- remove that

also is this " keepnote " program installed in "/home/nfd/Files/Static Files" -- again a space in the location

also suse has a nice ( AND ALREADY IN THE SYSTEM $PATH) "/home/nfd/bin"

if you must install to your home folder and not to the system install there.
 
  


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
ubuntu-desktop package is not installing cowboysaif Linux - Newbie 9 05-16-2010 04:00 PM
execute in different desktop angelo_maci Linux - Newbie 2 03-17-2010 11:24 AM
LXer: GNOME Debian Package Finder: Rough and ready package search for the desktop LXer Syndicated Linux News 0 09-04-2008 02:00 AM
Desktop shortcut to Terminal, insert and execute a string. nads1978 Ubuntu 9 09-02-2008 11:44 AM
Execute terminal commands from .desktop files tuculover Linux - Newbie 6 10-22-2004 06:49 PM


All times are GMT -5. The time now is 10:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration