Ticket #21 (closed Defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Spawning root process from the manager fails on feisty

Reported by: isak Assigned to: isak
Priority: Medium Milestone: 1.2.4
Component: frontend Version: 1.2.2
Severity: Normal Keywords: manager, autosu, xhost
Cc:

Description

When manager is launching itself through autosu, the child process fails to connect to the users X11 system. Running "xhost +" and then restarting the user owned manager fixes this.

It would be better if the parent manager could monitor the child pid and report to the user if it fails to start.

Change History

05/17/07 05:46:07 changed by isak

  • status changed from new to assigned.

I've taken a first stab on this with r2328 but its not enough. Unfortunately, it's not trivial to fix since autosu will return 0 (Success) after it has spawned its child regardless of whether that child succeeds or not. (There's nothing wrong with this, but it does make it harder to fix this bug)

05/24/07 17:10:44 changed by isak

This is fixed, or at least hidden by r2334. We now call package remove pkg which doesn't necessarily need X access (fallbacks to ttyfe). This is not yet merged to trunk (it's in the fix-root-uninstall branch of the frontend module), since I wanna test it some more.

To test:

svn co svn://plan99.net/frontend/branches/fix-root-uninstall frontend-fix-root-uninstall
cd frontend-fix-root-uninstall/manager
./autogen.sh && configure --prefix=/usr # or wherever you have autopackage-gtk installed! We want to overwrite
sudo make install

06/06/07 05:24:46 changed by isak

  • status changed from assigned to closed.
  • resolution set to fixed.
  • milestone changed from 1.2.5 to 1.2.4.

I've merged the temporary branch to trunk now (done in r2348) so this will be available in 1.2.4. Setting milestone accordingly.

I'm closing this now since it is no longer an issue with the manager. We might wanna look into the core of the problem at some later time.