I am using qBitTorrent 5.0.4 but launching it from the AppImage.
How do I assign Magnet File links to this "app", as there is no "installed" version of qBitTorrent on the system.
Do I need to install qBitTorrent with apt-get
(or whatever), associate it, then delete it using purge
, or do I install it, associate it and leave it there?
The only reason I'm using the AppImage is that the version is later than the one you get by using apt-get (or whichever command you use to install it).
Thanks.
Since you got an already working
.desktop
-file now, add the lineand add a
%U
to yourExec=
-line so it looks liketo your
.desktop
-file. After doing so, you need to update the mimeinfo cache (see the example below how to do so) to get magnet links associated with your appimage.To get an icon for your
.desktop
-file you need to copy an icon from your appimage to a location of your choice (for example~/.icons/
) and specify the full path to the icon in the.desktop
-file.While qbittorrent is running, the appimage will be mounted in a hidden folder under
/tmp
, in my case the folder is/tmp/.mount_qbittoAdJGnK
, the name might be slightly different in your system. Browse the directory to/tmp/.mount_qbittoAdJGnK/usr/share/icons
and copy an icon from there. I tried the scalabe icon/tmp/.mount_qbittoAdJGnK/usr/share/icons/hicolor/scalable/apps/qbittorrent.svg
which is working fine.Here an example for my very basic
.desktop
-file stored under/home/mook/.local/share/applications/qbittorrent-5.0.4_x86_64.AppImage.desktop
:After creating that file I needed to run
update-desktop-database ~/.local/share/applications
. If you stored your.desktop
-file in/usr/share/applications
runsudo update-desktop-database /usr/share/applications
.The output of
gio mime x-scheme-handler/magnet
isClicking on a magnet-link in firefox results in
Clicking on `Choose Application leads to
Clicking on
Open Link
opens qbittorrent:I also have the icon in my application launcher: