Skip to content

Commit b009c91

Browse files
committed
fix bug where a necessary line would not be created in the config on first launch, one new unrelated comment
1 parent cad0d20 commit b009c91

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/scbgui.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def launch_window(ui_path:str,window_title:str="WindowTitle",iconpath:str=""):
2929
variable_name.setWindowIcon(QIcon(iconpath))
3030
return variable_name
3131

32-
32+
# set directories for testing and compiled into a flatpak
3333
if in_flatpak():
3434
print('IN FLATPAK!')
3535
uipath_main = "/app/share/scopebuddygui/mainwindow.ui"
@@ -65,7 +65,7 @@ def ensure_gamescope_line() -> bool: #if config file doesn't have the gamescope
6565
file.seek(0, os.SEEK_END) # ensure we are at the end of the file
6666
if lines and not lines[-1].endswith('\n'):
6767
file.write('\n')
68-
file.write("SCB_GAMESCOPE_ARGS=\"\"\n")
68+
file.write('SCB_GAMESCOPE_ARGS=""\n')
6969
return True
7070

7171

@@ -108,6 +108,7 @@ def ensure_gamescope_line() -> bool: #if config file doesn't have the gamescope
108108
file.write("# $SCB_NOSCOPE will be set to 1 if we are running in no gamescope mode\n")
109109
file.write("# $SCB_GAMEMODE will be set to 1 if we are running inside steam gamemode (which means SCB_NOSCOPE will also be set to 1 due to nested gamescope not working in gamemode)\n")
110110
file.write("# $command will contain everything steam expanded %command% into\n")
111+
ensure_gamescope_line()
111112
return True
112113
except OSError as e:
113114
print(f"Error creating config file: {e}")
@@ -272,7 +273,7 @@ def set_arguments(settings):
272273
('checkbox', self.bWindow, '-b'),
273274
('lineEdit', self.oHeight, '-H'),
274275
('lineEdit', self.oWidth, '-W'),
275-
('checkbox', self.steam, '-e'),
276+
('checkbox', self.steam, '-e'),entirely
276277
('checkbox', self.hdr, '--hdr-enabled'),
277278
('lineEdit', self.maxScale, '-m'),
278279
('comboBox', self.upscalerType, '-S'),

0 commit comments

Comments
 (0)