Can't open magnet links with chromium 59
Can't open magnet links with chromium 59
I am using Chromium 59 but I can't seem to get magnet links to open transmission, when I click on a magnet link, a pop up appears (link attached) but whatever I click, nothing happens, What to do?
- Attachments
-
- Screenshot_2017-06-29.png
- (7.12 KiB) Downloaded 240 times
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
Make sure your xdg-open has the correct code in the correct position within the file.
In some Puppies it was wrong.
Look for it in /usr/local/bin
If you get it right, clicking magnet links in Chromium will launch the download in Transmission.
This is one that works:-
In some Puppies it was wrong.
Look for it in /usr/local/bin
If you get it right, clicking magnet links in Chromium will launch the download in Transmission.
This is one that works:-
Code: Select all
#!/bin/sh
#this script created by Jemimah. see: http://murga-linux.com/puppy/viewtopic.php?t=63400&start=150
#110115 xdg-open used to be a symlink to defaulthandler.
case "$1" in
'') exit
;;
magnet:*) exec transmission "$1"
;;
*://*) exec rox -U "$1"
;;
*@*.*) exec rox -U "mailto:${1}"
;;
*) exec rox "$1"
;;
esac
Oscar in England
Found the file but don't know how and where to enter the code, if I open it with geany, it says "does not look like a text file or file encoding is not supported".
- Attachments
-
- Screenshot_2017-06-30(1).png
- (33.95 KiB) Downloaded 210 times
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
Hello fmen,
Did you try the fix posted?
I had similar finding when I was using tahrpup in 2015.
http://www.murga-linux.com/puppy/viewtopic.php?t=101776
What are the contents of your xdg-open file.
I don't have xenialpup so can't test.
Did you try the fix posted?
I had similar finding when I was using tahrpup in 2015.
http://www.murga-linux.com/puppy/viewtopic.php?t=101776
What are the contents of your xdg-open file.
I don't have xenialpup so can't test.
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
Using what browser?
I think the xdg-open script is only used by Chromium derivatives
The Mozilla-type browsers including PaleMoon, Firefox and SeaMonkey have a different internal handling system which may need to be initialised.
I don't know of any other "update" to this issue.
All I can tell you is that for me, magnet links open transmission from all my "big" browsers.
My desktop environment is always the standard Puppy ROX-Filer and JWM.
I think the xdg-open script is only used by Chromium derivatives
The Mozilla-type browsers including PaleMoon, Firefox and SeaMonkey have a different internal handling system which may need to be initialised.
I don't know of any other "update" to this issue.
All I can tell you is that for me, magnet links open transmission from all my "big" browsers.
My desktop environment is always the standard Puppy ROX-Filer and JWM.
Oscar in England
For those browsers fiddling with about:config will help
Quick search gave me this link
https://support.mozilla.org/en-US/questions/1012864
Quick search gave me this link
https://support.mozilla.org/en-US/questions/1012864
Thanks for the quick responses.
I am using xenialpup 7.5 64bit, Rox and JWM.
Original xdg-open:
Magnets will open in transmission from palemoon without issues.
I am using xenialpup 7.5 64bit, Rox and JWM.
Original xdg-open:
Code: Select all
#!/bin/sh
#this script created by Jemimah. see: http://murga-linux.com/puppy/viewtopic.php?t=63400&start=150
#110115 xdg-open used to be a symlink to defaulthandler.
case "$1" in
'') exit
;;
magnet:*) exec transmission "$1"
;;
*://*) exec rox -U "$1"
;;
*@*.*) exec rox -U "mailto:${1}"
;;
*) exec rox "$1"
;;
esac
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
In xenialpup64 7.5
The problem might be that there is no executable named transmission
There is only transmission-gtk
The xdg-open file is attempting to open the magnet links with transmission which does not exist.
Best solution is to go into /usr/bin
Right-click on transmission-gtk and select link, name the link as transmission
Or open a terminalAn alternative method would be to edit xdg-open, changing the word transmission to transmission-gtk
The problem might be that there is no executable named transmission
There is only transmission-gtk
The xdg-open file is attempting to open the magnet links with transmission which does not exist.
Best solution is to go into /usr/bin
Right-click on transmission-gtk and select link, name the link as transmission
Or open a terminal
Code: Select all
cd /usr/bin
ln -s transmission-gtk transmission
Oscar in England
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
Try the first idea I suggested
i.e. Make a (relative) symlink to transmission-gtk and name the symlink as transmission
In this case, leave xdg-open as it is.
Apart from any browser associations, adding this symlink will enable opening of transmission from terminal with the command transmission. I think it is always good to be able to launch programs using their names anyway. In fact if Phil does not see this I think I might suggest to him that he needs to add this symlink as an update to xenialpup, because really it is a bug that it is missing I would say.
As I said before, PaleMoon has a completely different mechanism.
PaleMoon does not use xdg-open.
It is reading your system and detecting that the command transmission-gtk is required to open the transmission program.
Also, I would still be curious to know exactly what Chromium derivative browser you are using, including the version number and where you got it from.
i.e. Make a (relative) symlink to transmission-gtk and name the symlink as transmission
In this case, leave xdg-open as it is.
Apart from any browser associations, adding this symlink will enable opening of transmission from terminal with the command transmission. I think it is always good to be able to launch programs using their names anyway. In fact if Phil does not see this I think I might suggest to him that he needs to add this symlink as an update to xenialpup, because really it is a bug that it is missing I would say.
As I said before, PaleMoon has a completely different mechanism.
PaleMoon does not use xdg-open.
It is reading your system and detecting that the command transmission-gtk is required to open the transmission program.
Also, I would still be curious to know exactly what Chromium derivative browser you are using, including the version number and where you got it from.
Oscar in England
Chromium
Version 65.0.3325.181 (Official Build) Built on Ubuntu , running on (64-bit)
Installed via PPM.
OK, so I dragged transmission-gdk to the desktop and renamed it transmission. Is that a symlink? Clicking it opens transmission. Should that have fixed the chromium problem? It hasn't. Thanks for working with me.
Version 65.0.3325.181 (Official Build) Built on Ubuntu , running on (64-bit)
Installed via PPM.
OK, so I dragged transmission-gdk to the desktop and renamed it transmission. Is that a symlink? Clicking it opens transmission. Should that have fixed the chromium problem? It hasn't. Thanks for working with me.
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
That is a ROX pinboard icon which operates as a desktop launcher but it won't fix the problem.
A symbolic link will be in your file system and looks like a normal file or directory but with a little arrow in the top left corner.
The graphical way to create one is:-
Locate /usr/bin/transmission-gtk
Right-click > Link and enter the name (transmission in this case) in the little dialog box. This should give you the symlink transmission next to the real file transmission-gtk both alongside each other in /usr/bin
You should then be able to open a terminal, type transmission and press enter and transmission should open. This is effectively what the xdg-open script is trying to do.
By the way, not sure what modifications you made to xdg-open but it might be a good idea to restore it back as it was so long as you have got the symlink in place.
A symbolic link will be in your file system and looks like a normal file or directory but with a little arrow in the top left corner.
The graphical way to create one is:-
Locate /usr/bin/transmission-gtk
Right-click > Link and enter the name (transmission in this case) in the little dialog box. This should give you the symlink transmission next to the real file transmission-gtk both alongside each other in /usr/bin
You should then be able to open a terminal, type transmission and press enter and transmission should open. This is effectively what the xdg-open script is trying to do.
By the way, not sure what modifications you made to xdg-open but it might be a good idea to restore it back as it was so long as you have got the symlink in place.
Oscar in England
xdg-open is as follows:
Creating the symlink transmission from transmission-gtk in /usr/bin and then running transission in console, opens the application.
Clicking on a magnet file in chromium continues to give the same problem.
Maybe I should try re-installing chromium....
Nope, upgrading to v.66 did not help either.
[/code]
Code: Select all
#!/bin/sh
#this script created by Jemimah. see: http://murga-linux.com/puppy/viewtopic.php?t=63400&start=150
#110115 xdg-open used to be a symlink to defaulthandler.
#!/bin/bash
case "$1" in
'') exit
;;
*://*) exec rox -U "$1"
;;
*@*.*) exec rox -U "mailto:${1}"
;;
*) exec rox "$1"
;;
magnet:*) exec transmission"$1"
;;
esac
Clicking on a magnet file in chromium continues to give the same problem.
Maybe I should try re-installing chromium....
Nope, upgrading to v.66 did not help either.
[/code]
- OscarTalks
- Posts: 2196
- Joined: Mon 06 Feb 2012, 00:58
- Location: London, England
Well that is odd because those contents of xdg-open will not work.
They are different from the contents which you posted earlier in the thread which looked correct, but the changes are NOT the ones I suggested.
The line about magnet and exec transmission needs to be higher up.
This looks like a wrong xdg-open which did appear in some Puppies for a time.
Anyway, best thing to do is delete all of that.
Copy the contents of xdg-open that I posted earlier
( I think the contents you posted the first time were the same as mine)
Paste everything into your xdg-open and save it.
Then try again.
They are different from the contents which you posted earlier in the thread which looked correct, but the changes are NOT the ones I suggested.
The line about magnet and exec transmission needs to be higher up.
This looks like a wrong xdg-open which did appear in some Puppies for a time.
Anyway, best thing to do is delete all of that.
Copy the contents of xdg-open that I posted earlier
( I think the contents you posted the first time were the same as mine)
Paste everything into your xdg-open and save it.
Then try again.
Oscar in England