Skip to content
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
8 changes: 7 additions & 1 deletion install-shortcut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ cd "$basedir"
# fetch logo
wget -O faf-logo.png "$ICON_URL"

exec_prefix=""
if [ -f /etc/os-release ] && grep -q "^ID=nixos" /etc/os-release; then
exec_prefix="steam-run "
fi
exec_cmd="${exec_prefix}\"$basedir/run\""

# write desktop file
echo "Writing desktop file..."
dest_path="$HOME/.local/share/applications/com.faforever.faf-linux.desktop"
tee "$dest_path" <<EOF
[Desktop Entry]
Name=Forged Alliance Forever
Comment=Lobby client for Supreme Commander: Forged Alliance (faf-linux)
Exec=$basedir/run
Exec=$exec_cmd
Type=Application
Icon=$basedir/faf-logo.png
StartupWMClass=com.faforever.client.FafClientApplication
Expand Down