Commit Graph

90 Commits

Author SHA1 Message Date
Carsten Haitzler cde60c5840 e ipc - fix cleanup of ipc socket on shutdown
e never deleted its ipc dir or socket on shutdown. kind of bad. that
means every e rstart meant a new socket dir and file. a bit of a leak
when this happens to be often in a ramdisk. this should fix that and
have the socket dir and content nicely shut down on a clean shutdown

@fix
2016-08-19 12:01:39 +09:00
Mike Blumenkrantz fac201c528 simplify ipc socket creation
in trying to be extra secure here, a security hole is created due to time
between mkdir and stat calls

CID 1039781
2016-02-29 10:43:02 -05:00
Mike Blumenkrantz dc33712069 remove ipc command allowing arbitrary command execution by the compositor
http://i2.kym-cdn.com/photos/images/facebook/000/565/399/9c0.jpg

CID 1291836
2016-02-29 10:43:02 -05:00
Mike Blumenkrantz bd0142536a remove useless client_add handler in e_ipc
CID 1267210
2016-02-29 10:43:02 -05:00
Mike Blumenkrantz 5651eb6c3f remove DISPLAY usage from E_IPC_SOCKET value
pid should be enough here

CID 1039791
2016-02-29 10:43:01 -05:00
Jean Guyomarc'h 385a06bd02 e_ipc: fix creation of IPC server when $DISPLAY is a path
Summary:
Some implementations of the X server (e.g. Xquartz) define their $DISPLAY
as a path. Since ecore_ipc_server_add() does not create non-existant
directories, and since it may not worth to hide the socket in a complex
path, this patch aims at reducing the $DISPLAY by only keeping its basename.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2465
2015-05-02 10:05:00 -04:00
Mike Blumenkrantz 58447e9508 completely remove E_Manager
the final step in flattening all the canvas/screen apis
2015-03-19 16:53:32 -04:00
Mike Blumenkrantz 471dcb24cb __UNUSED__ -> EINA_UNUSED
this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
2015-03-18 18:09:09 -04:00
Mike Blumenkrantz 2bbab7e525 export e_ipc_socket filename as extern variable 2014-03-20 14:06:41 -04:00
Mike Blumenkrantz 7f0c849a27 print E_IPC_SOCKET value during startup 2014-01-14 20:22:02 -05:00
Sebastian Dransfeld 0e5e0ec218 reduce indent level 2013-12-07 21:33:16 +01:00
Sebastian Dransfeld 05f00710f2 Check return value from mkdir
If mkdir fails, no need to stat.

Fixes CID 1039963
2013-12-07 21:32:11 +01:00
Carsten Haitzler 2520c73d04 check permissions on socket dirs and complain if they fail - fallback too 2013-08-18 21:28:03 +09:00
Mike Blumenkrantz d10c5b0cf7 giant comp rejiggering commit #LAST:
* merge init splash to comp canvas

* remove enlightenment_init exe
2013-04-18 08:30:07 +01:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Carsten Haitzler 8e5a49765b make e ipc socket string shorter. osx is unhappy with long paths for
sockets it seems. :)



SVN revision: 79268
2012-11-14 06:38:25 +00:00
Carsten Haitzler a192bd1e1a lets just make buf 4096 to ensure it can hold enough of a nutty path
if it needs to.



SVN revision: 78004
2012-10-15 15:45:01 +00:00
Carsten Haitzler ecddd2391f supprot XDG_RUNTME_DIR for ipc socket and handle failure if someone
already created it - try new names until tries exhausted (4096)



SVN revision: 73072
2012-06-30 05:33:36 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Carsten Haitzler cef3afa355 support mtrack... my new little memory tracker so i can finally live
track down leaks and other badnesses.



SVN revision: 65335
2011-11-17 10:19:50 +00:00
Cedric BAIL 0f136c3582 e: simplify e_alert code.
SVN revision: 63035
2011-08-31 13:52:29 +00:00
Christopher Michael 40b8198e49 E17: Don't search for the restart & exit actions, just call
ecore_app_restart or exit directly.



SVN revision: 62539
2011-08-17 18:22:52 +00:00
Christopher Michael 072478fce3 E17: Fix White Box of Death wrt Restart & Exit.
SVN revision: 62488
2011-08-15 19:37:39 +00:00
Christopher Michael 1a13f8c26f E: Make E work with the new XCB stuffs. This breaks out e_alert into
it's own utility (as per raster's request/idea). Remove explicit
x_clags in Makefile.am(s) as they are no longer needed.

NB: I added some additional libs to the precache stuffs (even tho it's
not used right now). Also a newer e_main (more optimized).

NB: IF you are brave and want to test this, build evas w/ xcb, build
ecore w/ xcb, then rebuild E. Also, disable building opengl in both
evas & ecore (it's not ready for public consumption when paired w/ xcb).



SVN revision: 61680
2011-07-25 09:40:18 +00:00
Mike Blumenkrantz 2b8c0c4d6e ecrustified
SVN revision: 60819
2011-06-29 14:13:34 +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
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Carsten Haitzler 414ab703a9 no more e_fm_open - use dbus... eg:
dbus-send --session --dest=org.enlightenment.FileManager /org/enlightenment/FileManager org.enlightenment.FileManager.OpenDirectory string:'/home/raster'



SVN revision: 48362
2010-04-27 13:30:33 +00:00
Carsten Haitzler bcd35dad89 and stage 2 of removing ipc handlers.. actually remove them!
SVN revision: 43270
2009-10-25 15:55:11 +00:00
Christopher Michael 162bac4cef Fix function prototypes by adding missing __UNUSED__. For some reason, the
__unused__ was in the function declaration itself, but not the prototype.



SVN revision: 41712
2009-08-12 16:49:59 +00:00
Sebastian Dransfeld c29bd72eb0 No need to create string before showing error message.
SVN revision: 37170
2008-10-26 20:48:57 +00:00
Carsten Haitzler a6825b262b move init splash to its own process to make it smoother and able to be up
before the main loop.


SVN revision: 31795
2007-09-24 01:16:47 +00:00
Sebastian Dransfeld e8590e0357 - Add flag to indicate when main loop has ended.
- Don't allow (some) events during shutdown, as events wont be processed.
- Don't remove drop handlers on dnd shutdown, they should be removed by
  their creators.
- init/shutdown fwin
- Delete fwins on shutdown.
- Remove weird ipc wrapper function.
- Don't do additional shutdown functions on restart.


SVN revision: 29366
2007-04-05 06:59:02 +00:00
Carsten Haitzler b2a0abb8eb a lot of patches - also my work on moving the IO stuff in e_fm to a slave
process to stop e from ever "locking up". this unfortunately breaks the other
source stuff and thus breaks the app editor config dialogs and anything using
fm2 for .desktop stuff from the e applications/all repo. i am doing this as i
expect this to go away with efreet anyway so not too much of an issue. not
all fm operatiosn work currently - note. so beware. it can view files though :)


SVN revision: 28528
2007-03-02 17:00:20 +00:00
sebastid d4aa3c882f Cleanup
SVN revision: 23993
2006-07-17 19:02:42 +00:00
Carsten Haitzler 50063cad9c new thumbnailer system. works a bit more like epsilon - launches a
special-purpose executable and hands off workd to do via ipc (well the exe
connects back to e's ipc port actually but either way - same thing). it can
actually launch any numebr of thumbnailers - the default is 2, but this means
it can make full use of smp systems. i need to make this # of thumbnailers
configurable and add a config dialog for it. this does mean thew bg/theme
etc. dialogs pop up much faster as they dont load all the thumbs to start -
its farmed off and ipc tells us when they are ready (and if already generated
- thats pretty damn fast). :) anyway - now thumbnailing works reliably
(thoguh i think the queue handling isnt quite that good - well when it comes
to interacting with efm... but i'll check into that later. dont worry though
- it does actually generate all the thumbs - it just may be busy generating
ones you don't see while it catches up).


SVN revision: 23750
2006-07-08 09:18:04 +00:00
Carsten Haitzler cda26e2af7 ipc socket setup will be much more robust now. relies on E_IPC_SOCKET
environment var (but every subprocess of e should inherit this - like DISPLAY).


SVN revision: 23714
2006-07-04 18:36:29 +00:00
Christopher Michael e16298326e Fix gcc warning "No new line at end of file"
SVN revision: 21191
2006-03-11 16:18:27 +00:00
Carsten Haitzler 1785ad3a32 ipc is #defineable (rough for now - maybe able to be undefined and eventually
entirely removed - later though). also config shoudl be able to go up
versiosn more easily now.


SVN revision: 21160
2006-03-10 05:48:46 +00:00
sebastid 6a638a7806 Fix EAPI warnings.
SVN revision: 19597
2006-01-07 10:39:46 +00:00
Carsten Haitzler d8c635f964 more stringshare work
SVN revision: 18816
2005-12-03 15:39:25 +00:00
sebastid e421d20837 Remove whitespace.
SVN revision: 16120
2005-08-13 08:04:38 +00:00
Carsten Haitzler b5ece28d8a shorne's mouse/key bindings ipc patch... :)
SVN revision: 15548
2005-06-27 13:50:10 +00:00
Carsten Haitzler 9df4e18dbd bugs , issues, patches.
SVN revision: 15501
2005-06-23 03:29:37 +00:00
Dan Sinclair 470bf9d36f - add -desks-set/get back in
SVN revision: 15313
2005-06-13 19:56:28 +00:00
Dan Sinclair a34d1df1c1 - add the -border-shade-*-get/set back into enlightenment_remote
- remove so already ported code


SVN revision: 15309
2005-06-13 17:20:44 +00:00
handyande 1599d53551 Port lang to new IPC - added in get/set to lib, but not list as I am too tired
SVN revision: 15209
2005-06-08 20:43:46 +00:00
Dan Sinclair 67b46e6b0a -menus-click-drag-timeout-set/get
SVN revision: 15150
2005-06-05 20:55:40 +00:00
Dan Sinclair e14109e20a - add -menus-fast-move-threshold-set/get back into ipc
SVN revision: 15149
2005-06-05 19:51:56 +00:00
Dan Sinclair 6b9c338500 - add in the -dir-list-append/prepend/remove functions.
SVN revision: 15125
2005-06-04 20:10:49 +00:00