Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overriding the XDG_CURRENT_DESKTOP setting from .config/environment.d #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions usr/bin/regolith-session-wayland
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ if [ -n "$DESKTOP_AUTOSTART_ID" ]; then
dbus-send --print-reply --session --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.RegisterClient "string:Regolith-Wayland" "string:$DESKTOP_AUTOSTART_ID"
fi

# Set XDG_CURRENT_DESKTOP
export XDG_CURRENT_DESKTOP="Regolith-Wayland:GNOME:sway"

# Import environment variables from environment.d
while read -r l; do
eval export $l
done < <(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)

# Set XDG_CURRENT_DESKTOP
export XDG_CURRENT_DESKTOP="Regolith-Wayland:GNOME:sway"

# Start sway-regolith
unsupported_gpu=$(trawlcat regolith.sway.unsupported_gpu false)
echo "Regolith is launching Sway with $SWAY_CONFIG_FILE"
Expand Down