Добавлены встроенные переопределения для автоустановок #24
| @@ -30,6 +30,7 @@ | ||||
| - Ошибки темы в Gamescope | ||||
| - Размер иконок для desktop файлов теперь 128x128 | ||||
| - Пустая область при обновлении сетки игр | ||||
| - Запуск игры при открытом оверлее | ||||
|  | ||||
| ### Contributors | ||||
| - @Dervart | ||||
|   | ||||
| @@ -2,6 +2,7 @@ | ||||
| %global pypi_version 0.1.1 | ||||
| %global oname PortProtonQt | ||||
| %global build_timestamp %(date +"%Y%m%d") | ||||
| %global _python_no_extras_requires 1 | ||||
|  | ||||
| %global rel_build 1.git.%{build_timestamp}%{?dist} | ||||
|  | ||||
| @@ -47,6 +48,8 @@ Requires:       xdg-utils | ||||
| %description -n python3-%{pypi_name}-git | ||||
| This application provides a sleek, intuitive graphical interface for managing and launching games from PortProton, Steam, and Epic Games Store. It consolidates your game libraries into a single, user-friendly hub for seamless navigation and organization. Its lightweight structure and cross-platform support deliver a cohesive gaming experience, eliminating the need for multiple launchers. Unique PortProton integration enhances Linux gaming, enabling effortless play of Windows-based titles with minimal setup. | ||||
|  | ||||
| %{?python_disable_dependency_generator} | ||||
|  | ||||
| %prep | ||||
| git clone https://git.linux-gaming.ru/Boria138/PortProtonQt.git | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| %global pypi_name portprotonqt | ||||
| %global pypi_version 0.1.2 | ||||
| %global oname PortProtonQt | ||||
| %global _python_no_extras_requires 1 | ||||
|  | ||||
| Name:           python-%{pypi_name} | ||||
| Version:        %{pypi_version} | ||||
| @@ -44,6 +45,8 @@ Requires:       xdg-utils | ||||
| %description -n python3-%{pypi_name} | ||||
| This application provides a sleek, intuitive graphical interface for managing and launching games from PortProton, Steam, and Epic Games Store. It consolidates your game libraries into a single, user-friendly hub for seamless navigation and organization. Its lightweight structure and cross-platform support deliver a cohesive gaming experience, eliminating the need for multiple launchers. Unique PortProton integration enhances Linux gaming, enabling effortless play of Windows-based titles with minimal setup. | ||||
|  | ||||
| %{?python_disable_dependency_generator} | ||||
|  | ||||
| %prep | ||||
| git clone https://git.linux-gaming.ru/Boria138/PortProtonQt | ||||
| cd %{oname} | ||||
|   | ||||
| @@ -137,6 +137,8 @@ class ContextMenuManager: | ||||
|             if not exe_path or not os.path.exists(exe_path): | ||||
|                 return False | ||||
|             current_exe = os.path.basename(exe_path) | ||||
|         elif game_card.game_source == "steam": | ||||
|             return False | ||||
|         else: | ||||
|             exec_line = self._get_exec_line(game_card.name, game_card.exec_line) | ||||
|             if not exec_line: | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/AlbionLauncher/Albion Online.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 643 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Ankama Launcher/Ankama Launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 178 KiB | 
| After Width: | Height: | Size: 508 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Battle.net/Battlenet.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 217 KiB | 
| After Width: | Height: | Size: 702 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/CIU/Chicken Invaders Universe.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 827 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/CWClientLauncher/CONTRACT WARS.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 429 KiB | 
| After Width: | Height: | Size: 1.1 MiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Cemu/CEMU.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 254 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/ClientPatcher/Secret World Legends.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 946 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/ConsoleLauncher/Broken Ranks.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 511 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Dolphin/Dolphin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 44 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/DoomsdayLastSurvivors/Doomsday.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 936 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Eldevin/Eldevin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 674 KiB | 
| After Width: | Height: | Size: 351 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/ExboLauncher/STALCRAFT.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 963 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/ExoTanksMOBA_Launcher/ExoTanks.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 757 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Farlight84Launcher/Farlight 84.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 954 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/FracturedOnline/Fractured Online.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.0 MiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/GGDLauncher/Goose Goose Duck.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 552 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/GalaxyClient/GOG GALAXY.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 680 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Gw2/Guild Wars 2.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 360 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/IGClient/Indiegala.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 247 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/LC/Last Chaos.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.0 MiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/LaunchPad/DC Universe Online.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 901 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Launcher_Anomaly/Anomaly Zone.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 864 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Launcher_Caliber/CALIBER.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 346 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Launcher_Rockstar/Rockstar.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 56 KiB | 
| After Width: | Height: | Size: 1.0 MiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Launcher_Warframe/Warframe.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 769 KiB | 
| After Width: | Height: | Size: 806 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/MWOLauncher/Metal War Online.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 762 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/MicroMiniNew/Mini World.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 684 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/PPSSPPWindows64/PPSSPP.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 240 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Panzarstart/Panzar.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 963 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/PathOfExile/Path of Exile.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 961 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/PlariumPlay/Plarium Play.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 701 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Project64/Project64.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 637 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/PulseOnlineLauncher/Pulse Online.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 592 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/RF4/Russian Fishing 4.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 724 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Saturn/Saturn.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 623 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/Tanki Online/Tanki Online.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 974 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/UbisoftConnect/Ubisoft Connect.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 143 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/VKPlayLoader/vkPlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 45 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/W3D Hub Launcher/W3DHUB.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 590 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/aops/Battle Of Space Raiders.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 145 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/azahar/Azahar.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 171 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/bsnes/bsnes.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 665 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/demul/Demul.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 76 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/ePSXe/ePSXe.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 373 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/elsword/Elsword.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.0 MiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/eve-online/EVE Online Launcher.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 704 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/fceux64/FCEUX.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 888 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/gamexp-launcher/GameXP.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 646 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/gfclient/Gameforge.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 148 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/itch/ITCH.IO.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 28 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/launcher_Crossout/Crossout.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 1.0 MiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/launcher_HoYoPlay/HoYoPlay.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 777 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/launcher_LostLight/Lost Light.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 469 KiB | 
| After Width: | Height: | Size: 810 KiB | 
| After Width: | Height: | Size: 840 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/launcher_StarConflict/Star Conflict.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 656 KiB | 
| After Width: | Height: | Size: 814 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/launcher_wosb/World of Sea Battle.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 885 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/lgc_api/Lesta Game Center.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 315 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/mame/MAME.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 211 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/melonDS/melonDS.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 257 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/osu!/OSU.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 57 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/retroarch/RetroArch.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 768 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/rof_updater/Rise of Flight.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 694 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/steam/Steam.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 691 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/toribash/Toribash.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 653 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/visualboyadvance-m/VBA-M.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 108 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/wgc_api/Wargaming Game Center.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 141 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/xemu/xemu.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 23 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/xenia/Xenia.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 239 KiB | 
							
								
								
									
										
											BIN
										
									
								
								portprotonqt/custom_data/yabause/Yabause.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| After Width: | Height: | Size: 238 KiB | 
