On Wed, 07 Mar 2018 09:35:11 -0800 Cedric BAIL <cedric.b...@free.fr> said:
when should argv/argc ever be 0/null? at least the old elm_init was taking the actual argv/argc from main... > cedric pushed a commit to branch master. > > http://git.enlightenment.org/core/efl.git/commit/?id=6b1b3d25d6e7c9a004859853117900997f45ba50 > > commit 6b1b3d25d6e7c9a004859853117900997f45ba50 > Author: Cedric Bail <ced...@osg.samsung.com> > Date: Wed Mar 7 09:34:49 2018 -0800 > > elementary: fix backward compatibility bug introduced by > 9c8749b99a03d3601321da6d16071dd7b631d1ae. > --- > src/lib/elementary/elm_main.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c > index 82efe0a3c7..5d8993295b 100644 > --- a/src/lib/elementary/elm_main.c > +++ b/src/lib/elementary/elm_main.c > @@ -390,13 +390,16 @@ _sys_lang_changed(void *data EINA_UNUSED, int type > EINA_UNUSED, void *event EINA return ECORE_CALLBACK_PASS_ON; > } > > +// This is necessary to keep backward compatibility > +static const char *bcargv[] = { "exe" }; > + > EAPI int > elm_init(int argc, char **argv) > { > _elm_init_count++; > if (_elm_init_count > 1) return _elm_init_count; > - elm_quicklaunch_init(argc, argv); > - elm_quicklaunch_sub_init(argc, argv); > + elm_quicklaunch_init(argc, argv ? argv : (char**) bcargv); > + elm_quicklaunch_sub_init(argc, argv ? argv : (char**) bcargv); > > _prefix_shutdown(); > > > -- > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - ras...@rasterman.com ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel