New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magnet links can't open currently associated application #129
Comments
|
I think here is a good place to bring up a more general issue: There's a problem with scheme handlers in LXQt. The same issue @fulalas has with magnet I have with to all places possible (~/.config/lxqt-mimeapps.list, ~/.config/mimeapps.list, ~/.local/share/applications/mimeapps.list) to no avail, so I stopped using it 2 years ago and forgot to look into it or even report it (there were more important issues those days). That's while Elsewhere, I discussed that |
|
Nice information, tsujan! I would like to add that Firefox detects Transmission Qt and asks for opening magnet links with it, but Chrome-based browsers (Chromium and Opera, so far) just open a new tab. Also, .m3u files (Winamp list type, used among so many audio/video players, like Vlc, Qmmp and SMPlayer) have a similar behavior: double-click on them from Pcmanfm-qt and nothing happens. |
|
Oh, I forgot to confirm @fulalas's report. Because of that issue, I always drag and drop magnets into qBittorrent. Under KDE, they're correctly opened when they're clicked. @fulalas, I think your problem with audio/video players is quite different. (1) Have you added associations? You could use (2) Have you installed |
|
1- The way I did ('/usr/share/applications/mimeinfo.cache' and '/usr/local/share/applications/defaults.list'), when I open File Associations dialog, I see this: http://img.photobucket.com/albums/v256/Delerue/fileassociations_zpst0bfm7co.png As you can see, there are 2 sections regarding m3u files. The second one (x-mpegurl) is already set to Qmmp. The first one (vnd.apple...?) isn't. In a nutshell: this way it doesn't open Qmmp when I double-click a m3u file. 1.1- I would like to point to another little bug inside File Associations: if you add a new association, the dialog isn't refreshed, so you need to click on another file type and click again on the first one to see the changes. 2- I'm not sure. I'm using Porteus, which is derived from Slackware. Any suggestion? |
Please forget about
Please let this report remain for If your problem with file associations isn't solved after doing what I said above, please first search for an open issue about it and add a comment; if there's no open issue, you could open one. However, I'm pretty sure that LXQt has no problem with file association. Its problem is only with scheme handlers. |
|
BTW, we'd be grateful if you report the refresh problem too but not against pcmanfm-qt (report it here). |
|
OK, I tried what you said (and it fixed .webp files not being opened by LXImage-qt, thanks) but the problem with .m3u files remains -- it simply doesn't open anything unless you right-click and 'Open with...'. :(
It seems there is no 'issue' section on LXQt-Config page: https://github.com/lxde/lxqt-config/ |
|
For m3u files , I have: in |
Issues can be opened at https://github.com/lxde/lxqt/issues |
|
OK, after a deeper investigation I finally began to understand the bug. The problem is a combination of 2 things, none of them related to mime stuff: 1- if the m3u file is inside a FAT/NTFS partition (it's always marked as executable and apparently you can't change this); When these 2 things are set you won't be able to open a m3u file, since LXQt will try to execute it instead of opening it. So either you move your m3u files to a Linux partition (and change to non-executable) or uncheck Pcmanfm-qt 'Don't ask options on launch executable file'. None of these solutions sound reasonable to me. Do you have a better solution? |
|
All of my partitions are ext4 and even when I make an m3u file executable (which is meaningless), pcmanfm-qt correctly opens it with the associated media player when I choose "Open". As you said, your problem is with NTFS, not with mime. Please be specific when reporting a bug, otherwise a lot of time and energy would be wasted! |
|
Except that this m3u bug is secondary. The main reason this issue was opened is because of x-scheme-handler, specifically with magnet links. Do you think that I wasn't clear regarding this main bug? :( |
I meant the second bug you included in this report, of course. We had a long discussion about it to no avail -- as we had at lxqt/pcmanfm-qt#487 -- just because some important facts weren't stated. |
|
I'm sorry, but users don't have all the knowledge you expect them to have. This one regarding m3u files was very specific and I bet even you wasn't aware of it entirely. All debate is valid. Living and learning. 👍 |
We really don't expect users to have any knowledge about programming. What we prefer is a bug report that contains specific info because otherwise false problems would be created.
Not at all! Maybe, even now, you haven't stated it clearly? As far as I understood, it was only about files on an NTFS partition. It wouldn't require any knowledge to include that part in the report -- and it would make a great difference. Anyhow, being specific is not an expectation but a request that if met, good things could happen. |
|
To be as clear as possible, if, in lxqt/pcmanfm-qt#487, you just mentioned that there was a dialog, many things would be clear from the start. I hope you'll report bugs that we don't know about; I just like to see more specific reports from you -- like this one, except for the m3u part. Actually, on this page, you could see how good a clear report is. |
|
I opened lxqt/pcmanfm-qt#492, which is related to your m3u problem but your problem has another side too, i.e. files are excuatable on your NTFS partition. This part shouldn't be about LXQt but, perhaps, about how that NTFS partition is mounted. If those files are NOT seen as executable files by another file manager, please open an issue with a title like "pcmanfm-qt sees all files executable on NTFS partitons". Sorry, I can't have any NTFS partition! |
|
@fulalas Which browser are you using ? |
|
Chrome/Chromium uses, AFAIK, xdg-open to find which application to use. To set it, use: |
|
@luis-pereira |
|
@luis-pereira, I'm using Opera (Chromium-based). If I execute the first command you told me this is what terminal prints: And if I execute the second command I receive this: Then I made a copy of my mimeapps to '/home/guest/.local/share/applications/' and ran the second command again, receiving no output whatsoever. Unfortunately the problem remains: clicking on a magnet link inside Opera/Chromium simply opens a new tab instead of Transmission Qt. :( |
|
I've finally managed to fix it. It seems to be a problem with xdg-open, not LXQt, although maybe LXQt can handle this somehow. https://github.com/ziggi/xdg-utils-patched/blob/master/generic_x_scheme.patch |
|
At least for mailto, I see the problem as an LXQt bug because mailto works OK with KDE. |
|
I don't know. Maybe KDE handles this problem. |
Then LXQt should do so too. My point: this is a bug. |
|
@tsujan If xdg-open does the correct thing, it's not a LXQt bug but rather someone else's bug that LXQt should fix. I remember that a try was made to include lxqt in the list. But without success. Will try to find it. |
Yes, this is what I also concluded a year ago. If lxde is recognized, lxqt should be included too. Here, I was hoping for a workaround. If I said it was an LXQt bug, I meant it on the UX level -- but you're right, on the technical level. |
|
@tsujan Didn't install it yet. But, by looking at the source.... it probably works. |
|
@agaida that's good news. |
|
Ah, at last! mailto is fixed too :) Glad to see that both LXQt and Enlightenment are recognized! @luis-pereira, thanks for the info! This can be closed because, sooner or later, the git |
|
Actually, xdg-utils 1.1.2 is a mess regarding LXQt: although magnet and mailto are fixed, xdg-open thinks that all links starting with |
|
we should, it's boring |
I agree. Fortunately, 1.1.2 isn't released yet. Let me explain the problem: The fact that pcmanfm-qt opens files with their corresponding apps doesn't prove that xdg-utils is OK. Qt has the static method With xdg-utils 1.1.1 and if |
|
The disaster happened; xdg-utils 1.1.2 came to Arch (and Manjaro) with its LXQt-friendly appearance. I have to change: lxde|lxqt)
open_lxde "$url"
;;to lxde|lxqt)
open_generic "$url"
;;in Please tell them (I would if I knew of the best way to do it)! |
|
Opened lxqt/lxqt#1298 |
I'm not sure if this is the right section.
Magnet links opened from inside the browser don't open Transmission Qt. I put this inside '/usr/share/applications/mimeinfo.cache':
And this inside '/usr/local/share/applications/defaults.list':
It's important to notice that 'transmission-qt.desktop' exists and it's pointing to the right exec command. Also, Transmission Qt is working fine and it downloads magnets link if you paste inside it manually
The text was updated successfully, but these errors were encountered: