Reply to topic

Service Menus: how to define order?

User avatar Soukyuu
Registered Member
Posts
71
Karma
0
OS

Service Menus: how to define order?

Thu May 28, 2015 11:40 pm
I have several custom service menus installed and they are in seemingly random order in the context menu.
Is there a way to change the order of the service menus?

For example, I have something like this at the moment:
Image

I would like to group the deadbeef entries and sort the rest by name.
User avatar Rog131
Registered Member
Posts
828
Karma
10
The Service Menus are following the Desktop Entry Specification: http://standards.freedesktop.org/deskto ... ec/latest/

There can be the 'InitialPreference' key: http://standards.freedesktop.org/deskto ... t/apb.html

Before:

Image

Adding to the desktop files:

Show Me MediaInfo: 'InitialPreference=10'
MultiMedia Concat: 'InitialPreference=9'
ScreenGen: 'InitialPreference=8'

After:

Image
User avatar Soukyuu
Registered Member
Posts
71
Karma
0
OS
I've tried adding that, but the order did not change.
The two desktop files are as following:
Code: Select all
[Desktop Entry]
Type=Service
Encoding=UTF-8
Icon=deadbeef
InitialPreference=10
Actions=Enqueue
X-KDE-Priority=TopLevel
ServiceTypes=KonqPopupMenu/Plugin,audio/*,application/ogg;audio/x-vorbis+ogg;application/x-ogg;

[Desktop Action Enqueue]
Exec=deadbeef --queue %F
Icon=deadbeef
Name=Enqueue in DeaDBeeF

Code: Select all
[Desktop Entry]
Type=Service
Encoding=UTF-8
InitialPreference=9
Actions=Rename;
ServiceTypes=KonqPopupMenu/Plugin,all/allfiles,inode/directory,inode/directory-locked

[Desktop Action Rename]
Exec=wine /mnt/windata/Program\\ Files/ReNamer/ReNamer.exe %F
Name=Rename with ReNamer...

Still, the rename entry is showing up above the enqueue one.

Actually, it seems like all TopLevel entries will show up at the bottom, after the non-TopLevel ones.
User avatar Rog131
Registered Member
Posts
828
Karma
10
Are you using the non released/git version of the Dolphin or the released version ?

At here:
:~$ dolphin -v
Qt: 4.8.6
KDE Development Platform: 4.14.8
Dolphin: 15.04.0
User avatar Soukyuu
Registered Member
Posts
71
Karma
0
OS
It's the same as yours. I tried using the unreleased git version, but the service menus never showed up even though I've put them to ~/.local/share/kservices5/ServiceMenus/ so I gave up and rolled back to stable.

 
Reply to topic

Bookmarks



Who is online

Registered users: ajmoss, Baidu [Spider], Bing [Bot], Exabot [Bot], Google [Bot], Saru, Snudl, Sogou [Bot], spierrel, Yahoo [Bot]