diff --git a/debian/rules b/debian/rules index 6ec7d35..fc779e6 100755 --- a/debian/rules +++ b/debian/rules @@ -12,3 +12,16 @@ -D libexecdir=lib/$(DEB_TARGET_MULTIARCH) \ -D docs=true \ -D deprecated_warnings=false + +# +# between xapp 2.0.0 and 2.0.1, upstream switched from installing +# the Xsession file into /etc/X11/Xsession.d/ to /etc/X11/xinit/xinitrc.d/ +# Debian does not support the later, but Xinit load the Xsession. +# Thus, undo this changes here +execute_before_dh_install: + mkdir -p debian/tmp/etc/X11/Xsession.d/ + mv debian/tmp/etc/X11/xinit/xinitrc.d/80xapp-gtk3-module.sh \ + debian/tmp/etc/X11/Xsession.d/80xapp-gtk3-module + rmdir debian/tmp/etc/X11/xinit/xinitrc.d + rmdir debian/tmp/etc/X11/xinit +