Commit Graph

79 Commits

Author SHA1 Message Date
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Mike Blumenkrantz 799e6b5a5e it seems that this variable in e_exec does not actually need to be strdup()ed, and thus does not need to leak...
SVN revision: 80923
2012-12-14 09:13:07 +00:00
Mike Blumenkrantz 31b66a272e improper E_FREE usage
SVN revision: 80922
2012-12-14 09:07:57 +00:00
Mike Blumenkrantz 52ca7afc9a fix leak in e_exec when DISPLAY is too long
SVN revision: 80817
2012-12-13 11:03:13 +00:00
Mike Blumenkrantz 59aa402a46 fix wrong E_FREE usage
SVN revision: 80816
2012-12-13 11:02:36 +00:00
Mike Blumenkrantz 82b4efa5e4 in the event that an ecore_exe is not passed with the exit cb, check the pid list
SVN revision: 80450
2012-12-07 13:28:17 +00:00
Mike Blumenkrantz 17ef5ee535 fix e_exec crash
SVN revision: 80171
2012-12-04 14:50:16 +00:00
Mike Blumenkrantz 5980697b20 delete from hash by key
SVN revision: 80170
2012-12-04 14:49:49 +00:00
Mike Blumenkrantz 362531b082 Dear all,
I'm attaching a patch for some minor bugs in the e17.
 Please take a look at attached patch.

 01. missing E_FREE(inst)
     File: src/bin/e_exec.c: 347
     Function: _e_exec_cb_exec

 02. missing null check
     File: src/bin/e_fm.c: 10173
     Function: _e_fm_error_dialog
     I'm not sure, but all other codes always check the return
     value of e_fm2_op_registry_entry_get except here.

 03. missing free(slave)
     File: src/bin/e_fm_ipc.c: 804
     Function: _e_fm_ipc_slave_run

 04. eina_list_remove after free
     File: src/bin/e_fm/e_fm_ipc.c :1325
     Function: _e_fm_ipc_cb_fop_trash_idler

 05. invalid check for _udisks_del, it might be _udisks_chg.
     File: src/bin/e_fm/e_fm_main_udisks.c : 162
     Function: _e_fm_main_udisks_test

 06. uninitialized gx and gy values
     File: src/bin/e_gadcon_popup.c: 172
     Function: _e_gadcon_popup_position
     These could be changed in e_gadcon_client_geometry_get
     if gcc->o_base is null.

 07. unnecessary code 'evas = e_win_evas_get(dia->win)'
     File: src/bin/e_import_config_dialog.c: 456
     Function: e_import_config_dialog_show

 08. missing free(sizes)
     src/bin/e_randr_11_serialization.c: 136
     Function: _11_try_restore_configuration()

 09. unnecessary variable output_info
     File: src/bin/e_randr_12.c: 560
     Function: _output_property_change_event_cb

 10. eina_list_remove after free
     File: src/bin/e_randr_12_serialization.c : 357
     Function: _12_serialized_setup_update

 11. no check of the return value of symlink.
     File: src/bin/e_widget_fsel.c: 84
     Function: _e_wid_fsel_favorites_add

 12. no evr->var check before comparing string values
     File: src/modules/conf_applications/e_int_config_defapps.c: 432
     Function: _basic_apply

 13. missing error message or check return value of edje_file_group_exists
     File: src/modules/conf_theme/e_int_config_theme.c: 333
     Function: _open_test_cb
     Anyway, I've added e_util_dialog_show if failed. Is it okay?

 14. missing index range check
     File: src/modules/gadman/e_mod_config.c: 153
     Function: _cb_config
     It could read negative array index, because return value of
     e_widget_ilist_selected_get might be negative.

 BR,
 Gwanglim


SVN revision: 80020
2012-12-03 07:54:07 +00:00
Mike Blumenkrantz b8677593fc remove all LD_LIBRARY_PATH shenanigans from e17
ticket #1542


SVN revision: 77735
2012-10-10 09:27:24 +00:00
Sebastian Dransfeld 80b0b615b8 e: Cleanup
Fixes potential invalid memory reads.

Patch by Igor Murzov

SVN revision: 77491
2012-10-04 23:27:01 +00:00
Carsten Haitzler ec80ac1802 add executor indirection setter.
SVN revision: 76795
2012-09-18 10:10:19 +00:00
Carsten Haitzler e574adfed7 add single-instance launching infra support for e17 as well as launch
tracking for ibar.



SVN revision: 76793
2012-09-18 10:00:37 +00:00
Mike Blumenkrantz c60be515e8 fix e_exec crash
ticket #1525


SVN revision: 76778
2012-09-18 04:36:01 +00:00
Carsten Haitzler 7a59e58273 add support for X-Enlightenment-Single-Instance :)
SVN revision: 76756
2012-09-17 11:51:04 +00:00
Cedric BAIL 4de7c065af e: remove potential buffer overflow and make it more efficient.
Patch started by Maxime Villard (rustyBSD).