| @@ -369,6 +369,7 @@ class InputManager(QObject): | ||||
|             active = QApplication.activeWindow() | ||||
|             focused = QApplication.focusWidget() | ||||
|             popup = QApplication.activePopupWidget() | ||||
|             modal_dialog = QApplication.activeModalWidget() | ||||
|  | ||||
|             # Handle Guide button to open system overlay | ||||
|             if button_code in BUTTONS['guide']: | ||||
| @@ -460,7 +461,7 @@ class InputManager(QObject): | ||||
|                     return | ||||
|  | ||||
|             # Game launch on detail page | ||||
|             if (button_code in BUTTONS['confirm']) and self._parent.currentDetailPage is not None and self._parent.current_add_game_dialog is None: | ||||
|             if (button_code in BUTTONS['confirm']) and self._parent.currentDetailPage is not None and modal_dialog is None: | ||||
|                 if self._parent.current_exec_line: | ||||
|                     self.trigger_rumble() | ||||
|                     self._parent.toggleGame(self._parent.current_exec_line, None) | ||||
|   | ||||
| @@ -1984,6 +1984,7 @@ class MainWindow(QMainWindow): | ||||
|                 env_vars = os.environ.copy() | ||||
|                 env_vars['START_FROM_STEAM'] = '1' | ||||
|                 env_vars['LEGENDARY_CONFIG_PATH'] = self.legendary_config_path | ||||
|                 env_vars['PROCESS_LOG'] = '1' | ||||
|  | ||||
|                 wrapper = "flatpak run ru.linux_gaming.PortProton" | ||||
|                 if self.portproton_location is not None and ".var" not in self.portproton_location: | ||||
| @@ -2091,8 +2092,10 @@ class MainWindow(QMainWindow): | ||||
|  | ||||
|             if entry_exec_split[0] == "env" and len(entry_exec_split) > 1 and 'data/scripts/start.sh' in entry_exec_split[1]: | ||||
|                 env_vars['START_FROM_STEAM'] = '1' | ||||
|                 env_vars['PROCESS_LOG'] = '1' | ||||
|             elif entry_exec_split[0] == "flatpak": | ||||
|                 env_vars['START_FROM_STEAM'] = '1' | ||||
|                 env_vars['PROCESS_LOG'] = '1' | ||||
|  | ||||
|             # Delay disabling gamepad handling to allow rumble to complete | ||||
|             if hasattr(self, 'input_manager'): | ||||
|   | ||||