Package: xdg-utils
Version: 1.1.0~rc1+git20111210-7.4
Severity: normal
Dear Maintainer,
I tried to open a link in Pidgin which was configured to use the browser
Desktop Default. Instead of using Iceweasel as expected it opened the link in
Chrome. Checked on update-alternatives and I have iceweasel as my preference.
Then I tried to check on xgd-settings which was unhelpful:
allan@vent:~$ xdg-settings get default-web-browser
xdg-settings: unknown desktop environment
Maybe use the same logic as xdg-open which has:
detectDE
if [ x"$DE" = x"" ]; then
DE=generic
fi
Although maybe defectDE should just return generic? There are many copies of
this function it seems. I run xmonad without a desktop environment.
Downloaded the Pidgin source to figure out that it calls xdg-open. The man
page for xdg-open is unhelpful to figure out where it is getting that setting
from so I traced the script to figure out that it calls `xdg-mime query default
x-scheme-handler/http`. The man page for xdg-mime is unhelpful to figure out
where it gets its information from, so I trace that script to finally find the
source as /usr/share//applications/defaults.list. To me it is weird that a
configuration file lives in /usr/share.
The defaults.list file contains no references to Iceweasel, so not sure if
Iceweasel should populate that file. It didn't, btw, when I reconfigured
iceweasel.
I noticed that trace shows that the per-user file
$HOME/.local/share//applications/mimeapps.list. Neither man -k
mimeapps.list or mimeapps yield anything, so I copy this to the
file and call it a day:
[Default Applications]
application/xhtml=iceweasel.desktop;
text/html=iceweasel.desktop;
text/xml=iceweasel.desktop;
x-scheme-handler/ftp=iceweasel.desktop;
x-scheme-handler/http=iceweasel.desktop;
x-scheme-handler/https=iceweasel.desktop;
I had to look in that file anyways to figure out what to configure, so using
xdg-mime just didn't seem worth it, now that I think about what program I could
have used.
I noticed that xgd-open sets the BROWSER variable to what seems most sensible:
BROWSER=x-www-browser:firefox:seamonkey:mozilla:epiphany:konqueror:chromium-browser:google-chrome:www-browser:links2:elinks:links:lynx:w3m
but then never used. I already configured my system preference with
x-www-browser so xdg-open should really consult that data source.
Shouldn't xdg-mime have an easy way to query its entire database? I would have
zero chance of guessing that I needed to configure x-scheme-handler/http, or
the rest of them.
Anyways, feel free to down-prioritize, I am probably the rare exception running
without a desktop environments, and split what would be helpful to individual
tickets.
-- System Information:
Debian Release: 8.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
xdg-utils depends on no packages.
Versions of packages xdg-utils recommends:
pn libfile-mimeinfo-perl <none>
pn libnet-dbus-perl <none>
pn libx11-protocol-perl <none>
ii x11-utils 7.7+2
ii x11-xserver-utils 7.7+3+b1
Versions of packages xdg-utils suggests:
pn gvfs-bin <none>
-- no debconf information
--
Allan Wind
Yaxto - Runs My Business
<https://yaxto.com>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]