regolith-linux / regolith-st

Suckless simple terminal (st) for Regolith Linux
6 stars 2 forks source link

regolith-st sets itself as the default terminal when installing regolith-desktop on Ubuntu 18.04 #9

Open BenQuigley opened 5 years ago

BenQuigley commented 5 years ago

The Regolith Linux install page says that one of the two ways that a user can try Regolith is to install the regolith-desktop desktop environment from the PPA.

sudo add-apt-repository -y ppa:kgilmer/regolith-stable
sudo apt install regolith-desktop

Expected result: I expect that "at the login screen, [I can] select the “gear” (⚙️) icon and select Regolith from the list, and then login." I do not expect my Gnome setup to change at all.

Actual result: regolith-st was set as my default terminal emulator, so Ctrl+Alt+T launched this terminal instead.

Notes: I ran gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal in order to fix this. Not only did it fix it, but it made it so that I could no longer reproduce this bug. I ran the "Uninstallation of regolith-desktop" steps from the Regolith Install page, then reinstalled it, and gnome-terminal remained my default.

kgilmer commented 5 years ago

Hi @BenQuigley , yes st sets itself as the default terminal via update-alternatives by design. You can see what is executed upon package install here: https://github.com/regolith-linux/regolith-st/blob/debian/debian/regolith-st.postinst

The terminal is removed from update-alternatives upon uninstallation here: https://github.com/regolith-linux/regolith-st/blob/debian/debian/regolith-st.prerm

Because Regolith deeply integrates with GNOME, and there is no clean seperation in Xwindows across user-sessions (you login a Ubuntu session or a Regolith session) as it applies to GNOME settings and update-alternatives I'm unsure of how Regolith could not change the default terminal and continue to function as designed.

Other than documenting how to revert the change, do you have any other suggestions?

BenQuigley commented 5 years ago

Hmm, thank you for the information. I see that you're right, as I noticed other settings were changed (such as the icon set and theme being installed on top of GNOME). It would be nice if we could completely separate the Regolith and the GNOME instances so that the user can pick one or the other. I wonder how other projects have approached this, and how big of a task this is.