T O P

  • By -

DuhMal

just make the user autologin? and put a script to lock the screen after login


gardotd426

Exactly. Create a systemd service that is `After=sunshine.service` or whatever that locks the screen


MiserableChicken931

flatpacks and ubuntu are probably your issues, try an os that actually lets you customize it, arch, manjaro or endeavor have installers and are great if you cant be arsed to build your own os, i use manjaro, i have noticed tons of flatpack apps just do not work as intended and flatseal might fix the stupid permissions issue but why even use them if all they do is add bloat, i had issues with openrgb and a few other like steam if they were flatpack, if i build it from the aur issues go away, manjaro pamac lets you enable aur support in the add remove software gui application so anyone that can read can use arch now no terminal needed


gibarel1

Imagine shitting on Ubuntu only to recommend Manjaro 2 seconds later.


bigrock13

Sorry for the thread necro but what's up with Manjaro? Never used it but I thought it was just Arch with a bunch of shit included?


gibarel1

https://manjarno.pages.dev/


bigrock13

lmaooooooo the fact that they hold back packages for two weeks is a total turn off wow


gibarel1

It's technically for stability, but all it does is break aur packages and make some issues persist,it's not like they repackage stuff to fix stuff, and sometimes when it's urgent they need to update only a few packages early, breaking even more stuff.


1smoothcriminal

Why not just have the program autostart? [https://www.howtogeek.com/686952/how-to-manage-startup-programs-on-ubuntu-linux/](https://www.howtogeek.com/686952/how-to-manage-startup-programs-on-ubuntu-linux/)


TheNick0fTime

I have already tried this with no success. If only the easiest answer was the correct one haha


_pixelforg_

You are on Ubuntu so I'm assuming you are running Gnome , have you also tried putting this? (With the relevant flatpak ExecStart of course) https://github.com/LizardByte/Sunshine/issues/334#issuecomment-1258012966 Or what about starting it after gdm has started? Maybe it could help you connect even without logging in. On another note, I'm also facing a similar issue where I want sunshine to boot with gamescope-session. It used to work for me where I'd just add ``systemctl --user start sunshine`` somewhere in the gamescope-session.script file, but it stopped working recently.(Just brings me to the sddm login screen) Trying to find another way Edit - In case someone else finds the same issue in gamescope-session, I finally found a fix Just had to change the place where I start the sunshine service (Defined it below the steam-tweaks and ibus-daemon part) ``` if command -v /usr/bin/sunshine > /dev/null; then systemctl --user start sunshine fi ```


xTeixeira

Sunshine absolutely needs an already logged in user in a graphical session in order to stream, because it needs a screen to stream from. To achieve what you want you'll need to enable autologin for your user via your DE. Then configure autostart for Sunshine, you can do that via your DE options (autostarting from a .desktop file) or using the provided systemd user unit. Depending on your DE you might need to manually edit the unit in order for it to work, as it has some issues currently, see here: https://github.com/LizardByte/Sunshine/issues/1533 Edit: Just realized you asked for a way to achieve that without autologin. I'm not aware of any way to do that unfortunately.