Postman install fedora8/13/2023 ![]() In some you have to create/edit the following files: With XFCE4 (and probably also others) it is possible to configure xdg-open to define a custom protocol handler. TerminalEmulator, WebBrowser and EmailClient. Looking through the source code shows that is uses desktop files to specify only three types of programs. XFCE uses a program called exo-open, this program doesn't have any way to configure it or add uri handlers. KDE is using kde-open or kfmclient depending on what's available and what version of KDE you have. protocol files in /usr/share/kde4/services/, create a new one for your new protocol and put it in ~/.kde/share/kde4/services/, if it's super useful then consider adding it to the package as a fix for other users. See xchat-2.8.8/src/common/dbus/apps_xchat_url_handler.schemas as an example. This shows how gnome does this, with a gconf settings in /desktop/gnome/url-handlers/. For example on my machine with Ubuntu 10.10 running gnome-open irc://blah opens up xchat because xchat includes a gconf setting patch to add an irc:// handler. Gnome uses the gnome-open program which uses gconf to store everything. See below for desktop environment specific instructions. Xdg-open basically just looks to see which desktop environment you have and then runs gnome-open, gvfs-open, xfce-open, etc. I'm not sure what is drawback (maybe in future The application will launch-if it really can handle the type is aĭifferent question). (I mean, the association will be applied and The above mentioned command will work, but for me it seems to work even desktop file must claim the MIME type before They claim to be able to handle using MimeType field. desktop files often contain list of MIME types that Would associate all known video formats to VLC. For example: grep ^video/ | cut -d\t -f1 | xargs xdg-mime default vlc.desktop It does not contain all types in the world forĮxample the URI handlers, but it could be used for "aggressive" form Note 1: If you want to check out other MIME types, you can lookĪt /etc/mime.types. To any MIME type without opening it: $ xdg-mime query default x-scheme-handler/magnet Want to verify what you just did or see what is currently assigned Normally the command will not output anything-that's OK. (/usr/share/applications, ~/.local/share/applications.), you always use Note that no matter where the file actually is Make the assignment using xdg-mime command: $ xdg-mime default sktop x-scheme-handler/magnet Easy way would be to copy an existing one, rewriteįields you understand and remove those you don't. In case you have "strange" application that may not have the fileĪt all, you can always create one (and perhaps send it to the appĭevelopers). Some applications mayīe installed only for user, in that case the path would be ![]() The command effectively means "list files under this directory Since they are normal textįiles and contain the "official" name, following command can help you: $ grep "Transmission" -l -r /usr/share/applications ![]() desktopįiles live under /usr/share/applications. Version of it, or a completely different name. Often it's not the same as the "official" name but rather lowercase Following are examples of valid MIME types: x-scheme-handler/httpįind out the name of application. For file MIME types, you canįind it out with file command: $ file -i Broken_Blossoms.webmīroken_Blossoms.webm: video/webm charset=binaryįor the above file, MIME type is video/webm.įor URI handlers, the type is x-scheme-handler/, where Note that file managers may choose to use different logic).įind out the MIME type string. Machine, but I believe it should work the same (at least for xdg-open, case ofīittorent), but the same method can be applied to any scheme or file type.Īlso I checked this with Debian Jessie, and I don't actually have Ubuntu I'll describe this with magnet: URI type and Transmission (i.e. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |