diff --git a/appvm-scripts/usrbin/qubes-run-xephyr b/appvm-scripts/usrbin/qubes-run-xephyr index 9ad9af91..4a25ca7b 100644 --- a/appvm-scripts/usrbin/qubes-run-xephyr +++ b/appvm-scripts/usrbin/qubes-run-xephyr @@ -2,4 +2,10 @@ DISPLAY_XEPHYR="$1" OPTIONS_XEPHYR="-no-host-grab -fullscreen" -LD_PRELOAD=/usr/lib64/qubes-gui-daemon/shmoverride.so /usr/bin/Xephyr $OPTIONS_XEPHYR "$DISPLAY_XEPHYR" > ~/.xephyr-errors 2>&1 +if [ -e /etc/debian_version ]; then + SHMOVERRIDE=/usr/lib/x86_64-linux-gnu/qubes-gui-daemon/shmoverride.so +else + SHMOVERRIDE=/usr/lib64/qubes-gui-daemon/shmoverride.so +fi + +LD_PRELOAD=$SHMOVERRIDE /usr/bin/Xephyr $OPTIONS_XEPHYR "$DISPLAY_XEPHYR" > ~/.xephyr-errors 2>&1