menu customiization

Kevin Krammer krammer at kde.org
Fri Jun 6 06:46:14 BST 2014


On Thursday, 2014-06-05, 16:23:10, Felix Miata wrote:
> I've used KMenuEdit to create a bunch of custom Internet items. This is one
> such, Firefox.desktop:
> 
> [Desktop Entry]
> Comment=Web Browser
> Exec[$e]=/usr/local/ffe10/firefox -no-remote -P ffe10

You most likely will want to put a %u or %U into that line somewhere.

Either placeholder tells the launcher that the program is considered to be 
capable of handling URLs itself. (%u one URL, %U a list of URLs).

Just in case someone associates that entry with a MIME type, e.g. text/html
Otherwise the launcher is allowed to assume a safe position and treat the 
program as only capable of loading local files.

> Is placement in /usr/share/applications/ appropriate? TIA

/usr/share is usually considered under control of the package manager, local 
system extensions are usually places in /usr/local/share.

You can of course make a package that installs your .desktop files into that 
location or set the $XDG_DATA_DIRS environment variable to contain the two 
detault search prefixes and any prefix you'd want to use.

See http://www.freedesktop.org/wiki/Specifications/basedir-spec/

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20140606/49c8493b/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list