Per Olofsson <pe...@debian.org> writes: > Hi Nils, > > Den 2016-02-24 kl. 17:02, skrev Nils Dagsson Moskopp: >> Dear Maintainer, >> >> I tried opening a local HTML file with xdg-open. >> >> I passed the absolute path with “xdg-open /usr/share/doc/dc/dc.html” >> >> Afterwards, xdg-open started /usr/bin/conkeror and opened the file. >> >> However, it also opened a buffer with<http://www.$(readlink.com/>. >> It also opened another buffer with<http://www.%f).com/>. >> Both are non-existing URLs I did not want to open. >> >> xdg-open invokes /usr/bin/conkeror with the following command line: >> “/usr/bin/conkeror $(readlink -m %f) /usr/share/doc/dc/dc.html”. >> >> On a cursory glance, I have been unable to find a reason for that. > > Could you please run > > sh -x /usr/bin/xdg-open /usr/share/doc/dc/dc.html > > and send me the output?
Yes, see the attached file. > -- > Pelle -- Nils Dagsson Moskopp // erlehmann <http://dieweltistgarnichtso.net>
pgpsRg4iOhokx.pgp
Description: PGP signature
+ check_common_commands /usr/share/doc/dc/dc.html + [ 1 -gt 0 ] + parm=/usr/share/doc/dc/dc.html + shift + [ 0 -gt 0 ] + [ -z ] + unset XDG_UTILS_DEBUG_LEVEL + [ 0 -lt 1 ] + xdg_redirect_output= > /dev/null 2> /dev/null + [ x/usr/share/doc/dc/dc.html != x ] + url= + [ 1 -gt 0 ] + parm=/usr/share/doc/dc/dc.html + shift + [ -n ] + url=/usr/share/doc/dc/dc.html + [ 0 -gt 0 ] + [ -z /usr/share/doc/dc/dc.html ] + detectDE + unset GREP_OPTIONS + [ -n i3 ] + [ x = x ] + [ x != x ] + [ x != x ] + [ x != x ] + dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager + + grep = \"xfce4\"$ + xprop -root _DT_SAVE_MODE + grep -i ^xfce_desktop_window + xprop -root + grep -q ^Enlightenment + echo + [ x = x ] + [ x = x ] + uname + [ x = xgnome ] + [ x = x ] + DE=generic + DEBUG 2 Selected DE generic + [ -z ] + return 0 + open_generic /usr/share/doc/dc/dc.html + is_file_url_or_path /usr/share/doc/dc/dc.html + grep -q ^file:// + echo /usr/share/doc/dc/dc.html + egrep -q ^[[:alpha:]+\.\-]+: + echo /usr/share/doc/dc/dc.html + return 0 + file_url_to_path /usr/share/doc/dc/dc.html + local file=/usr/share/doc/dc/dc.html + grep -q ^file:/// + echo /usr/share/doc/dc/dc.html + echo /usr/share/doc/dc/dc.html + local file=/usr/share/doc/dc/dc.html + check_input_file /usr/share/doc/dc/dc.html + [ ! -e /usr/share/doc/dc/dc.html ] + [ ! -r /usr/share/doc/dc/dc.html ] + [ -n :0 ] + sed s/;.*// + xdg-mime query filetype /usr/share/doc/dc/dc.html + filetype=text/html + open_generic_xdg_mime /usr/share/doc/dc/dc.html text/html + filetype=text/html + xdg-mime query default text/html + default=userapp-conkeror-B4SJ9W.desktop + [ -n userapp-conkeror-B4SJ9W.desktop ] + xdg_user_dir= + [ -n ] + xdg_user_dir=/home/erlehmann/.local/share + xdg_system_dirs= + [ -n ] + xdg_system_dirs=/usr/local/share/:/usr/share/ + DEBUG 3 /home/erlehmann/.local/share:/usr/local/share/:/usr/share/ + [ -z ] + return 0 + sed s/:/ /g + echo /home/erlehmann/.local/share:/usr/local/share/:/usr/share/ + search_desktop_file userapp-conkeror-B4SJ9W.desktop /home/erlehmann/.local/share/applications/ /usr/share/doc/dc/dc.html + local default=userapp-conkeror-B4SJ9W.desktop + local dir=/home/erlehmann/.local/share/applications/ + local target=/usr/share/doc/dc/dc.html + local file= + [ -r /home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop ] + file=/home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop + [ -r /home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop ] + first_word + read first rest + get_key /home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop Exec + local file=/home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop + local key=Exec + local desktop_entry= + IFS_= + IFS= + read line + desktop_entry=y + read line + read line + read line + read line + read line + [ -n y ] + cut -d= -f 2- + echo Exec=conkeror $(readlink -m %f) + echo conkeror + read line + read line + read line + IFS= + command=conkeror + which conkeror + command_exec=/usr/bin/conkeror + get_key /home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop Icon + local file=/home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop + local key=Icon + local desktop_entry= + IFS_= + IFS= + read line + desktop_entry=y + read line + read line + read line + read line + read line + read line + read line + read line + IFS= + icon= + get_key /home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop Name + local file=/home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop + local key=Name + local desktop_entry= + IFS_= + IFS= + read line + desktop_entry=y + read line + read line + read line + read line + read line + read line + [ -n y ] + cut -d= -f 2- + echo Name=conkeror + read line + read line + IFS= + localised_name=conkeror + last_word + read first rest + get_key /home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop Exec + local file=/home/erlehmann/.local/share/applications//userapp-conkeror-B4SJ9W.desktop + local key=Exec + local desktop_entry= + IFS_= + IFS= + read line + desktop_entry=y + read line + read line + read line + read line + read line + [ -n y ] + cut -d= -f 2- + echo Exec=conkeror $(readlink -m %f) + echo $(readlink -m %f) + read line + read line + read line + IFS= + set -- $(readlink -m %f) + local args=3 + local replaced=0 + [ 3 -gt 0 ] + arg=$(readlink + shift + set -- -m %f) $(readlink + args=2 + [ 2 -gt 0 ] + arg=-m + shift + set -- %f) $(readlink -m + args=1 + [ 1 -gt 0 ] + arg=%f) + shift + set -- $(readlink -m %f) + args=0 + [ 0 -gt 0 ] + [ 0 -eq 1 ] + set -- $(readlink -m %f) /usr/share/doc/dc/dc.html + /usr/bin/conkeror $(readlink -m %f) /usr/share/doc/dc/dc.html (process:16339): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed + [ 0 -eq 0 ] + exit_success + [ 0 -gt 0 ] + exit 0