When icewm is restartet (e.g. for changing themes, ...), it searches
itself in the PATH (using execlp(ICEWMEXE,...)).
This is ok in most cases, but when icewm has been
started with an absolute path, then this may lead to
a different version of icewm being re-started, or the
restart to fail completely.
Therefore I'd like to propose to use the value of argv
instead of ICEWMEXE - at least for platforms where
this is known to make sense. (I'd guess all, but I don't
know for sure)
If this fails, then the original execlp(ICEWMEXE,...) can
be tried immediately afterwards (as fallback).
Log in to post a comment.