linuxmint / cinnamon-session

The Cinnamon session manager
GNU General Public License v2.0
27 stars 36 forks source link

cinnamon-session: make sure wayland sessions get a login shell #161

Closed bobby285271 closed 8 months ago

bobby285271 commented 9 months ago

Users expect their shell profiles to get sourced at startup, which doesn't happen with wayland sessions.

This commit brings back that feature, by making the cinnamon-session wrapper script run a login shell.

ref: https://gitlab.gnome.org/GNOME/gnome-session/-/commit/7e307f8ddb91db5d4051c4c792519a660ba67f35


Edit: See the comments in https://github.com/NixOS/nixpkgs/pull/276060 for background I guess, in the original issue we want to append some paths to GI_TYPELIB_PATH in /etc/profiles but when checking imports.gi.GIRepository.Repository.get_search_path() in Melange we found that this does not work, the issue only seems to happen with the combination of GDM + Cinnamon Wayland so far (this GDM issue).