Skip to content

Commit a7a6014

Browse files
authored
Add support for snap Steam in the Linux installer (#1578)
1 parent 29d2ea8 commit a7a6014

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

installer/linux/install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,21 @@ find_gd_installation() {
7171
verbose_log "Searching for Geometry Dash..."
7272
local DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
7373

74-
for GD_IDX in "$DATA_HOME/Steam" "$HOME/Steam" "$HOME/.var/app/com.valvesoftware.Steam/data/Steam"; do
74+
for GD_IDX in "$DATA_HOME/Steam" "$HOME/Steam" "$HOME/.var/app/com.valvesoftware.Steam/data/Steam" "$HOME/snap/steam/common/.steam/steam"; do
7575
local PATH_TEST="$GD_IDX/steamapps/common/Geometry Dash"
7676
verbose_log "- Testing path ${YELLOW}$PATH_TEST${NC}"
7777

7878
if is_valid_gd_path "$PATH_TEST"; then
7979
# Found it!
8080
GD_PATH="$PATH_TEST"
81+
82+
case "$PATH_TEST" in
83+
*/snap/steam/common/*)
84+
echo "${YELLOW}Detected Steam installed with Snap. This is not a supported platform, and you may run into issues.${NC}"
85+
echo "${YELLOW}To ensure you have the best experience, install Steam using your distribution's package manager, or through Flatpak.${NC}"
86+
;;
87+
esac
88+
8189
verbose_log "* Found at ${YELLOW}$GD_PATH${NC}"
8290
return 0
8391
fi

0 commit comments

Comments
 (0)