mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-29 22:20:21 +00:00
fix(decky): Ensure we retrieve the user's home directory
Each newline in a just recipe instantiates a new shell unless we explicitly define the environment. Similarly, because of this limitation, we need to retrieve the users home directory (since we are executing this recipe with sudo) so that it does not assume that the user is root We will have to do this in the future for other recipes that depend on the environment being preserved. Further, I ran into a limitation where global env variables must be strings/characters. We can not reuse these variables either so they must be declared for each recipe See: https://just.systems/man/en/chapter_44.html
This commit is contained in:
parent
c5c6f841dc
commit
3eb3f67728
@ -15,6 +15,8 @@ create-steam-shortcuts:
|
||||
cp /etc/skel.d/Desktop/Return.desktop ~/Desktop
|
||||
|
||||
get-decky:
|
||||
#!/usr/bin/env bash
|
||||
export HOME=$(getent passwd ${SUDO_USER:-$USER} | cut -d: -f6)
|
||||
curl -L https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/install_release.sh | sh
|
||||
sudo chcon -R -t bin_t $HOME/homebrew/services/PluginLoader
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user