Page 1 of 1

Links in externel apllications don't work

Posted: 2020-01-01, 07:13
by Pentium4User
Hello,
I use different machines (Ubuntu an Debian).
After setting Pale Moon as default browser via the alternative system (update-alternatives), I can't click links in external applications like Telegram or mail (Clawsmail).
I get /home/user/https:/forum.ubuntuusers.de/post/9122247: File not found.
If I select Firefox as default application (alternative), all is working fine.
How can I fix that?
On Debian it is the i386 version, on my 2 Ubuntu machines it is the x64.

Kind regards
Pentium4Use

Re: Links in externel apllications don't work

Posted: 2020-01-01, 07:26
by moonbat
Instead of setting it default externally, try it from preferences-general-system defaults. Let it check if it's the default browser on startup, then restart it.

Re: Links in externel apllications don't work

Posted: 2020-01-01, 07:37
by Pentium4User
I set Firefox as default, does not work either anymore.
After that Pale Moon showed me that it isn't default, I clicked set to default, but It doesn't work, same error.

Re: Links in externel apllications don't work

Posted: 2020-01-01, 10:15
by moonbat
Are you using the build from the repository or the manually extracted version from the downloads page? The latter would not have system integrations the way an installed package would, maybe that's why it isn't able to detect and launch Pale Moon correctly.

Re: Links in externel apllications don't work

Posted: 2020-01-01, 10:34
by Pentium4User
The repository on both machines.
EDIT:
For Debian the Debian repo and for Ubuntu the Ubuntu repo.

Re: Links in externel apllications don't work

Posted: 2020-01-01, 11:24
by moonbat
Sorry I can't directly help - I'm using Mint Xfce edition and it's fairly straightforward to set defaults under 'Preferred applications' in settings. From your initial comment it looks like the system is unable to find the path to the Pale Moon executable - if it is possible to manually edit the path and set it that may help.

Re: Links in externel apllications don't work

Posted: 2020-01-01, 11:42
by Pentium4User

Code: Select all

------------------------------------------------------------
  0            /usr/bin/firefox-esr   70        automatischer Modus
  1            /usr/bin/firefox-esr   70        manueller Modus
* 2            /usr/bin/palemoon      40        manueller Modus
The Path is correct, I tried that out.

Re: Links in externel apllications don't work

Posted: 2020-01-02, 01:43
by Lunokhod
Possibly the palemoon.desktop file needs to be executable, it should be either in /usr/share/applications or /usr/local/share/applications. "file not found" sometimes means not executable. In XFCE this doesn't seem to be needed, but Gnome (and KDE) might require it. There used to be some other things like gconftool2 and updatemime in Debian / Gnome but that was Gnome 2. :D Back then update-alternatives was not especially useful in Gnome graphical apps, and was mostly there for other desktops and some terminal usage situations.

Re: Links in externel apllications don't work

Posted: 2020-01-02, 08:01
by Pentium4User
I have another machine with Lubuntu 18.04, the palemoon.desktop isn't executable, clicking links is possible.
The Debian machine uses Buster and the Ubuntu machine uses the LXDE desktop.

Re: Links in externel apllications don't work

Posted: 2020-01-02, 10:04
by moonshiner
Try with this command in the terminal: xdg-settings set default-web-browser palemoon.desktop

Re: Links in externel apllications don't work

Posted: 2020-01-02, 10:07
by Pentium4User
No effect.
Do I need to restart my computer/applications?

Re: Links in externel apllications don't work

Posted: 2020-01-02, 10:11
by moonshiner
I tried and it opens links from the terminal and the visit homepage links in synaptic package manager

Re: Links in externel apllications don't work

Posted: 2020-01-02, 11:39
by moonshiner
When you enter xdg-settings set default-web-browser palemoon.desktop do you get this error "xdg-settings: $BROWSER is set and can't be changed with xdg-settings"? In that case enter: export BROWSER=
After that re-entert the first command, then enter: xdg-settings get default-web-browser
The output should be palemoon.desktop
Type xdg-open https://palemoon.org
This command should open the page in palemoon

Re: Links in externel apllications don't work

Posted: 2020-01-02, 11:42
by Pentium4User
user@user-System-Product-Name:~$ xdg-open https://palemoon.org
user@user-System-Product-Name:~$
Then the message file not found appears (translated):
/home/userhttps:/palemoon.org: File or Path not found

Re: Links in externel apllications don't work

Posted: 2020-01-02, 13:24
by moonshiner
It seems to be a bug with xdg-open under LXDE https://bugs.freedesktop.org/show_bug.cgi?id=106585 You need to edit with root permission /usr/bin/xdg-open
Backup this file then edit it and replace this line

Code: Select all

 if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then 
with this

Code: Select all

 if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then
 local file="$(file_url_to_path "$1")"