Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #198027 > unrolled thread

xdg-open drives me crazy

Started byMarkus Grunwald <markus@the-grue.de>
First post2018-07-26 20:40 +0200
Last post2018-07-27 23:30 +0200
Articles 8 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  xdg-open drives me crazy Markus Grunwald <markus@the-grue.de> - 2018-07-26 20:40 +0200
    Re: xdg-open drives me crazy deloptes <deloptes@gmail.com> - 2018-07-26 20:50 +0200
      Re: xdg-open drives me crazy Markus Grunwald <markus@the-grue.de> - 2018-07-26 21:00 +0200
    Re: xdg-open drives me crazy Andreas Ronnquist <mailinglists@gusnan.se> - 2018-07-26 21:10 +0200
      Re: xdg-open drives me crazy Markus Grunwald <markus@the-grue.de> - 2018-07-26 21:10 +0200
    Re: xdg-open drives me crazy John Crawley <john@bunsenlabs.org> - 2018-07-27 03:20 +0200
    Re: xdg-open drives me crazy Curt <curty@free.fr> - 2018-07-27 10:20 +0200
      Re: xdg-open drives me crazy Markus Grunwald <markus@the-grue.de> - 2018-07-27 23:30 +0200

#198027 — xdg-open drives me crazy

FromMarkus Grunwald <markus@the-grue.de>
Date2018-07-26 20:40 +0200
Subjectxdg-open drives me crazy
Message-ID<wfTl7-69c-5@gated-at.bofh.it>
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 ...?

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

[toc] | [next] | [standalone]


#198028

Fromdeloptes <deloptes@gmail.com>
Date2018-07-26 20:50 +0200
Message-ID<wfTuN-6cN-1@gated-at.bofh.it>
In reply to#198027
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

[toc] | [prev] | [next] | [standalone]


#198029

FromMarkus Grunwald <markus@the-grue.de>
Date2018-07-26 21:00 +0200
Message-ID<wfTEt-6gn-5@gated-at.bofh.it>
In reply to#198028
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

[toc] | [prev] | [next] | [standalone]


#198030

FromAndreas Ronnquist <mailinglists@gusnan.se>
Date2018-07-26 21:10 +0200
Message-ID<wfTOa-6z8-3@gated-at.bofh.it>
In reply to#198027
On Thu, 26 Jul 2018 20:21:07 +0200,
Markus Grunwald<markus@the-grue.de> 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
mailinglists@gusnan.se
andreas@ronnquist.net

[toc] | [prev] | [next] | [standalone]


#198031

FromMarkus Grunwald <markus@the-grue.de>
Date2018-07-26 21:10 +0200
Message-ID<wfTOa-6z8-11@gated-at.bofh.it>
In reply to#198030
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

[toc] | [prev] | [next] | [standalone]


#198035

FromJohn Crawley <john@bunsenlabs.org>
Date2018-07-27 03:20 +0200
Message-ID<wfZAd-1CC-3@gated-at.bofh.it>
In reply to#198027
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

[toc] | [prev] | [next] | [standalone]


#198042

FromCurt <curty@free.fr>
Date2018-07-27 10:20 +0200
Message-ID<wg68F-5JJ-1@gated-at.bofh.it>
In reply to#198027
On 2018-07-26, Markus Grunwald <markus@the-grue.de> 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

[toc] | [prev] | [next] | [standalone]


#198061

FromMarkus Grunwald <markus@the-grue.de>
Date2018-07-27 23:30 +0200
Message-ID<wgitc-4Qo-7@gated-at.bofh.it>
In reply to#198042
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web