sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
252 stars 240 forks source link

Launch sugar in a window #929

Open westurner opened 3 years ago

westurner commented 3 years ago

Is there a way to launch sugar in a window (in gnome) at least for development (instead of by selecting sugar as an alternate window manager/launcher in the GDM login screen)? That would solve for: screensaver with lock screen, sugar not working with e.g. LightDM on old notebooks, development and testing.

A person could require the window to launch in fullscreen in kiosk mode if that's necessary.

"Software Screensaver" https://github.com/sugarlabs/sugar/issues/927

(Edit) https://github.com/sugarlabs/sugar-runner :+1:

Sugar Runner is for running Sugar as an application inside a desktop environment. It provides a desktop menu item and icon.

You can run it from a text console or from inside another X session. By default it runs in fullscreen but you can specify the window size using the --resolution option.

quozl commented 3 years ago

Needs more user experience detail. Sugar could be changed to check for command line argument --no-fullscreen and;

westurner commented 3 years ago

I'll take a look at https://github.com/sugarlabs/sugar-runner .

"Kiosk / single-application mode" https://github.com/sugarlabs/sugar-runner/issues/7

devmrfitz commented 3 years ago

Is this issue about running the traditional Sugar session manager view in a window in another manager like Gnome, XFCE, etc?

quozl commented 3 years ago

Yes, this issue originally asked about how to run Sugar inside another window manager. It is an idea that has merit, but has not been implemented in Sugar yet. I gave items that begin to show what would have to change inside Sugar to complete the idea.

However, there was no progress on defining what was to change or to change it. Instead something that is not part of Sugar, called Sugar Runner, which used to do something like this but not as well, and is unmaintained, was suggested as a workaround.

devmrfitz commented 3 years ago

Should I try to implement it using Xephyr?

quozl commented 3 years ago

No. As in https://github.com/sugarlabs/sugar/issues/929#issuecomment-657303717, implementing support for running Sugar as a window requires a set of steps, and none of them would require Xephyr. Sugar Runner only used Xephyr and Xvfb in order to not change Sugar. Sugar Runner was not intended for regular use, but rather as a debugging tool. Sugar Runner is not a good example of how to implement the changes needed.