Re: xdg-open drives me crazy

2018-07-27 Thread Markus Grunwald
Hello Curt,

> xdg-mime default chromium.desktop text/html
> xdg-mime default chromium.desktop x-scheme-handler/http
> xdg-mime default chromium.desktop x-scheme-handler/https
> xdg-mime default chromium.desktop x-scheme-handler/about

That did the trick! Thank you very much :)

cu
-- 
Markus Grunwald
https://www.the-grue.de/~markus/markus_grunwald.gpg



Re: xdg-open drives me crazy

2018-07-27 Thread Curt
On 2018-07-26, Markus Grunwald  wrote:
> Hello,
>
> A few programs that I use, in turn use xdg-open. With web-pages, it gets
> it completely wrong, no matter what I do:

What have you done? Completely wrong is a little like completely pregnant?

;-)

> % xdg-settings get default-web-browser
> chromium.desktop
> % echo $BROWSER
> chromium
>
>
>  % grep -i bin /usr/share/xfce4/helpers/chromium.desktop
> /usr/share/applications/chromium.desktop
> /usr/share/xfce4/helpers/chromium.desktop:X-XFCE-Binaries=chromium;chromium-browser;
> /usr/share/applications/chromium.desktop:Exec=/usr/bin/chromium %U
>
>
> But what does that damn thing open? Firefox...
>
> What can I do ...?
>

What about

xdg-mime default chromium.desktop text/html
xdg-mime default chromium.desktop x-scheme-handler/http
xdg-mime default chromium.desktop x-scheme-handler/https
xdg-mime default chromium.desktop x-scheme-handler/about

or editing  ~/.local/share/applications/mimeapps.list directly?

Just a quick stab in the darkness because it's quite hot here.

-- 
Boris sober and Boris drunk are such different people, they’ve never even met. 
-- Sergei Dovlatov, Pushkin Hills



Re: xdg-open drives me crazy

2018-07-26 Thread John Crawley

On 2018-07-27 03:21, Markus Grunwald wrote:

A few programs that I use, in turn use xdg-open. With web-pages, it gets
it completely wrong, no matter what I do:


What can I do ...?


file $(which xdg-open)
/usr/bin/xdg-open: POSIX shell script, ASCII text executable

OK it's a shell script. Try the -x option to see what it's actually doing:

sh -x /usr/bin/xdg-open /path/to/file.html

There might be a hint there.

--
John



Re: xdg-open drives me crazy

2018-07-26 Thread Markus Grunwald
Hello,

> It looks in your output like you are using Xfce - what is set in
> "Preferred Applications" under Web Browser?

Xfce is only installed on the computer. I'm using i3.

-- 
Markus Grunwald
https://www.the-grue.de/~markus/markus_grunwald.gpg



Re: xdg-open drives me crazy

2018-07-26 Thread Andreas Ronnquist
On Thu, 26 Jul 2018 20:21:07 +0200,
Markus Grunwald wrote:

>Hello,
>
>A few programs that I use, in turn use xdg-open. With web-pages, it
>gets it completely wrong, no matter what I do:
>
>% xdg-settings get default-web-browser
>chromium.desktop
>% echo $BROWSER
>chromium
>
>
> % grep -i bin /usr/share/xfce4/helpers/chromium.desktop
>/usr/share/applications/chromium.desktop
>/usr/share/xfce4/helpers/chromium.desktop:X-XFCE-Binaries=chromium;chromium-browser;
>/usr/share/applications/chromium.desktop:Exec=/usr/bin/chromium %U
>
>
>But what does that damn thing open? Firefox...
>
>What can I do ...?
>

It looks in your output like you are using Xfce - what is set in
"Preferred Applications" under Web Browser?

also test

exo-open --launch WebBrowser

which is a Xfce specific way. See

https://docs.xfce.org/xfce/exo/preferred-applications

for more info.

-- Andreas Rönnquist
mailingli...@gusnan.se
andr...@ronnquist.net



Re: xdg-open drives me crazy

2018-07-26 Thread Markus Grunwald
Hello,

> Look at update-alternatives


Thanks for the hint, but the alternatives are configured correctly:

# ll /usr/bin/x-www-browser
lrwxrwxrwx 1 root root 31 Jul 22  2009 /usr/bin/x-www-browser ->
/etc/alternatives/x-www-browser

# ll /etc/alternatives/x-www-browser
lrwxrwxrwx 1 root root 17 Mär 28 21:21 /etc/alternatives/x-www-browser
-> /usr/bin/chromium
# ll /usr/bin/chromium
-rwxr-xr-x 1 root root 3754 Jun 19 14:13 /usr/bin/chromium


-- 
Markus Grunwald
https://www.the-grue.de/~markus/markus_grunwald.gpg



Re: xdg-open drives me crazy

2018-07-26 Thread deloptes
Markus Grunwald wrote:

> But what does that damn thing open? Firefox...
> 
> What can I do ...?

Look at update-alternatives

update-alternatives --install /etc/alternatives/firefox
x-www-browser /opt/custom/firefox/firefox 300
update-alternatives --set x-www-browser /opt/custom/firefox/firefox

regards