LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-20-2006, 01:44 PM   #1
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Rep: Reputation: 15
Adding to the K-Menu


[OS = Debian-Sarge]

How do you determine the "Command" to put in the Kmenu editor when adding a program?

I had Opera 8.51. I managed to add a working "command" to the menu by using the browse icon and it now seems a bit of dumb luck. I uninstalled 8.51 and installed 8.5 (static). I can't get it to run from the K menu. The original run command that worked was just the full name of the file. I tried changing it to the full name for the new one but no luck.

Trying to reverse engineer I tried looking at other entries on the Kmenu but could find no consistent theme. Is the "Command" for a program specific to the program? If so what's the easiest way to determine it? Is there a more general way to do it such as a path to the executable? If so how do I find the executable?

Not sure if it is related or not related. When I first installed Opera 5.1 I could start it from Run with the command "Opera" but after about three days that stopped working. The static version I just installed has never started from Run. I get the error message “... could not find Opera Executable”. I have to start it from terminal by typing Opera.

Also probably unrelated but when Googeling this I found several mentions that all Deb packages automatically show up on the Debian menu but it isn't there either even though I installed it with the package manager.

Thanks in Advance

Last edited by Ray2047; 02-20-2006 at 01:47 PM.
 
Old 02-20-2006, 04:02 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
The K-menu command is the same string you use when starting it from a terminal. If you can start it with just the application name there, then is should work in the menu also. If not, then you may need to add the full path name to the command line.

As for the command line not working, it sounds like it somehow got from your PATH. How exactly are you starting it? Do you have to cd to the Opera directory first or type the full path name? If so, then you should be able to get it working again by creating a new symlink to the Opera executable in your /usr/bin folder.

Try typing "whereis opera" in the terminal to see just where the program is installed.
 
Old 02-20-2006, 04:56 PM   #3
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Try typing "whereis opera" in the terminal
Here is the out put: /usr/bin/opera /usr/lib/opera /usr/X11R6/bin/opera /usr/bin/X11/opera /usr/share/opera /usr/share/man/man1/opera.1.gz

I opened USR/bin in Konqueror and found Opera. Unlike some others it has no link listed. I assume that this is the problem. How do I add a link?
 
Old 02-20-2006, 05:11 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Not everything in /usr/bin is a symlink. Many of them are the actual executables. A link only exists if the actual file is in a different directory not in your PATH. The PATH is the list of directories the shell searches when you type a command, BTW. /usr/bin is almost always in the PATH, so many programs just link there as an easy way to make sure the system can find them.

Try using "file /usr/bin/opera" to see what kind of file it actually is.

In any case, since it's seems to be there, and it's in your PATH, that doesn't seem to be the problem. It must lie somewhere else along the line. I'm afraid I don't know how to help you with that.

You might try uninstalling everything using the purge option and then reinstalling it again (be sure to back up your profile settings first). That might set everything back properly.

"/user/bin/opera" in the command line or the KMenu command should work to launch it in any case.
 
Old 02-20-2006, 06:08 PM   #5
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Original Poster
Rep: Reputation: 15
Well I couldn't let it rest while waiting for an answer. <G> What I really wanted was an easy way to start it. Your first post led me to the exicutable and after a Eureka moment and a bit of experimenting I found I could drag it on to the taskbar. Then I tried using usr/bin/opera as the command in Kmenu and again bingo. Next I'll probably asign it a hotkey and delete from the task bar. Thanks for nudging me toward the solution.

Edit: OOps now it doesn't seem to work from the Kmenu.

Last edited by Ray2047; 02-20-2006 at 06:11 PM.
 
  


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
Adding Items to the Menu taichi Linux - Newbie 2 12-06-2005 01:18 AM
adding shortcuts to menu jwijesundra Linux - Newbie 1 01-17-2005 08:23 AM
Adding icons to menu Help j00e Linux - Newbie 0 06-04-2004 05:07 PM
Adding Menu Items hiteshmaisheri Linux - Software 3 04-09-2004 05:41 AM
Adding a KDE menu to gnome menu Projekt2 Slackware 3 10-25-2003 02:47 PM


All times are GMT -5. The time now is 10:36 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