Commit eb9607ad authored by Phil Hagelberg's avatar Phil Hagelberg
Browse files

Move certain settings to system-wide profile.

This allows you to customize your own profile without breaking
critical features. When this is stored in user-level settings it's
really easy to override the config in ways that break xorg.

The most important thing is moving the ETNA_MESA_DEBUG=nir setting. I
suspect the unicode_start call is also suitable for the system-wide
profile, but I'm not so sure about the GTK2_RC_FILES; maybe that
should remain in per-user settings? But if a user wants to override
it, their changes will override the system-wide ones anyway.
parent 38965a37
Pipeline #305 failed with stage
......@@ -44,6 +44,8 @@ cp $ETC/hostname target-userland/etc
cp $ETC/hosts target-userland/etc
cp $ETC/adduser.conf target-userland/etc # or else EXTRA_GROUPS doesn't work?!
cp $ETC/reform-* target-userland/etc
mkdir -p target-userland/etc/profile.d
cp $ETC/profile.d/* target-userland/etc/profile.d/
# copy pulse config files that will be moved inside the target fs later
cp $ETC/pulse/* target-userland/
......
# Defaults for MNT Reform
# enable NIR shader path in mesa. without this,
# some Xwayland applications will be blank
export ETNA_MESA_DEBUG=nir
# set GTK2 theme
export GTK2_RC_FILES=/usr/share/themes/Arc-Dark/gtk-2.0/gtkrc
unicode_start
......@@ -26,25 +26,8 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# Defaults for MNT Reform
# enable NIR shader path in mesa. without this,
# some Xwayland applications will be blank
export ETNA_MESA_DEBUG=nir
# set GTK2 theme
export GTK2_RC_FILES=/usr/share/themes/Arc-Dark/gtk-2.0/gtkrc
unicode_start
if [ $(whoami) == "root" ]
then
if [ $(whoami) == "root" ]; then
cat /etc/reform-root-help
elif [ ! -z $WAYLAND_DISPLAY ]
then
# do nothing
true
else
elif [ -z $WAYLAND_DISPLAY ]; then
cat /etc/reform-help
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment