You are not logged in.

#1 2016-01-02 03:36:07

freyr
Member
From: Hungary
Registered: 2010-02-04
Posts: 131

[Solved] Links won't open in Chromium, the default browser is sg. else

Hi!

I have a seriously annoying problem. Whenever I try to open a link outside Chromium, it'll start anything but Chromium. I tidied up everything concerning mime types, everything's set to chromium.desktop, nothing else. Yet links just wouldn't open in Chromium. As a last resort I deleted every other web browsers. Now the links are opened in Links (the command line web browser). I just can't wrap my head around this, it doesn't make any sense.
I went through the Wikis several times, read many forums but everything tells me there's nothing else to do.
I can see only one error message, the command

xdg-settings set default-web-browser chromium.desktop

gives me the message

xdg-mime: malformed argument 'chromium.desktop;', expected *.desktop
Try 'xdg-mime --help' for more information.

I tried to find what this means but I couldn't.

I'm using Openbox, everything's up to date. Chromium says it's not the default browser. This problem exists for... well, it's here as long as I can remember actually, only I never opened links from other apps before but these days I do that a lot and I want them to be opened in Chromium. Thunderbird is the only exception, the links there open in Chromium and I didn't even have to set any custom strings in its config editor; it just works.

Any idea what should I do? What can I do?

Last edited by freyr (2016-01-02 08:39:51)


What, so everyone's supposed to sleep every single night now? You realize that nighttime makes up half of all time?

Offline

#2 2016-01-02 06:35:37

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [Solved] Links won't open in Chromium, the default browser is sg. else

Hmm is it a problem your of shell / terminal?  ';' in 'chromium.desktop;' of the error is suspicious. Btw works fine here:

[tom@localhost ~]$ cat .local/share/applications/mimeapps.list 

[Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop
[tom@localhost ~]$ xdg-settings set default-web-browser chromium.desktop
[tom@localhost ~]$ cat .local/share/applications/mimeapps.list 

[Default Applications]
text/html=chromium.desktop
x-scheme-handler/http=chromium.desktop
x-scheme-handler/https=chromium.desktop
x-scheme-handler/about=chromium.desktop
x-scheme-handler/unknown=chromium.desktop
[tom@localhost ~]$ xdg-settings set default-web-browser firefox.desktop
[tom@localhost ~]$ cat .local/share/applications/mimeapps.list 

[Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop

Last edited by tom.ty89 (2016-01-02 06:35:50)

Offline

#3 2016-01-02 08:35:28

freyr
Member
From: Hungary
Registered: 2010-02-04
Posts: 131

Re: [Solved] Links won't open in Chromium, the default browser is sg. else

tom.ty89 wrote:

Hmm is it a problem your of shell / terminal?  ';' in 'chromium.desktop;' of the error is suspicious. Btw works fine here:

[tom@localhost ~]$ cat .local/share/applications/mimeapps.list 

[Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop
[tom@localhost ~]$ xdg-settings set default-web-browser chromium.desktop
[tom@localhost ~]$ cat .local/share/applications/mimeapps.list 

[Default Applications]
text/html=chromium.desktop
x-scheme-handler/http=chromium.desktop
x-scheme-handler/https=chromium.desktop
x-scheme-handler/about=chromium.desktop
x-scheme-handler/unknown=chromium.desktop
[tom@localhost ~]$ xdg-settings set default-web-browser firefox.desktop
[tom@localhost ~]$ cat .local/share/applications/mimeapps.list 

[Default Applications]
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop

o.O
Could it be that simple? No semicolon at the end of the lines? Never thought of that. Thanks!
I removed them, but in .local/share/applications/mimeapps.list was not enough, I had to remove them in .config/mimeapps.list too.
Now it's working.
But why are semicolons there if they are not needed? I'm sure I didn't put them there.

Last edited by freyr (2016-01-02 08:36:55)


What, so everyone's supposed to sleep every single night now? You realize that nighttime makes up half of all time?

Offline

Board footer

Powered by FluxBB