Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ingame
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
ingame
Commits
534b79c3
Commit
534b79c3
authored
Aug 11, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added flatpak support
parent
891da8b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
App.py
ingame/models/App.py
+6
-2
No files found.
ingame/models/App.py
View file @
534b79c3
...
...
@@ -132,7 +132,8 @@ class App(QtCore.QObject):
# Ignore extra non-related desktop entries
if
(
len
(
entry_exec_split
)
<=
1
or
(
'data/scripts/start.sh'
not
in
entry_exec_split
[
1
]
or
'
%
F'
in
entry_exec_split
[
-
1
])):
(
'data/scripts/start.sh'
not
in
entry_exec_split
[
1
]
or
'
%
F'
in
entry_exec_split
[
-
1
])
and
(
'flatpak'
not
in
entry_exec_split
[
0
]
or
'ru.linux_gaming.PortProton'
in
entry_exec_split
[
-
1
])):
continue
# TODO parse product name
...
...
@@ -140,7 +141,10 @@ class App(QtCore.QObject):
entry_icon
=
(
os
.
path
.
isfile
(
entry_icon
)
and
entry_icon
)
or
''
# Remove extra env in the beginning
entry_exec
=
f
"env START_FROM_STEAM=1 {entry_exec[4:len(entry_exec)]}"
if
(
'data/scripts/start.sh'
in
entry_exec_split
[
1
]):
entry_exec
=
f
"env START_FROM_STEAM=1 {entry_exec[4:len(entry_exec)]}"
elif
(
'flatpak'
in
entry_exec_split
[
0
]):
entry_exec
=
f
"flatpak run --env=START_FROM_STEAM=1 {entry_exec[12:len(entry_exec)]}"
self
.
portproton_games_model
.
add_game
(
GameEntry
(
name
=
entry_name
,
icon
=
entry_icon
,
exec
=
entry_exec
))
except
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment