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

Attachment: signature.asc
Description: This is a digitally signed message 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.

Reply via email to