Author Topic: KDE4 Menu Editor - Solved !!!  (Read 3435 times)

Offline dangbert

  • Sr. Member
  • ****
  • Posts: 360
KDE4 Menu Editor - Solved !!!
« on: June 13, 2010, 06:01:53 AM »
This is so trivial I almost hate to ask.  I was using 2010, fully upgraded, but it appeared to have some faulty links on the multimedia side.  So, I downloaded 2010.1 and with two exceptions it is working perfectly.  One I have a work around on, the other is an inconvenience.  I cannot make any changes to the KDE4 menu.  I open Menu Editor, make my changes and hit save, just like always.  However, the changes are not saved and sometimes , if I have moved a sub-menu it, the sub-menu is deleted (restore brings it back).  It almost has to be a permissions problem, but where is the file?  I have looked in "/ect/xdg/menus," "/usr/bin" and /home/user/.menu" none of them makes a difference.

Thanks

Deb
« Last Edit: June 13, 2010, 09:17:55 PM by dangbert »

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6377
  • I'm going South
Re: KDE4 Menu Editor
« Reply #1 on: June 13, 2010, 08:31:55 AM »
I have noticed that changes to individual menu entries seem to be saved in .desktop files under /home/<user>/.local/share/applications, while at least some changes to the menu structure show up in /home/<user>/.config/menus/applications-kmenuedit.menu.

But don't take my word for it. Checking the permissions of ~/.local/share/applications and ~/.config/menus (and some of the files in those directories) won't hurt though.
« Last Edit: June 13, 2010, 11:29:51 AM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline everge48

  • Sr. Member
  • ****
  • Posts: 383
Re: KDE4 Menu Editor
« Reply #2 on: June 13, 2010, 11:12:40 AM »
You could also try..
Code: [Select]
su kmenueditand see if your changes stick.
« Last Edit: June 13, 2010, 11:17:01 AM by 4evergr8ful »
Any sufficiently advanced technology is indistinguishable from magic.

Offline dangbert

  • Sr. Member
  • ****
  • Posts: 360
Re: KDE4 Menu Editor
« Reply #3 on: June 13, 2010, 11:54:41 AM »

Well, I4revergr8ful, I  tried the latter, used the Super-User terminal instead of "su"

<unknown program name>(24824)/: KUniqueApplication: Cannot find the D-Bus session server:  "/usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
"

<unknown program name>(24823)/: KUniqueApplication: Pipe closed unexpectedly.


BLackbird, nothing in the /home/<user>/.config/menus/applications folder and nothing on Kmenu in /home/<user>/.local/share/applications,

Thanks

Dangbert

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6377
  • I'm going South
Re: KDE4 Menu Editor
« Reply #4 on: June 13, 2010, 12:18:10 PM »
Well,
Code: [Select]
su kmenuedit won't work. That command does not tell bash to start kmenuedit as root: it tells bash that you want to become the substitute user "kmenuedit" (which most probably doesn't exist).

Code: [Select]
kdesu kmenuedit might work though.


Well, I4revergr8ful, I  tried the latter, used the Super-User terminal instead of "su"

<unknown program name>(24824)/: KUniqueApplication: Cannot find the D-Bus session server:  "/usr/bin/dbus-launch terminated abnormally with the following error: No protocol specified
Autolaunch error: X11 initialization failed.
"

<unknown program name>(24823)/: KUniqueApplication: Pipe closed unexpectedly.

The result would have been the same had you just sued to root in a terminal. Using the command
Code: [Select]
su - instead of plain
Code: [Select]
su might have worked.

Quote


BLackbird, nothing in the /home/<user>/.config/menus/applications folder and nothing on Kmenu in /home/<user>/.local/share/applications,

But did you check the permissions and owner of the folders?
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline dangbert

  • Sr. Member
  • ****
  • Posts: 360
Re: KDE4 Menu Editor
« Reply #5 on: June 13, 2010, 12:38:56 PM »

I had not checked the permissions, which were set to 766 .  Changed all to 777 and still no go.

Dangbert

Offline everge48

  • Sr. Member
  • ****
  • Posts: 383
Re: KDE4 Menu Editor
« Reply #6 on: June 13, 2010, 08:31:17 PM »
Well,
Code: [Select]
su kmenuedit won't work.

Right, right. It was late and I was tired. I had been reading about sudo and making a separate user account for firefox. My bad.
What I meant was open a terminal console then..
Code: [Select]
su -
Code: [Select]
kmenuedit
Anyway, seems OP got the gist of what I was saying.

Also you could try using kbuildsycoca4.
Code: [Select]
kbuildsycoca4 --menutest


« Last Edit: June 20, 2010, 04:42:10 AM by 4evergr8ful »
Any sufficiently advanced technology is indistinguishable from magic.

Offline dangbert

  • Sr. Member
  • ****
  • Posts: 360
Re: KDE4 Menu Editor
« Reply #7 on: June 13, 2010, 09:14:35 PM »
Evidently the kbuildsycoca4 --menutest worked.  I just modified the Menu and the changes held.  When I ran it and opened the Menu, I saw the Sub-menu I had been trying to place.  I then moved to apps to it and saved.  That held.  I then added two apps to it and that held.  So we are good to go.

Thanks

Deb
« Last Edit: June 13, 2010, 09:17:22 PM by dangbert »