VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: include an item in menu list  (Read 2201 times)

ramesh

  • Member
  • *
  • Posts: 67
include an item in menu list
« on: July 17, 2007, 06:32:29 am »

hello all,

I installed K3b using gslapt.  By typing K3b in a terminal it will launch.  But this item is noted in the main menu list.
How to include this in the main menu list  ?
Logged

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: include an item in menu list
« Reply #1 on: July 17, 2007, 07:36:13 am »

do a search for 'k3b menu' and you should find a post by caitlyn that will help you.  I'm surprised you didn't already come across this post in your searches.
Logged

ramesh

  • Member
  • *
  • Posts: 67
Re: include an item in menu list
« Reply #2 on: July 17, 2007, 08:06:03 am »

no useful hints yet
Logged

newt

  • Vectorian
  • ****
  • Posts: 1132
Re: include an item in menu list
« Reply #3 on: July 17, 2007, 08:58:18 am »

I assume you're using VL58STD: Could you please post the output from 'cat /usr/share/applications/k3b.desktop'?  If there is no output or the file cannot be found then please copy the desktop file there.  You can do this by issuing this command as root:
cp /opt/kde/share/applications/kde/k3b.desktop /usr/share/applications/

You _may_ need to restart X before it appears (maybe not).

HTH
Logged

ramesh

  • Member
  • *
  • Posts: 67
Re: include an item in menu list
« Reply #4 on: July 17, 2007, 03:21:12 pm »

Newtor,

carried out all your suggestions The output is:

No such file or directory
Logged

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: include an item in menu list
« Reply #5 on: July 17, 2007, 03:25:32 pm »

Issue this command as root in a terminal:

updatedb

Then in a terminal, as either a user or root issue this command:

locate k3b.desktop

What does it tell you?
Logged
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

ramesh

  • Member
  • *
  • Posts: 67
Re: include an item in menu list
« Reply #6 on: July 17, 2007, 03:34:59 pm »

lagagnon,

issued the commands The output is :


/opt/kde/share/applications/kde/k3b.desktop
/opt/kde/share/mimelnk/application/x-k3b.desktop
/opt/kde/share/services/kfile_k3b.desktop
/usr/share/applications/k3b.desktop
Logged

lagagnon

  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1922
Re: include an item in menu list
« Reply #7 on: July 17, 2007, 03:41:54 pm »

Well Ramesh, you do have a k3b.desktop file in the proper location ( /usr/share/applications ) so appears as though the k3b.desktop file does not have "Categories" which match the xfce specification for desktop files.

You therefore need to edit (as root) usr/share/applications/k3b.desktop and find the line at the bottom starting "Categories" and add an appropriate menu heading as found in xfce (for example "Utilities" or "System" or "Multimedia" or whatever xfce menu category you want it to appear under).

Logged
"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: include an item in menu list
« Reply #8 on: July 17, 2007, 03:48:23 pm »

I can confirm the .desktop needs editing.

Change this line:
Quote
Categories=KDE;Application;AudioVideo;DiscBurning;
To this line:
Quote
Categories=KDE;Application;AudioVideo;DiscBurning;Multimedia;

Should be at or about line 115.

Make sure it's the: /usr/share/applications/k3b.desktop  Or it won't show up in Xfce no matter how much you edit it.
« Last Edit: July 17, 2007, 03:50:02 pm by exeterdad »
Logged

ramesh

  • Member
  • *
  • Posts: 67
Re: include an item in menu list
« Reply #9 on: July 17, 2007, 06:50:11 pm »

laganon,

Well done..  Thank you.

Logged