I've been trying to set up GameMode for Steam, and I've encountered several issues. First, when I enter the "alacarte" command to launch the main menu through the terminal, I see these messages:
(alacarte:40377): Gtk-CRITICAL **: 21:17:29.924: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
(alacarte:40377): Gtk-CRITICAL **: 21:17:29.924: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Next, after I add the "gamemoderun" command and click OK, I see these messages:
Traceback (most recent call last):
File "/usr/share/alacarte/Alacarte/ItemEditor.py", line 186, in on_response
self.save()
File "/usr/share/alacarte/Alacarte/ItemEditor.py", line 176, in save
util.fillKeyFile(self.keyfile, self.get_keyfile_edits())
File "/usr/share/alacarte/Alacarte/ItemEditor.py", line 234, in get_keyfile_edits
Icon=get_icon_string(self, self.builder.get_object('icon-image')),
File "/usr/share/alacarte/Alacarte/ItemEditor.py", line 58, in get_icon_string
filename = editor.icon_file
AttributeError: 'LauncherEditor' object has no attribute 'icon_file'
I have verified that GameMode is installed on my laptop via "sudo apt search gamemode". Also made sure that my laptop supports GameMode via "gamemoded -t"
Welcome to the forum!
I notice that when you say you add gamemoderun, you may be adding it in addition to alacarte? If so, if you try to run it solely on its own with gamemoderun %command%
does that run properly? It should be noted, unless its changed recently, that I believe gamemode, if installed and tested properly (as you said) should run automatically on games that support it.
Also, just making sure but is steam also installed via an apt, as your gamemode is? Just wanting to make sure that wouldn't cause any issues as well.
Running the command "gamemoderun /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam --file-forwarding com.valvesoftware.Steam @@u %U @@" on it's own launches Steam without any problems, but through the main menu something prevents me from modifying the command, as I mentioned earlier. I simply cannot click OK to save the changes (even though it lights up).
Ok, so this appears to be telling me that you may have steam installed via a Flatpak, versus as a deb. That would cause issues like this to potentially rear its ugly head, as you're using a deb package for one and flatpak for the other. I would recommend having them both installed as Debs, as this would avoid any permissions issues that are sure to come up.
No changes for the deb package. Still running into the same issue. I tried to edit the "Exec=" line in the steam.desktop file directly (sudo nano /usr/share/applications/steam.desktop), but it just broke Steam.
The simplest solution I see is to manually launch applications through the terminal or through a self-made script. That way everything works fine, and gamemode seems to be active (gamemoded -s).