From ccfe455fb43ec1799edeafa06e1baf0540cf0cea Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sat, 5 Jul 2025 12:19:57 +0500 Subject: [PATCH] drop chimeraos session Signed-off-by: Boris Yumankulov --- README.md | 15 ---------- usr/bin/portproton-gamescope | 29 +++++++++++++++++++ .../sessions.d/portprotonqt | 3 -- ...u.linux_gaming.portprotonqt-session.policy | 2 +- .../gamescope-session-portprotonqt.desktop | 2 +- 5 files changed, 31 insertions(+), 20 deletions(-) create mode 100755 usr/bin/portproton-gamescope delete mode 100644 usr/share/gamescope-session-plus/sessions.d/portprotonqt diff --git a/README.md b/README.md index fb40ffb..16547c1 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,6 @@ their work on the SteamDeck). This configuration depends on [gamescope-session]( Copy this repository file structure into the appropriate places and you'll be able to start the session on any Display Manager of your choice. -# Configuration - -The session sources environment from `~/.config/environment.d/*.conf` files. -The easiest way to configure the session is to create `~/.config/environment.d/gamescope-session.conf` -and set variables there: - -``` -# Override entire PortProtonQt command line -CLIENTCMD="portprotonqtqt" - -# Override the entire Gamescope command line -# This will not use screen and render sizes -GAMESCOPECMD="gamescope -e -f" -``` - # License & Contributing The project is licensed under GPL v3 license. If you want to contribute, diff --git a/usr/bin/portproton-gamescope b/usr/bin/portproton-gamescope new file mode 100755 index 0000000..4fd0c9b --- /dev/null +++ b/usr/bin/portproton-gamescope @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +# Source user configuration from ~/.config/environment.d +set -a +for i in "${HOME}"/.config/environment.d/*.conf; do + [[ -f "${i}" ]] && . "${i}" +done +set +a + +# Fix intel color corruption +# might come with some performance degradation but is better than a corrupted +# color image +export INTEL_DEBUG=norbc +export mesa_glthread=true + +# This should be used by default by gamescope. Cannot hurt to force it anyway. +# Reported better framelimiting with this enabled +export ENABLE_GAMESCOPE_WSI=1 + +# Some environment variables by default (taken from Deck session) +export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 + +# Add custom vulkan adapter if specified +if [ -n "$VULKAN_ADAPTER" ]; then + GAMESCOPECMD= " --prefer-vk-device $VULKAN_ADAPTER" +fi + +# Start client application +gamescope $GAMESCOPECMD -- portprotonqt --fullscreen diff --git a/usr/share/gamescope-session-plus/sessions.d/portprotonqt b/usr/share/gamescope-session-plus/sessions.d/portprotonqt deleted file mode 100644 index 8cdf1da..0000000 --- a/usr/share/gamescope-session-plus/sessions.d/portprotonqt +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -CLIENTCMD="portprotonqt --fullscreen" diff --git a/usr/share/polkit-1/actions/ru.linux_gaming.portprotonqt-session.policy b/usr/share/polkit-1/actions/ru.linux_gaming.portprotonqt-session.policy index 18cce51..6fd2559 100644 --- a/usr/share/polkit-1/actions/ru.linux_gaming.portprotonqt-session.policy +++ b/usr/share/polkit-1/actions/ru.linux_gaming.portprotonqt-session.policy @@ -3,7 +3,7 @@ PortProtonQt https://git.linux-gaming.ru/Boria138 - + Helper to switch sessions package-x-generic diff --git a/usr/share/wayland-sessions/gamescope-session-portprotonqt.desktop b/usr/share/wayland-sessions/gamescope-session-portprotonqt.desktop index 6eb77bb..f1a562d 100644 --- a/usr/share/wayland-sessions/gamescope-session-portprotonqt.desktop +++ b/usr/share/wayland-sessions/gamescope-session-portprotonqt.desktop @@ -2,6 +2,6 @@ Encoding=UTF-8 Name=PortProtonQt Comment=PortProtonQt Session -Exec=gamescope-session-plus portprotonqt +Exec=portprotonqt-gamescope Type=Application DesktopNames=gamescope