summarylogtreecommitdiffstats
path: root/heroic-games-launcher-bin-wayland-hook.install
blob: 2d51ae15d62843f5a0120bc2cb2222479899dce6 (plain)
1
2
3
4
5
6
7
post_install() {
	echo "Defaulting to Wayland in the current heroic-games-launcher-bin install"
	rm /usr/bin/heroic
	echo -e "#! /bin/bash\n\n/opt/Heroic/heroic --ozone-platform-hint=auto" > /usr/bin/heroic
	sed -E "s|/opt/Heroic/heroic|/opt/Heroic/heroic --ozone-platform-hint=auto|" -i /usr/share/applications/heroic.desktop
	chmod +x /usr/bin/heroic
}