SVN revision: 75812
2012-08-29 07:14:05 +00:00
Mike Blumenkrantz a8beb0950c fix usage of PATH_MAX when not working with files
SVN revision: 75518
2012-08-22 07:02:41 +00:00
Carsten Haitzler 6efc2eb976 abstract the "get terminal desktop" code into util code and now use
from e_exec AND in efm - open terminal here menu item is there with
code to set your default terminal in default applications too.



SVN revision: 75290
2012-08-15 09:59:37 +00:00
Mike Blumenkrantz 2f880d7c7c don't need to check alloca result
SVN revision: 74811
2012-08-02 16:26:05 +00:00
Carsten Haitzler dcf8b6c339 fix up e_exec to respect the terminal=true flag on desktops ... so
finally that htop menu entry works. :)



SVN revision: 74550
2012-07-30 06:13:07 +00:00
Carsten Haitzler 439a6a5d19 fix segv's when cfdata->desktop is NULL.
SVN revision: 73932
2012-07-16 11:57:28 +00:00
Carsten Haitzler 227df6d971 add instances to track exec things which dont have desktop files too.
SVN revision: 73849
2012-07-14 11:06:28 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Mike Blumenkrantz b2c96e3161 formatting
SVN revision: 72535
2012-06-20 08:51:08 +00:00
Carsten Haitzler 796065157e just use zone's deskx/y current.
SVN revision: 70384
2012-04-22 05:20:16 +00:00
Cedric BAIL ff6f93b8be e: fix typos.
SVN revision: 70381
2012-04-22 02:54:01 +00:00
Carsten Haitzler 6ffbe230f2 only store screen/deskx,y if isnt != null
SVN revision: 70380
2012-04-22 02:42:10 +00:00
Carsten Haitzler 81bb978614 after years, finally fix an annoyance... application windows, IF e can
match them back to something IT started (ibar, menus, evrything
etc.)... it will keep those windows ON the zone/desktop u started them
on... hoobloodyray!



SVN revision: 70368
2012-04-21 00:26:31 +00:00
Vincent Torri c30aaf8dde e17: remove some shadow variables
SVN revision: 70190
2012-04-15 08:09:56 +00:00
Mike Blumenkrantz cf3762ba28 not sure what the point of this is, so away with it!
SVN revision: 64880
2011-11-07 22:18:34 +00:00
Sebastian Dransfeld 25c30ef7a7 E: Show correct path in error message.
SVN revision: 62477
2011-08-15 08:23:33 +00:00
Sebastian Dransfeld 93682ec523 E: Only chdir if path not empty
SVN revision: 62476
2011-08-15 08:23:17 +00:00
Carsten Haitzler 1e52c5a5ae 1. handle chdir errors gracefully with error disply
2. on error DONT KEEP STRIPPING PATH TO EMPTY!



SVN revision: 59773
2011-05-29 05:09:50 +00:00
Miculcy Brian be91e17b7d e: Fix segfault if no desktop file present.
SVN revision: 59702
2011-05-26 12:03:04 +00:00
Mark-Willem Jansen 54d7870c61 patch from From: Mark-Willem Jansen <markwillem@hotmail.com>
use desktop file path field for cwd.



SVN revision: 59701
2011-05-26 10:27:21 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Sebastian Dransfeld 3c12d4daba __UNUSED__ last
SVN revision: 54193
2010-11-05 18:40:31 +00:00
Carsten Haitzler 7cf8ebbed3 bah! brokne inst matching.. e literally lost all inst's! fixed.
SVN revision: 51936
2010-09-07 08:53:34 +00:00
Lucas De Marchi 63f07459a0 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael 6e4b7513cb Revert PATH_MAX change there...PATH_MAX may not be long enough.
SVN revision: 51364
2010-08-18 21:49:48 +00:00
Christopher Michael c4075dfaed Add UNUSED
Use PATH_MAX.



SVN revision: 51362
2010-08-18 21:41:27 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Lucas De Marchi c426218dfe Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Carsten Haitzler 60b35967de gl vsync smoother tear-free rendering on desktop (nvidia though only - i am
in no mood to figure out the convoluted vsync stuff for every linux gl drvier
out there!)



SVN revision: 46158
2010-02-14 03:57:43 +00:00
Carsten Haitzler c42497848b fix long-standing bug in exe exit handling! ugh...
SVN revision: 46123
2010-02-13 02:47:21 +00:00
Carsten Haitzler ca49f2dcbf config to turn off exec fail dialog
SVN revision: 45544
2010-01-25 07:38:48 +00:00
Sebastian Dransfeld b7f399d159 make clang happy
SVN revision: 45153
2010-01-14 23:48:59 +00:00
Christopher Michael c837af137b Don't NULL out exe here (this was causing a lot of quiet errors wrt
ecore_exe_pid_get because inst->exe was NULL).



SVN revision: 44267
2009-12-07 23:55:01 +00:00
Carsten Haitzler 50b38677d5 inst->exe is null if exe exited. it will be deleted by ecore, so cant keep it
around.



SVN revision: 43405
2009-11-02 02:51:21 +00:00