restart and PATH
Brought to you by:
captnmark
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[0]
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).
Logged In: YES
user_id=830354
I also want to add the suggestion, that restarting
with argv[0] could be the fallback, when restarting
with PATH doesn't work AND argv[0] contains at least
one slash.