Public bug reported: The session detection for gtk3-nocsd doesn't work properly as it still uses old session detection method of gnomerc. It tries to detect the session by shipping 51gtk3-nocsd-detect in /etc/X11/Xsession.d.
51gtk3-nocsd-detect uses: 1) `BASESTARTUP=${STARTUP%% *}` which fails as STARTUP was never set on Ubuntu 2) `BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session- manager))` which will fail(it never goes into the inner loop due to previous error) for unity session as unity session also uses gnome- session but wants to set GTK_CSD=0 globally. The modern way to detect session is to use $XDG_CURRENT_DESKTOP variable. I attached a patch which takes advantage of that. ** Affects: gtk3-nocsd (Ubuntu) Importance: Undecided Status: New ** Tags: bionic ** Patch added: "improve-session-detection.patch" https://bugs.launchpad.net/bugs/1745206/+attachment/5042463/+files/improve-session-detection.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1745206 Title: Improve session detection To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gtk3-nocsd/+bug/1745206/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs