-
Notifications
You must be signed in to change notification settings - Fork 12
Does not work on Linux #5
Comments
The protocol handler is registered via the desktop file on Linux. (at least on Gnome) So adding So it should look something like this: [Desktop Entry]
Name=FreeTube
GenericName=YouTube Player
Comment=An open source desktop YouTube player built with privacy in mind.
Exec=freetube %U
Terminal=false
Type=Application
Icon=freetube
Categories=Network;
MimeType=x-scheme-handler/freetube; After adding the line to the desktop file one should run |
Doesn't work for me either. Ubuntu 18.04 in Brave (chromium based) browser. I click youtube links and it opens as normal in the browser. The extension seemingly does nothing. I have Freetube desktop app installed via Flatpak. |
So where do I find this freetube.desktop file? Ubuntu 18.04 Gnome DE |
@boggle247 If installed as a normal system package via your package-manager be in: It might be named differently depending on how it was packaged. If you installed it as a flatpak it should be in either: You can copy the file to However this shouldn't be necessary anymore, at least for the flatpak, since the MimeType-line has already been added upstream. The app works for me now even without changes. |
@filipkemuel I'll give this a shot |
@filipkemuel Adding EDIT: |
It now seems to work fine without tweaks. As someone above mentioned about a fix added upstream, perhaps this is what solved it. |
Adding MimeType=x-scheme-handler/freetube let me opens only the application, but not the video |
This worked perfectly for me! To those wondering, to change to xdg-open, click on 'use other' and select |
I changed the setting to xdg-open. Unfortunately it's still the same. The apps opens, but doesn't jump to the video link. |
Unfortunately ive had the same observation as @stevenfang1997, for me the app loads the video if it is already open but if the link runs the app it will not load the video |
I have some new observations. I added I'm using freetube-bin from AUR repository. |
According to the app developer, this problem seems to exist exclusively in the AUR and portable versions. In the non AUR and portable versions, you just need to disable "Grab Videos Locally" in the settings and it should be good to go. |
i tried /bin/xdg-open freetube://[URL] in the terminal and doesnt open the video |
I Added It still gives me an error I'm using |
The addon does not work (at least not on Debian9 Linux). It tries to open the freetube:// link in a browser window which results in a "adress not known, no registered protocol" message - which is correct, the protocol is not registered in firefox.
I can't find any addon code that registers the protocol. Is that code integrated in freetube? That would be a design flaw since freetube can't know which browser profile is located where and which browser profile has the addon.
I could try to debug if you pointed me to the code that actually registers the protocol with firefox.
Edit: I've found code in https://github.com/FreeTubeApp/FreeTube/blob/development/src/js/init.js but that's only working inside freetube, isn't it? I think you at least missed this: electron/electron#4857 (comment) while configuring the deb file. I don't know whether this takes care of the problem inside firefox.
I still think the addon should register the protocol in the browser profile where the addon is installed (and only there). Which I think is what was suggested here: FreeTubeApp/FreeTube#44 (comment)
The text was updated successfully, but these errors were encountered: