Public bug reported: I have clean-installed Focal and configured to run X.org server instead of Wayland, and found that the ~/.gnomerc is not loaded anymore.
In /etc/X11/Xsession.d/55gnome-session_gnomerc, it tries to load ~/.gnomerc but it fails because of the change of the gnome-session's startup process. Let's see this part of the 55gnome-session_gnomerc: BASESTARTUP=${STARTUP%% *} BASESTARTUP=${BASESTARTUP##*/} if [ "$BASESTARTUP" = x-session-manager ]; then BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager)) fi case "$BASESTARTUP" in gnome-session*) GNOMERC=$HOME/.gnomerc if [ -r "$GNOMERC" ]; then . "$GNOMERC" fi In Bionic, at the time of launching 55gnome-session_gnomerc, the value of $STARTUP is "gnome-session" and it works properly. In Focal, however, the value of $STARTUP is "env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu", and $BASESTARTUP became "env", then it skips loading ~/.gnomerc. ** Affects: gnome-session (Ubuntu) Importance: Undecided Status: New ** Description changed: I have clean-installed Focal and configured to run X.org server instead of Wayland, and found that the ~/.gnomerc is not loaded anymore. In /etc/X11/Xsession.d/55gnome-session_gnomerc, it tries to load - ~/.gnomerc but it failes because of the change of the gnome-session' + ~/.gnomerc but it fails because of the change of the gnome-session's startup process. Let's see this part of the 55gnome-session_gnomerc: BASESTARTUP=${STARTUP%% *} BASESTARTUP=${BASESTARTUP##*/} if [ "$BASESTARTUP" = x-session-manager ]; then - BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager)) + BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager)) fi case "$BASESTARTUP" in - gnome-session*) - GNOMERC=$HOME/.gnomerc - if [ -r "$GNOMERC" ]; then - . "$GNOMERC" - fi - + gnome-session*) + GNOMERC=$HOME/.gnomerc + if [ -r "$GNOMERC" ]; then + . "$GNOMERC" + fi In Bionic, at the time of launching 55gnome-session_gnomerc, the value of $STARTUP is "gnome-session" and it works properly. In Focal, however, the value of $STARTUP is "env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu", and $BASESTARTUP became "env", then it skips loading ~/.gnomerc. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1895781 Title: ~/.gnomerc is not loaded anymore at startup To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1895781/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs