You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, April 16th 2004, 1:41am

kmenuedit problem

I'm using Suse 9.0. While trying to add an entry for Rekall I somehow removed the "Office" part of the menu. The kmenuedit tool does not appear to function properly. Based on other posts I ran "# kbuildsycoca --noincremental" and reviewed ~/.kde/share/applnk but I am unable to restore the "Office" group menu items.

I thought maybe I could copy the "Office" group from another user but how ... ? Thanks for any help or hints.

m4ktub

Intermediate

Posts: 257

Location: Lisbon, Portugal

Occupation: Software Engineer

  • Send private message

2

Friday, April 16th 2004, 11:38am

Try deleting ~/.kde/share/applnk (after copying a backup :-)). This should make you use the original KDE menu entries.

If it does not work try to reeinstall (update) the package that provides the applnks: rpm -q --whatprovides /usr/share/applnk.

NOTE: I'm using Fedora and the kde's (and most application) prefix is /usr, I think that SuSE's is /opt

3

Friday, April 16th 2004, 3:55pm

m4ktub thankyou for the reply.

I deleted ~/.kde/share/applnk. This directory was recreated and the menu worked exactly as before - that is, without the "Office" selection.

I also used Suse update feature to update kdelibs3-3.1.4-xx to the latest version. This also did not correct the problem.

As before the kmenuedit tool does not work (changes made are not saved). Does anyone know if there is a way to manually or otherwise edit the K menu? Thanks for any replies.

4

Friday, April 16th 2004, 6:06pm

The default location for the kde installation I'll call KDE_PREFIX (for Slackware it is /opt/kde), since different distros seem to have a different location for kde.................Anyway, the program link entries in the Start Applications menu are found at KDE_PREFIX/share/applinks, which contains the entries seen by all users. There you'll see a directory structure that reflects the layout found in the start menu. Each directory contains a hidden file, called .directory, which is used by the start menu to list that directory.

See if there's an 'Office' directory. If there is but there's no 'Office' entry in the start menu, then make sure that hidden .directory file exists. If it's missing, then create one and see if that does the trick. Here's the content's of my .directory file in the Office directory: [code:1][Desktop Entry]
Encoding=UTF-8
Name=Office
Name[af]=Kantoor
Name[ar]=برامج مكتبية
Name[az]=Ä°ÅŸ Yeri
Name[be]=Офіс
Name[br]=Burev
Name[bs]=Uredske aplikacije
Name[ca]=Oficina
Name[cs]=Kancelář
Name[da]=Kontorprogrammer
Name[de]=Büroprogramme
Name[el]=Γραφείο
Name[eo]=Oficejo
Name[es]=Oficina
Name[et]=Kontoritöö vahendid
Name[eu]=Bulegoa
Name[fa]=دفترکار
Name[fi]=Toimisto-ohjelmat
Name[fo]=Skrivstova
Name[fr]=Bureautique
Name[he]=יישומים משרדיים
Name[hu]=Irodai alkalmazások
Name[is]=Skrifstofuforrit
Name[it]=Ufficio
Name[ja]=オフィス
Name[ko]=사무용 도구
Name[lo]=ໂປຣແກຣມຊຸດສຳນັກງານ
Name[lt]=Biuro programos
Name[lv]=Ofiss
Name[mk]=Канцелариски програми
Name[mn]=Албан програм
Name[mt]=Uffiċċju
Name[nb]=Kontor
Name[nl]=Kantoortoepassingen
Name[nn]=Kontor
Name[nso]=Ofisi
Name[oc]=Burèu
Name[pl]=Biuro
Name[pt]=Escritório
Name[pt_BR]=Escritório
Name[ro]=Aplicaţii de birou
Name[ru]=Офис
Name[se]=Kántuvra
Name[sk]=Kancelária
Name[sl]=Pisarna
Name[sr]=Kancelarija
Name[ss]=Lihhovisi
Name[ta]=«ÖÅĸõ
Name[th]=โปรแกรมชุดสำนักงาน
Name[tr]=Ofis
Name[uk]=Офіс
Name[ven]=Ofisi
Name[vi]=Văn phòng
Name[wa]=Buro
Name[xh]=Ofisi
Name[zh_CN]=办公
Name[zh_TW]=辦公軟體
Name[zu]=Ihhofisi
Icon=package_wordprocessing
SortOrder=koshell.desktop,kword.desktop,kspread.desktop,kpresenter.desktop
[/code:1]
If the whole directory is missing, then you'll need to recreate it. For Slackware, this is found in the KOffice pkg.

There is also a similar directory structure in each user's home directory, ~/.kde/share/applinks. This, however, only contains entries that have been added after the main KDE installation, and is only specific for that user.

HTH :)
---thegeekster
How long a minute is depends on which side of the bathroom door you're on.

5

Friday, April 16th 2004, 8:08pm

thegeekster, thankyou for the reply.

For Suse 9.0 /opt/kde3/share/applinks/Office/.directory did exist so I did some trial and error and came up with the following solution:

When I used kmenuedit to attempt to edit the K menu the following files were created/edited:

~/.local/share/desktop-directories
~/.local/share/applications
~/.config/menus/applications-kmenuedit.menu

These files were not present in the home directory of another user that did *not* attempt to use kmenuedit to edit the K menu, therefore, I renamed the .local and .config directories, restarted KDE and all was back as it was!

Apparently these files are used by the kmenuedit for user level changes. It would also appear that the kmenuedit program included with Suse 9.0 and updated on 15 Apr 04 does not work properly:

package: kdebase3 version 3.1.4-48
desc: KDE Core Components
provides: kmenuedit.so