mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
games-util/HeroicGamesLauncher-bin: add gamescope useflag
* add desktop file to open with gamescope * launch heroic using gamescope (app and all games) Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
@@ -11,10 +11,14 @@ HOMEPAGE="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RDEPEND="gamescope? ( gui-wm/gamescope )"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
S="${WORKDIR}/heroic-${PV}"
|
||||
|
||||
IUSE="gamescope"
|
||||
|
||||
src_install() {
|
||||
mv "${S}" "${WORKDIR}/heroic"
|
||||
insinto /opt
|
||||
@@ -24,8 +28,13 @@ src_install() {
|
||||
fperms +x /opt/heroic/heroic /opt/bin/heroic
|
||||
|
||||
#fix login error both EPIC and GOG
|
||||
fperms +x /opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary /opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
|
||||
fperms +x /opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary \
|
||||
/opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
|
||||
|
||||
domenu "${FILESDIR}/HeroicGamesLauncher.desktop"
|
||||
newicon "${WORKDIR}/heroic/resources/app.asar.unpacked/build/icon.png" heroic.png
|
||||
if use gamescope; then
|
||||
#Start Heroic as gamescope window
|
||||
domenu "${FILESDIR}/HeroicGamesLauncher-gamescope.desktop"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Name=Heroic Games Launcher (Gamescope)
|
||||
Exec=env GDK_BACKEND=wayland gamescope -w 1920 -h 1080 -f -Y -R --RT --force-grab-cursor --prefer-vk-device --adaptive-sync --sharpness 15 -- /opt/heroic/heroic --ozone-platform=x11 --enable-features=UseOzonePlatform,WaylandWindowDecorations
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=heroic
|
||||
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;
|
||||
@@ -1,6 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<use>
|
||||
<flag name="gamescope">Efficient micro-compositor for running games</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">Heroic-Games-Launcher/HeroicGamesLauncher</remote-id>
|
||||
</upstream>
|
||||
|
||||
Reference in New Issue
Block a user