-
-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fefe280
commit 1d97c12
Showing
6 changed files
with
1,546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Desktop Entry] | ||
#Name=Heroic Games Launcher | ||
Name=Heroic Snap | ||
Exec=heroic %u | ||
Terminal=false | ||
Type=Application | ||
Icon=${SNAP}/meta/gui/heroic.png | ||
StartupWMClass=Heroic | ||
Comment=An Open Source GOG and Epic Games launcher | ||
Comment[de]=Ein Open Source Spielelauncher for GOG und Epic Games | ||
MimeType=x-scheme-handler/heroic; | ||
Categories=Game; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
|
||
# https://github.com/canonical/steam-snap/issues/19#issuecomment-1171984524 | ||
# https://gist.github.com/jhenstridge/425c769949d034033f3d5d90acc2f181 | ||
|
||
set -e | ||
|
||
mkdir -p $SNAP_DATA/etc | ||
|
||
snap_ld_so_conf=$SNAP_DATA/etc/snap-ld.so.conf | ||
snap_ld_so_cache=$SNAP_DATA/etc/snap-ld.so.cache | ||
real_ld_so_cache=$SNAP_DATA/etc/ld.so.cache | ||
|
||
RUNTIME=$SNAP/gnome-platform | ||
|
||
cat > "$snap_ld_so_conf" <<EOF | ||
/var/lib/snapd/lib/gl | ||
/var/lib/snapd/lib/gl32 | ||
$SNAP/lib/x86_64-linux-gnu | ||
$SNAP/lib/i386-linux-gnu | ||
$SNAP/lib | ||
$SNAP/usr/lib/x86_64-linux-gnu | ||
$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio | ||
$SNAP/usr/lib/i386-linux-gnu | ||
$SNAP/usr/lib | ||
$SNAP/usr/lib/x86_64-linux-gnu/dri | ||
$SNAP/usr/lib/i386-linux-gnu/dri | ||
$SNAP/usr/lib/i386-linux-gnu/pulseaudio | ||
$SNAP/graphics/lib | ||
$SNAP/graphics/usr/lib | ||
$SNAP/graphics/usr/lib/i386-linux-gnu | ||
$SNAP/graphics/usr/lib/x86_64-linux-gnu | ||
$SNAP/graphics/usr/lib/i386-linux-gnu/dri | ||
$SNAP/graphics/usr/lib/x86_64-linux-gnu/dri | ||
/lib/x86_64-linux-gnu | ||
/lib/i386-linux-gnu | ||
/usr/lib/x86_64-linux-gnu | ||
/usr/lib/i386-linux-gnu | ||
EOF | ||
|
||
ldconfig -X -f $snap_ld_so_conf -C $snap_ld_so_cache | ||
|
||
# We need to update the real ld.so.cache in place rather than moving | ||
# over the top of it, since it is the source of a bind mount. | ||
cat $snap_ld_so_cache > $real_ld_so_cache |
Oops, something went wrong.