This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Association with torrent files doesn't work

Tags: None
(comma "," separated)
expez
Registered Member
Posts
6
Karma
0
'open with ktorrent' has no effect. I have to manually hunt down the torrent file. I've tried manually selecting 'open with' /usr/bin/ktorrent but that doesn't work either. How can I fix this? Running archlinux with KTorrent v 4.3.1.
User avatar
google01103
Manager
Posts
6668
Karma
25
does ktorrent run? does it work with other torrent files?

what happens when in Konsole you run: ktorrent url

what is the torrent you are trying to load ?


OpenSuse Leap 42.1 x64, Plasma 5.x

expez
Registered Member
Posts
6
Karma
0
1) ktorrent is running
2) no torrent files are automatically associated with ktorrent when running 'open with'
3) ktorrent <torrent file> in console works fine, it either adds the torrent to ktorrent or tells me it is already active

This may or may not be relevant, but I'll mention that I'm not using KDE, in fact I'm not using a DE at all. 'open with', for torrents, worked with transmission, and works fine for other file types.

Thank you for your incredibly quick reply!
User avatar
google01103
Manager
Posts
6668
Karma
25
If no DE what are you running as a window manager? How do you create file associations in whatever you're running?

Does "open with" work for other KDE apps? If none installed it might be worth installing and trying one

This might not be the correct forum, it might be a whatever you're running that's not a DE forum question


OpenSuse Leap 42.1 x64, Plasma 5.x

expez
Registered Member
Posts
6
Karma
0
xmonad is the window manager I'm using.

xdg-open is the program that is used to associate file types with programs, this program is desktop independant. I believe KDE uses it as does gnome, xfce etc
User avatar
google01103
Manager
Posts
6668
Karma
25
maybe you need to use xdg-mime to set ktorrent as the default app


OpenSuse Leap 42.1 x64, Plasma 5.x

expez
Registered Member
Posts
6
Karma
0
google01103 wrote:maybe you need to use xdg-mime to set ktorrent as the default app


I tried running
Code: Select all
xdg-mime default ktorrent.desktop application/x-bittorrent


but that didn't have any effect.

Code: Select all
$ xdg-mime query default application/x-bittorrent                             
ktorrent.desktop


Not sure what this output is supposed to be or what the .desktop suffix means, but it's consistently used.
User avatar
google01103
Manager
Posts
6668
Karma
25
From the Arch wiki
Desktop entries for applications or .desktop files are generally a combination of meta information resources and a shortcut of an
application. These files usually reside in /usr/share/applications for systemwide installed applications or
~/.local/share/applications for user specific applications.


this is the openSUSE .desktop file less any translation strings
[Desktop Entry]
Name=KTorrent
GenericName=BitTorrent Client
Exec=ktorrent %i -caption "%c" %u
Icon=ktorrent
Type=Application
X-DocPath=ktorrent/index.html
MimeType=application/x-bittorrent;application/x-torrent;
InitialPreference=5
X-DBUS-StartupType=Unique
X-DBUS-ServiceName=org.ktorrent.ktorrent
Comment=A BitTorrent program for KDE
Terminal=false
Categories=Qt;KDE;Network;P2P;


does it work as expected for a new/diff user?


OpenSuse Leap 42.1 x64, Plasma 5.x

expez
Registered Member
Posts
6
Karma
0
yeah, mine is at /usr/share/applications/kde4/ktorrent.desktop

Starting to think xdg-open isn't the thing to worry about here. Firefox already suggests 'open with ktorrent', which is /usr/bin/ktorrent, so there's probably no reason to get xdg-open involved at all.
expez
Registered Member
Posts
6
Karma
0
Whatever, just gonna go with another client. Thanks for all your help!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell