On 13-11-10 10:58 AM, Andrej N. Gritsenko wrote:
>      Well, I don't know who restarts Openbox. I always believed if window
> manager crashes then the whole session will crash as well. But you know,
> since window manager is a core for all applications, it cannot be started
> the same way as some application so it is irrelevant for the subject of
> discission (i.e. autorestart for /etc/xdg/autostart/ items) in any case.

The session dies when the session manager dies. Traditionally, the 
window manager DID take that role but full-blown DEs (and IceWM too) 
work around that by having a separate session manager which launches the 
WM and can restart it if it dies.

For LXDE, it's lxsession, as you can see from the output of the pstree 
command. (Or by experimenting. Kill openbox and the session stays open. 
Kill lxsession and you find yourself back at the display manager login 
prompt.)

>      Well, anyway, I still believe any autorestart is a workaround, which
> is dirty and very bad thing to do, we have to fix core components instead
> of workarounding bugs. :)

And having a backup parachute when you go skydiving is an ugly hack.
I like my desktop to have defense in depth rather than assuming that 
fallible humans can write infallible code.

(Even then, I still set all my applications to auto-save as frequently 
as they allow... or every 60 seconds if they impose no lower bound.)

I'll take practicality over elegance in my desktop's core components any 
day.

In fact, that's one of the reasons I never run a composited desktop, 
even with something relatively light and effect-free. Far too often, 
when the compositor crashes, the system console is stuck displaying the 
now-frozen redirected surface until you boot another PC, SSH in, and 
restart the compositor.

>
>      Well, how Xfce, GNOME, KDE, etc. handle similar issues? Do they also
> autorestart core DE components?

Last, I checked? Yes.

Given how often Plasma and Kwin crashed last time I tried them (around 
KDE 4.5), KDE would be unusable without auto-restart in the session manager.

I hear Kwin has stabilized but, according to one commenter on Phoronix, 
Plasma got horribly unstable when they rewrote it using QML and there 
are still enough bugs in it that the auto-restart is getting a workout. 
(The commenter was complaining about how they're working on KDE 5 
without bothering to release a stable KDE 4 first.)

It's been ages since I tried GNOME but I remember GNOME 2.x 
auto-restarting something (either `nautilus --desktop` or gnome-panel) 
when it crashed.

As for Xfce, I only use it on my OpenPandora handheld (it's the default 
desktop in the official firmware) but something about how the 
Alt+LeftClick dragging interacts with the touchscreen causes xfwm4 to 
crash often enough that I can assure you, it does auto-restart core 
components.

>      About PCManFM I treat any crash as issue that should be fixed ASAP,
> and that issue should never ever happen and I highly suggest never do
> autorestart on it. Well, I know, it crashed before 1.0 as in a hell, but
> now if it ever crashes, feel free to bomb me, it is simply an emergency
> situation.
>

It already auto-restarts. It would be unusable for people like my mother 
if the auto-restart didn't restore the desktop icons after a crash.

Every other desktop auto-restarts core components and LXSession 
currently does too. It's the only sane option:

Strive for the best, plan for the worst. (Work hard to ensure there are 
no crashers in each component but design the rest of the system around 
the assumption that crashes will happen frequently.)


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to