Page MenuHomeSolus

Initial inclusion of Sunshine for T9799
ClosedPublic

Authored by Jacek on Jul 3 2021, 7:50 AM.
Tags
None
Referenced Files
F10829195: D11399.id27563.diff
Sun, Jun 4, 11:26 AM
F10827913: D11399.id27605.diff
Sun, Jun 4, 7:53 AM
F10825359: D11399.diff
Sat, Jun 3, 11:49 PM
F10774308: D11399.id27606.diff
Mon, May 22, 5:06 AM
F10773958: D11399.id27589.diff
Mon, May 22, 1:39 AM
F10765027: D11399.id27576.diff
Fri, May 19, 10:40 AM
F10764423: D11399.id.diff
Fri, May 19, 6:58 AM
F10761528: D11399.id27606.diff
Thu, May 18, 10:12 AM

Details

Summary

Initial inclusion of Sunshine, fixes T9799.

Test Plan

Used prebuild Sunshine on both Linux and Windows for last few months.
Used this packaged version for a day with bot PS Vita and Android.
Test on another machine that adding user to input in fact isn't necessary for the controller to work.

Diff Detail

Repository
R5262 sunshine
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Jacek requested review of this revision.Jul 3 2021, 7:50 AM
joebonrichie added subscribers: JoshStrobl, joebonrichie.

After installation user needs to be added to input group using sudo usermod -a -G input $USER for controller to work. Can it be done during the installation?

AFAIK the only way to add the user to the correct group is with a custom usysconf trigger. We are still using the legacy usysconf, but with the new version of usysconf it should be significantly easier to add a toml based usysconf trigger for this, ping @JoshStrobl for status/thoughts?

I think there is a risk updating the package could overwrite user settings, like in apps_linux.json, but I don't see a better option to package it

I haven't looked deeply into it but upstream should probably generate and install config files to XDG_CONFIG_HOME/sunshine. It might be possible to patch in support for a statelessness config, where /etc/sunshine/apps_linux.json is searched first before /usr/share/sunshine/apps_linux.json. If that's too much work then just leave as-is.

Am I putting all the files in the correct locations, or should I choose some different ones.

File locations look correct to me AFAICT.

make will fail if I don't build in /build, I already mentioned this bug to the author

This is quite common for cmake based projects and is generally recommended behavior, no need to worry about it.

Might have missed some things, the main blocker is the custom post-install step

package.yml
2

Lowercase sunshine

7

Should either be GPL-3-0-only or GPL-3.0-or-later, it's hard to tell which one it is as they do not include the copyright notice at the top of their source files.

8

Probably network.web is the best component match.

31

Using cp is okay here as long as the file permissions are all correct.

This revision now requires changes to proceed.Jul 5 2021, 1:37 AM

After installation user needs to be added to input group using sudo usermod -a -G input $USER for controller to work. Can it be done during the installation?

AFAIK the only way to add the user to the correct group is with a custom usysconf trigger.

Nope. That's qol-assist.

Make changes according to joebonrichie's comments

Jacek marked 4 inline comments as done.Jul 6 2021, 8:15 AM

I tested it on a fresh machine, and contrary to what program's readme says, you don't need to add user to input group! I even tested it a few months ago and back then it was needed but for some reason it no longer is.
So I think this package is now ready to be included, and all functions work without the need of qol-assist.
Should I create a new diff without [RFC] in the name, or can I just edit this one?

Should I create a new diff without [RFC] in the name, or can I just edit this one?

Can just edit this one.

package.yml
34

Should use %libdir% instead of /usr/lib

35

Should use %libdir% instead of /usr/lib

This revision now requires changes to proceed.Jul 6 2021, 8:32 AM

Use %libdir% according to Josh's advice

Jacek retitled this revision from [RFC] Initial inclusion of Sunshine for T9799 to Initial inclusion of Sunshine for T9799.Jul 6 2021, 9:45 AM
Jacek edited the summary of this revision. (Show Details)
Jacek edited the test plan for this revision. (Show Details)
Jacek marked 2 inline comments as done.

Fix permissions for sunshine.conf and apps_linux.json, so the new web GUI can edit them

This revision was not accepted when it landed; it landed in state Needs Review.Jul 8 2021, 6:30 PM
This revision was automatically updated to reflect the committed changes.