Assign application to new custom URI to XFCE4

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 378
Joined: Tue Nov 12, 2013 2:05 am

Assign application to new custom URI to XFCE4

Post by peter_b »

I wanted to introduce a new URI prefix to open links like "shotcut://" directly with the video editing software "Shotcut".
On XFCE4 (Xubuntu 20.04) - and Firefox (v105.0).

I've installed Shotcut using the AppImage.

1) Create symlink with a "nicer" filename for the appimage .desktop file.
cd ~/.local/share/applications
ln -s *shotcut.desktop" shotcut.desktop

2) Add x-scheme-handler to xfce's mimeapps.list:
Option A: using "xdg-mime"

Code: Select all

$ xdg-mime default shotcut.desktop x-scheme-handler/shotcut`
This will add your handler entry under "[Default Applications]".

Option B: Edit the "mimeapps.list" file:

Code: Select all

$ vim ~/.config/mimeapps.list
(Make a backup copy first)

I've added the entry right on top of the "Added Associations" list (you'll find that string).
[Added Associations]
x-scheme-handler/shotcut=shotcut.desktop
Since the symlink is called "shotcut.desktop", it runs the appimage desktop file.


Done.
Post Reply