This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Where is entry in K-Menu editor?

Tags: None
(comma "," separated)
Horus
Registered Member
Posts
296
Karma
0
OS

Where is entry in K-Menu editor?

Wed Apr 30, 2014 11:08 am
Hello,

I have a .desktop file for an application
Code: Select all
% cat ~/.local/share/applications/mendeleydesktop.desktop
[Desktop Entry]
Name=Mendeley Desktop
GenericName=Research Paper Manager
Comment=Mendeley Desktop is software for managing and sharing research papers
Exec=/home/florian/.local/share/mendeleydesktop %u
Icon=mendeleydesktop
Terminal=false
Type=Application
Categories=Education;Literature;Qt;
X-SuSE-translate=false;
MimeType=x-scheme-handler/mendeley;application/pdf;text/x-bibtex;
X-Mendeley-Version=1

I find it when using the search in k-menu. But when I open the k-menu editor I can't find it. Neither I can find it when using the K-Menu by browsing through the categories. i tried browsing all sub-categories, yes, also education.
Where is this entry? How can I edit it?

Thanks!
wolfi323
Registered Member
Posts
1129
Karma
11
OS

Re: Where is entry in K-Menu editor?

Wed Apr 30, 2014 11:54 am
Horus wrote:categories. i tried browsing all sub-categories, yes, also education.
Where is this entry?

Where each Category appears in the K-Menu is defined in /etc/xdg/menus/.

On my openSUSE 13.1 installation, the .desktop file you posted would appear in "Education"->"More Programs".

How can I edit it?

Well, if you don't find it in the menu editor, you can of course always edit the .desktop file itself in a text editor.
If you just want to change the name/description, this should be quite straight-forward to do.

You have to run "kbuildsycoca4" afterwards to notify KDE of the change though.
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Where is entry in K-Menu editor?

Wed Apr 30, 2014 12:11 pm
why not just use the Kmenu editor to add entries


OpenSuse Leap 42.1 x64, Plasma 5.x

Horus
Registered Member
Posts
296
Karma
0
OS

Re: Where is entry in K-Menu editor?

Wed Apr 30, 2014 12:14 pm
google01103 wrote:why not just use the Kmenu editor to add entries
Because the .desktop file was auto added by the application.
Horus
Registered Member
Posts
296
Karma
0
OS

Re: Where is entry in K-Menu editor?

Wed Apr 30, 2014 12:15 pm
Yeah, I could edit the file directly. Honestly, editing wasn't the main problem. The main problem is my curiosity that I have an application I can find but it appears nowhere.

But I have found it now. If I enable "show hidden entries" there is a category at the top. Funny thing, the option hidden entry is not enabled...
wolfi323
Registered Member
Posts
1129
Karma
11
OS
Horus wrote:But I have found it now. If I enable "show hidden entries" there is a category at the top. Funny thing, the option hidden entry is not enabled...

Well, the purpose for hidden entries is to be _not_ shown, so don't find it funny that this is not enabled by default. ;)

I don't even have that category here.

So maybe your distribution's default menu structure (in /etc/xdg/menus/) puts entries with certain categories in the .desktop file (Education;Literature;Qt; in particular) to the "hidden" category?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Where is entry in K-Menu editor?

Thu May 01, 2014 11:03 am
Please note that the menu will always hide categories which are empty - they will usually be visible in KMenuEdit though.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
wolfi323
Registered Member
Posts
1129
Karma
11
OS

Re: Where is entry in K-Menu editor?

Thu May 01, 2014 11:31 am
bcooksley wrote:Please note that the menu will always hide categories which are empty - they will usually be visible in KMenuEdit though.

It did not show in KMenuEdit either.

Ah well, I forgot to enable "Show hidden entries" when looking earlier. I can see the category named "Hidden" now (in KMenuEdit that is)... 8)

For clarification: the whole "Hidden" category is hidden, so entries inside it don't show up either even if they are not explicitely marked as hidden.
But IMHO this is the expected behavior.

It doesn't seem to be possible to hide/unhide categories in KMenuEdit though.
Horus
Registered Member
Posts
296
Karma
0
OS
wolfi323 wrote:
Horus wrote:But I have found it now. If I enable "show hidden entries" there is a category at the top. Funny thing, the option hidden entry is not enabled...

Well, the purpose for hidden entries is to be _not_ shown, so don't find it funny that this is not enabled by default. ;)

What I meant was, that the Hidden option of the application was not set. If an entry is hidden, should it be found my k-menu search?
wolfi323 wrote:So maybe your distribution's default menu structure (in /etc/xdg/menus/) puts entries with certain categories in the .desktop file (Education;Literature;Qt; in particular) to the "hidden" category?

My distribution is Arch, they tend to stick with updstream's defaults. I've a taken a look at the files in /etc/xdg/menus but must confess, that I can't figure it out.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]