Re: [sabayon] Moving the monitor out of the session



Hey,

On Mon, 2005-06-13 at 12:36 +0100, Mark McLoughlin wrote:

> 	In:
> 
>   http://bugzilla.gnome.org/show_bug.cgi?id=305871
> 
> 	I came to the conclusion that we should change things around such that
> the prototype session should run embedded in the same window as the
> monitor output. So, you could imagine the menu bar at the top of the
> window, the prototype session in the middle and the monitor output in a
> pane at the bottom.

[snip]

> 	Given that the code monitoring the prototype session for configuration
> changes needs to be run as the sabayon-admin user, I think we've two
> options for moving the monitor window out of the session:
> 
>   1) Make the window which pops up when you click "Edit" run as the 
>      sabayon-admin user. In order to do that we'd need to split the 
>      protosession code to work like:
>        - as root we find a free X display number, write out temporary 
>          xauth files for Xnest and the session, change the ownership of 
>          those files and create a temporary homedir for the session
>        - we'd then copy the profile to a temporary location and change 
>          the owner to sabayon-admin
>        - next we'd launch sabayon-session with all that information 
>          (display number, xauth filenames, temporary homedir, profile 
>          filename) in the command line
>        - sabayon-session would then open a gtk window, run Xnest, start 
>          a session and start monitoring the session
>        - changes would be saved to the temporary profile; when 
>          sabayon-session exits, sabayon copies the profile back again

	I've gone with this option and it seems to work fine. Still a little
bit of work to do to make it look less weird.

	There's been some pretty major code changes, so let me know if anything
is broken.

Cheers,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]