Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 18 Jun 2018, 06:09
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Can't open magnet links with chromium 59
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Author Message
OscarTalks


Joined: 05 Feb 2012
Posts: 1772
Location: London, England

PostPosted: Sun 20 May 2018, 09:38    Post subject:  

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.

_________________
Oscar in England

Back to top
View user's profile Send private message 
fmen

Joined: 07 May 2018
Posts: 51

PostPosted: Sun 20 May 2018, 10:58    Post subject:  

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.
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1772
Location: London, England

PostPosted: Sun 20 May 2018, 13:05    Post subject:  

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.

_________________
Oscar in England

Back to top
View user's profile Send private message 
fmen

Joined: 07 May 2018
Posts: 51

PostPosted: Sun 20 May 2018, 16:03    Post subject:  

xdg-open is as follows:
Code:

#!/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


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]
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1772
Location: London, England

PostPosted: Sun 20 May 2018, 16:22    Post subject:  

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.

_________________
Oscar in England

Back to top
View user's profile Send private message 
fmen

Joined: 07 May 2018
Posts: 51

PostPosted: Sun 20 May 2018, 18:35    Post subject:  

Thanks Oscar, but it's time to throw in the towel. Regardless of where the transmission statement is located in the xdg-open file, still no pleasure.

Luckily, the work-around is a mere keyboard shortcut away...

Code:

#!/bin/bash
xdotool click 3
sleep .1
xdotool key Down Down Down Down Return
xdotool exec transmission-gtk
sleep .5
xdotool key ctrl+u  Return
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 1772
Location: London, England

PostPosted: Sun 20 May 2018, 19:32    Post subject:  

As you wish, but just to let you (and others) know
I did a quick test. Fresh boot of Xenial64 7.5
Updated PPM and used it to install Chromium 66
Created the transmission symlink to transmission-gtk in /usr/bin
Copied and pasted the correct code (as per my earlier post) into /usr/local/bin/xdg-open
It then works.

The whole thing took me about 5 minutes.
Standard Chromium installation plus the 2 necessary fixes

I open Chromium, search for a magnet link, click on the magnet link and Transmission opens and downloads the torrent. I do get the window asking for confirmation about xdg-open and also a couple of other steps that I have to "OK" when Transmission opens.

_________________
Oscar in England

Back to top
View user's profile Send private message 
fmen

Joined: 07 May 2018
Posts: 51

PostPosted: Mon 21 May 2018, 05:15    Post subject:  

Quote:
I do get the window asking for confirmation about xdg-open and also a couple of other steps that I have to "OK" when Transmission opens.


Ah jeez, now I feel like a damn fool!
Once the window came up, I assumed it had failed and stopped going forwards. Sorry for that. Works great!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [23 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0573s ][ Queries: 14 (0.0074s) ][ GZIP on ]