Package: compiz-core Version: 2:0.8.16.1-4 Severity: normal Tags: patch Dear Maintainer,
The script /usr/bin/compiz-decorator has two clearly erroneous tests near the beginning. XDG_CONFIG_DIRS and XDG_CONFIG_HOME are both checked for emptiness, and if they are *not* empty, they are assigned values. Included is a patch to fix this; please apply. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.20.4 (SMP w/20 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages compiz-core depends on: ii libc6 2.28-5 ii libgl1 1.1.0-1 ii libice6 2:1.0.9-2 ii libsm6 2:1.2.2-1+b3 ii libstartup-notification0 0.12-6 ii libx11-6 2:1.6.7-1 ii libxcomposite1 1:0.4.4-2 ii libxcursor1 1:1.1.15-2 ii libxdamage1 1:1.1.4-3 ii libxext6 2:1.3.3-1+b2 ii libxfixes3 1:5.0.3-1 ii libxi6 2:1.7.9-1 ii libxinerama1 2:1.1.4-1 ii libxml2 2.9.4+dfsg1-7+b3 ii libxrandr2 2:1.5.1-1 ii mesa-utils 8.4.0-1+b1 Versions of packages compiz-core recommends: ii compiz-plugins 2:0.8.16.1-4 ii compiz-plugins-main 2:0.8.16-2+b1 Versions of packages compiz-core suggests: ii nvidia-driver 410.93-1 -- no debconf information
diff -ur compiz-0.8.16.1.orig/plugins/compiz-decorator compiz-0.8.16.1/plugins/compiz-decorator --- compiz-0.8.16.1.orig/plugins/compiz-decorator 2019-01-23 17:45:23.311674363 -0500 +++ compiz-0.8.16.1/plugins/compiz-decorator 2019-01-23 17:45:38.831472785 -0500 @@ -27,10 +27,10 @@ } # Create env variables if empty. -if [ ! -z "$XDG_CONFIG_DIRS" ]; then +if [ -z "$XDG_CONFIG_DIRS" ]; then XDG_CONFIG_DIRS="/etc/xdg" fi -if [ ! -z "$XDG_CONFIG_HOME" ]; then +if [ -z "$XDG_CONFIG_HOME" ]; then XDG_CONFIG_HOME="$HOME/.config" fi