Links in externel apllications don't work Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-01, 07:13

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
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4980
Joined: 2015-12-09, 15:45
Contact:

Re: Links in externel apllications don't work

Unread post by moonbat » 2020-01-01, 07:26

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.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Re: Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-01, 07:37

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.
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4980
Joined: 2015-12-09, 15:45
Contact:

Re: Links in externel apllications don't work

Unread post by moonbat » 2020-01-01, 10:15

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.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Re: Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-01, 10:34

The repository on both machines.
EDIT:
For Debian the Debian repo and for Ubuntu the Ubuntu repo.
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4980
Joined: 2015-12-09, 15:45
Contact:

Re: Links in externel apllications don't work

Unread post by moonbat » 2020-01-01, 11:24

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.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Re: Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-01, 11:42

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.
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
Lunokhod
Lunatic
Lunatic
Posts: 469
Joined: 2017-04-20, 21:25
Contact:

Re: Links in externel apllications don't work

Unread post by Lunokhod » 2020-01-02, 01:43

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.
Wait, it's all Ohio? Always has been...

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Re: Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-02, 08:01

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.
The profile picture shows my Maico EC30 E ceiling fan.

moonshiner

Re: Links in externel apllications don't work

Unread post by moonshiner » 2020-01-02, 10:04

Try with this command in the terminal: xdg-settings set default-web-browser palemoon.desktop

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Re: Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-02, 10:07

No effect.
Do I need to restart my computer/applications?
The profile picture shows my Maico EC30 E ceiling fan.

moonshiner

Re: Links in externel apllications don't work

Unread post by moonshiner » 2020-01-02, 10:11

I tried and it opens links from the terminal and the visit homepage links in synaptic package manager

moonshiner

Re: Links in externel apllications don't work

Unread post by moonshiner » 2020-01-02, 11:39

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

User avatar
Pentium4User
Board Warrior
Board Warrior
Posts: 1133
Joined: 2019-04-24, 09:38

Re: Links in externel apllications don't work

Unread post by Pentium4User » 2020-01-02, 11:42

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
The profile picture shows my Maico EC30 E ceiling fan.

moonshiner

Re: Links in externel apllications don't work

Unread post by moonshiner » 2020-01-02, 13:24

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")" 

Locked