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