mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Major rewrite: switching back to Arch from NixOS
This commit is contained in:
parent
df585b737b
commit
254181c0fc
121 changed files with 5433 additions and 2371 deletions
17
root/usr/local/bin/greetd-session-wrapper
Executable file
17
root/usr/local/bin/greetd-session-wrapper
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# This is a helper wrapper script for greetd.
|
||||
#
|
||||
# It will run the session / application using the appropriate shell configured for
|
||||
# this user. That way, we can make sure all of the environment variables are set
|
||||
# before the WM/DE session is started.
|
||||
#
|
||||
# This is very important, as without it, variables for things like qt theme
|
||||
# will not be set, and applications executed by the WM/DE will not be themed properly.
|
||||
|
||||
script_name="$0"
|
||||
shell="$(getent passwd "$USER" | awk -F: '{print $NF}')"
|
||||
command=("$@")
|
||||
|
||||
exec "$shell" -c 'exec "$@"' "$script_name" "${command[@]}"
|
Loading…
Add table
Add a link
Reference in a new issue