Bug 415291 - Okular opens links in Signal?
Summary: Okular opens links in Signal?
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.3.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-17 16:08 UTC by Will Bradshaw
Modified: 2019-12-20 13:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Bradshaw 2019-12-17 16:08:31 UTC
SUMMARY

I'm not sure if this is a bug but it's certainly confusing. When I click on links in Okular (and only Okular, not any other PDF reader), it tries to open the Signal desktop client instead of opening the link in my default Web application (Firefox). I can't find any setting in Okular to fix this.

STEPS TO REPRODUCE
1. Click on a link in Okular with Signal Desktop installed.

OBSERVED RESULT

Clicking link opens Signal desktop client.

EXPECTED RESULT

Link opens in default Web application (in my case, Firefox).

SOFTWARE/OS VERSIONS
Ubuntu 18.04.3 LTS
Signal Desktop v1.29.0
Firefox 71.0 (64-bit)
Comment 1 Yuri Chornoivan 2019-12-17 16:28:45 UTC
Hi,

Okular should follow system-wide application associations. Can you check what is written in your ~/.config/mimeapps.list for

x-scheme-handler/http

and

x-scheme-handler/https

Thanks in advance for your answer.
Comment 2 Will Bradshaw 2019-12-18 08:18:07 UTC
Hi Yuri,

Here are all the x-scheme-handler* lines from my ~/.config/mimeapps.list:

~/.config/mimeapps.list

x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop
x-scheme-handler/sgnl=signal-desktop.desktop

I don't have Chrome installed so I'm not sure what's up there. I tried changing all the "google-chrome.desktop" entries to "firefox.desktop" but it made no difference.

Apart from these entries, there is also

text/html=signal-desktop.desktop

which is the only other instance of "signal-desktop.desktop" in the file. I tried changing that to "firefox.desktop"; still no change in the behaviour.

Thanks!
Will
Comment 3 Yuri Chornoivan 2019-12-18 16:33:14 UTC
Ok. Thanks.

Can you try this command?

xdg-mime default firefox.desktop text/html

Inspired by this bug report:

https://github.com/signalapp/Signal-Desktop/issues/3602
Comment 4 Will Bradshaw 2019-12-20 12:38:16 UTC
Yes, that worked (after restarting computer)! Thanks a lot!