elm/quicklaunch: Improve executable path search
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 4 Nov 2013 06:12:51 +0000 (15:12 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 4 Nov 2013 07:49:02 +0000 (16:49 +0900)
commit9ab6c58530a86e10549554b2c4542dd5bf3314b8
treeb0e1d40a38bc5abfba19489541d2bc82754a0ce6
parent9bb1ef27084724e43d26328ab827a0829c9efde0
elm/quicklaunch: Improve executable path search

Always search executable based on CWD if possible.
This way, elementary_run behaves more like sh where all of
sh script, sh ./script and sh `pwd`/script will work.

Also, remove quicklaunch-specific ELM_MAIN.
This needs some doc, but compiling with -fpie and -pie is much
better.

Note: There's an API/ABI break here, BUT these APIs are marked
as not to be used outside macros. And there isn't any macro
using them :)
legacy/elementary/src/bin/quicklaunch.c
legacy/elementary/src/lib/elm_general.h
legacy/elementary/src/lib/elm_main.c