Bug#950495: /usr/bin/xdg-settings: 735: Bad substitution

luca agoiza at gmail.com
Sun Feb 2 15:32:50 GMT 2020


Package: xdg-utils
Version: 1.1.3-1
Severity: normal

Dear Maintainer,

$ sh -x /usr/bin/xdg-settings check default-web-browser firefox.desktop
+ check_common_commands check default-web-browser firefox.desktop
+ [ 3 -gt 0 ]
+ parm=check
+ shift
+ [ 2 -gt 0 ]
+ parm=default-web-browser
+ shift
+ [ 1 -gt 0 ]
+ parm=firefox.desktop
+ shift
+ [ 0 -gt 0 ]
+ [ -z  ]
+ unset XDG_UTILS_DEBUG_LEVEL
+ [ 0 -lt 1 ]
+ xdg_redirect_output= > /dev/null 2> /dev/null
+ [ xcheck = x--list ]
+ [ xcheck != x ]
+ [ xdefault-web-browser != x ]
+ [ xcheck = xget -o xfirefox.desktop != x ]
+ op=check
+ parm=default-web-browser
+ shift 2
+ [ xcheck != xget -a xcheck != xcheck -a xcheck != xset ]
+ detectDE
+ unset GREP_OPTIONS
+ [ -n KDE ]
+ DE=kde
+ [ xkde = x ]
+ [ xkde = x ]
+ [ xkde = x ]
+ [ xkde = xgnome ]
+ [ -f /run/user/500/flatpak-info ]
+ [ -z kde ]
+ dispatch_specific kde firefox.desktop
+ local handler=kde
+ shift
+ [ xcheck = xget ]
+ [ xcheck = xcheck ]
+ check_desktop_filename firefox.desktop
+ return
+ check_browser_kde firefox.desktop
+ desktop_file_to_binary firefox.desktop
+ search=/home/ilprof/.local/share:/usr/share:/usr/share:/usr/local/share
+ basename firefox.desktop
+ desktop=firefox.desktop
+ IFS=:
+ unset IFS
+ [ /home/ilprof/.local/share ]
+ [ -d /home/ilprof/.local/share/applications ]
+ [ firefox.desktop != firefox.desktop ]
+ test -z
+ file=/home/ilprof/.local/share/applications//firefox.desktop
+ [ -r /home/ilprof/.local/share/applications//firefox.desktop ]
+ file=/home/ilprof/.local/share/applications/javaws//firefox.desktop
+ [ -r /home/ilprof/.local/share/applications/javaws//firefox.desktop ]
+ file=/home/ilprof/.local/share/applications/wine//firefox.desktop
+ [ -r /home/ilprof/.local/share/applications/wine//firefox.desktop ]
+ file=/home/ilprof/.local/share/applnk//firefox.desktop
+ [ -r /home/ilprof/.local/share/applnk//firefox.desktop ]
+ file=/home/ilprof/.local/share/applnk/*//firefox.desktop
+ [ -r /home/ilprof/.local/share/applnk/*//firefox.desktop ]
+ [ -r  ]
+ unset IFS
+ [ /usr/share ]
+ [ -d /usr/share/applications ]
+ [ firefox.desktop != firefox.desktop ]
+ test -z
+ file=/usr/share/applications//firefox.desktop
+ [ -r /usr/share/applications//firefox.desktop ]
+ file_path=/usr/share/applications//firefox.desktop
+ break
+ [ -r /usr/share/applications//firefox.desktop ]
+ grep -E ^Exec(\[[^]=]*])?= /usr/share/applications//firefox.desktop
+ cut -d= -f 2-
+ first_word
+ read first rest
+ echo /usr/lib/firefox/firefox
+ command=/usr/lib/firefox/firefox
+ which /usr/lib/firefox/firefox
+ command=/usr/lib/firefox/firefox
+ readlink -f /usr/lib/firefox/firefox
+ return
+ check=/usr/lib/firefox/firefox
+ [ -z /usr/lib/firefox/firefox ]
+ read_kde_browser
+ read_kde_config kdeglobals General BrowserApplication
+ configfile=kdeglobals
+ configsection=General
+ configkey=BrowserApplication
+ [ x5 = x5 ]
+ kreadconfig5 --file kdeglobals --group General --key BrowserApplication
+ application=!/usr/bin/firefox
+ [ x!/usr/bin/firefox != x ]
+ echo !/usr/bin/firefox
+ browser=!/usr/bin/firefox
+ resolve_kde_browser
+ [ -z !/usr/bin/firefox ]
+ echo /usr/bin/firefox
+ binary=/usr/bin/firefox
/usr/bin/xdg-settings: 735: Bad substitution

--------------------------------------------------------------------------------------

debian links /bin/dash to /bin/sh so the script seems fail, while it's working
with bash

$ bash /usr/bin/xdg-settings check default-web-browser firefox.desktop
yes



-- Package-specific info:
Desktop environment: XDG_CURRENT_DESKTOP=KDE

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

xdg-utils depends on no packages.

Versions of packages xdg-utils recommends:
ii  libfile-mimeinfo-perl  0.29-1
ii  libnet-dbus-perl       1.2.0-1
ii  libx11-protocol-perl   0.56-7
ii  x11-utils              7.7+4
ii  x11-xserver-utils      7.7+8

xdg-utils suggests no packages.

-- no debconf information



More information about the Pkg-freedesktop-maintainers mailing list