itchio / itch

🎮 The best way to play your itch.io games
https://itch.io/app
MIT License
2.38k stars 213 forks source link

Allow launching item with 'wrapper' (optirun, primusrun, screen recording software) #342

Open fleskesvor opened 8 years ago

fleskesvor commented 8 years ago

As mentioned in issues #86 and #92, it's possible to create a launch script in the installation directory that will be executed instead of the game executable. It's not very user friendly though, so I wondered if it might be an idea to allow users to set launch options from the client, like you can in the Steam client, to enable users to add workarounds for possible issues, make it easier to use itch.io with screen recording software and to let users on Optimus laptops easily set a game to launch with their dedicated GPU.

fasterthanlime commented 8 years ago

Yep, definitely something I want to do.

For screen recording & optimus though, I'd like to add actual support for that in the app at some point.

Easy recording + upload of all itch games would be so cool :)

fasterthanlime commented 8 years ago

(This issue is blocked by #285 btw.)

fasterthanlime commented 8 years ago

(Sister issues: #366 / #357)

fasterthanlime commented 8 years ago

@fleskesvor Actually this is not the same issue as #366 — you don't want to (only) be able to pass command-line arguments to games, you also want to be able to launch them using a wrapper, a-la optirun or primusrun. Right?

fleskesvor commented 8 years ago

Yes, that is correct. I'd have to be able to trigger optirun or primusrun before the invocation that launches the game. The same goes for screen recording with e.g. SimpleScreenRecorder (not that I personally use it much) until that is supported by the client (which I agree would be very cool). In the Steam client you can do both, but if you want to wrap the launch command, which is set by the developer, including launch options, you have to type out e.g. primusrun %command% or ssr-glinject %command%.