Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Black, Flake, Tests
on: [push, pull_request]
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
Expand Down
139 changes: 96 additions & 43 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions sif.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,14 @@ def try_to_create_desktop_file(filename, app_name, app_id, wm_class, lo_fix=Fals
def create_desktop_file(filename, app_name, app_id, wm_class):
"""Creates hidden desktop file for Steam game."""
desktop_file = open(HIDDEN_DESKTOP_FILES_DIR + "/" + filename + ".desktop", "w+")
desktop_file.write(
"""[Desktop Entry]
desktop_file.write("""[Desktop Entry]
Type=Application
Name=%s
Icon=steam_icon_%s
Exec=steam steam://rungameid/%s
Terminal=false
StartupWMClass=%s
NoDisplay=true"""
% (app_name, app_id, app_id, wm_class)
)
NoDisplay=true""" % (app_name, app_id, app_id, wm_class))
desktop_file.close()


Expand Down Expand Up @@ -399,7 +396,7 @@ def quit_handler(_, __):
help="works only with --single option and forces a Proton specific WM_CLASS",
)

(options, args) = parser.parse_args()
options, args = parser.parse_args()

# Set constant variables

Expand Down
Loading