Commit Graph

918 Commits

Author SHA1 Message Date
José Roberto de Souza e9afafc21b efreet: Unregister when client connection die
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80950
2012-12-14 14:27:19 +00:00
José Roberto de Souza 5338a060db efreet: Unref edbus object and proxy
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80949
2012-12-14 14:27:14 +00:00
José Roberto de Souza db438c3a6c efreet: Use connection events to monitor Disconnected signal
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 80948
2012-12-14 14:27:05 +00:00
Sebastian Dransfeld 17242f006a efreet: trigger build event if no daemon
Since e waits for this event, trigger it if no daemon so e works without
it.

SVN revision: 80447
2012-12-07 13:25:14 +00:00
Carsten Haitzler 6facaf0695 lets ensure that efreet never returns a null lang - it falls bak to
lang being "C" :)



SVN revision: 80074
2012-12-03 14:49:54 +00:00
Sebastian Dransfeld c823b3fe29 efreet: update language for daemon
SVN revision: 79721
2012-11-26 16:07:55 +00:00
Sebastian Dransfeld 07ee75ee5b efreet: add missing file
SVN revision: 79632
2012-11-24 10:55:45 +00:00
Sebastian Dransfeld 92b5baaea4 efreet: fix alloca
SVN revision: 79629
2012-11-24 06:43:00 +00:00
Sebastian Dransfeld c9663b24d6 efreet: elements aren't always double quoted
SVN revision: 79550
2012-11-22 22:18:34 +00:00
Sebastian Dransfeld 30965869f0 efreet: don't double test for data in list
SVN revision: 79254
2012-11-13 22:51:11 +00:00
Sebastian Dransfeld 6e883bdbbd efreet: Monitor created paths
If a path which should be monitored does not exist, we can't monitor it.
If we create the path and open it, efreet will signal the cache daemon
that the cache should be rebuilt. If this was a system path, we would
ignore the request, but with this change it will see that the path isn't
monitored and rebuild the cache.

SVN revision: 79244
2012-11-13 20:36:35 +00:00
Sebastian Dransfeld 7adfa90371 efreet: monitor links to directories
SVN revision: 79243
2012-11-13 20:36:26 +00:00
Sebastian Dransfeld f5832cf132 efreet: Do not recurse into icon dirs
There will be a lot of dirs below an icon dir, so it is a lot to watch
all. The icon theme spec says that the top level dir will be updated on
icon theme update, which it will on a standard linux system. A temporary
file will be created and deleted below the top level dir.

SVN revision: 79126
2012-11-11 21:47:22 +00:00
Sebastian Dransfeld 959a737450 efreet: fix typo, not desktop but icon
SVN revision: 79125
2012-11-11 21:47:12 +00:00
Carsten Haitzler 376634601d more xxx's
SVN revision: 79124
2012-11-11 21:35:31 +00:00
Carsten Haitzler 6475821a07 lets make some XXX notes about monitoring non-existant dirs.
SVN revision: 79123
2012-11-11 21:34:49 +00:00
Sebastian Dransfeld b4490d909e efreet: shutdown on error and disconnect
When bus stops it send Disconnect signal. Trap and die.

SVN revision: 79122
2012-11-11 20:59:03 +00:00
Vincent Torri cda5755122 Efreet: declare properly alloca()
SVN revision: 79088
2012-11-10 09:13:56 +00:00
Stefan Schmidt ad8bcedc11 efreet: Add header to files to pass distcheck
SVN revision: 78940
2012-11-06 13:36:09 +00:00
Sebastian Dransfeld a5ac6a987c efreet: better english
SVN revision: 78889
2012-11-03 21:44:11 +00:00
Sebastian Dransfeld 2bdc89808c efreet: check desktop-directories
SVN revision: 78875
2012-11-02 20:12:47 +00:00
Sebastian Dransfeld 6e85b4bfcc efreet: track efreetd clients
SVN revision: 78874
2012-11-02 20:12:41 +00:00
Sebastian Dransfeld 89daa0b210 efreet: minor changes
- Wait longer before we start cache build process
- Fix typo
- Don't log with \n
- TODO++

SVN revision: 78872
2012-11-02 20:11:56 +00:00
Sebastian Dransfeld 124beafa67 efreet: require edbus2
SVN revision: 78867
2012-11-02 14:01:55 +00:00
Sebastian Dransfeld 15431e52a6 efreet: add dir path, not file path
SVN revision: 78815
2012-11-02 02:49:20 +00:00
Sebastian Dransfeld 063cb0c3e2 efreet: only run one builder instance
SVN revision: 78814
2012-11-02 02:49:10 +00:00
Sebastian Dransfeld f38c608627 efreet: reply on ping whether cache exists
And trigger event

SVN revision: 78813
2012-11-02 01:47:06 +00:00
Sebastian Dransfeld 9262991a45 efreet: iface registration before name request
SVN revision: 78812
2012-11-02 01:47:00 +00:00
Sebastian Dransfeld e94d0c6eb1 efreet: Use dbus daemon
SVN revision: 78809
2012-11-02 01:46:44 +00:00
Sebastian Dransfeld ac97a87b85 efreetd: init ecore_file
SVN revision: 78808
2012-11-02 01:46:31 +00:00
José Roberto de Souza ca20fab7d4 efreet: Build fix, edbus_service_interface_register() signature has changed
Patch by: José Roberto de Souza  <zehortigoza@profusion.mobi>



SVN revision: 78804
2012-11-01 16:41:35 +00:00
Sebastian Dransfeld ed5e14204e efreet: Add dbus efreet daemon
Not working yet.

SVN revision: 78294
2012-10-21 04:53:23 +00:00
Sebastian Dransfeld 199bef6051 efreet: move common function to base
SVN revision: 78293
2012-10-21 04:53:18 +00:00
Lucas De Marchi 2a8b05eb03 efreet: Fix efreet_init_parse for non existent file
The conversion to eina_file_map() in r78179 broke the error path of
efreet_init_parse(). Particularly if file doesn't exist. Since the variables
were not initialized it was trying to operate on random values from the stack.
So I got the following crash on E17:

#0  0x00007f238b0bbd67 in waitpid () from /usr/lib/libpthread.so.0
#1  0x00000000004397a3 in e_alert_show ()
#2  0x0000000000526392 in e_sigseg_act ()
#3  <signal handler called>
#4  0x0000000000000031 in ?? ()
#5  0x00007f239315df0f in efreet_ini_parse (file=file@entry=0x7fff39ce46f0 "/home/lucas/local/share/enlightenment/applications/defaults.list")
    at /home/lucas/p/e-svn/trunk/efreet/src/lib/efreet_ini.c:245
#6  0x00007f239315e100 in efreet_ini_new (file=0x7fff39ce46f0 "/home/lucas/local/share/enlightenment/applications/defaults.list")
    at /home/lucas/p/e-svn/trunk/efreet/src/lib/efreet_ini.c:82
#7  0x0000000000538174 in _e_util_default_terminal_get ()
#8  0x00000000005382dc in e_util_terminal_desktop_get ()
#9  0x00007f23706a1065 in e_fwin_init () from /home/lucas/local/lib/enlightenment/modules/fileman/linux-gnu-x86_64-ver-pre-svn-08/module.so
#10 0x00007f237069b524 in e_modapi_init () from /home/lucas/local/lib/enlightenment/modules/fileman/linux-gnu-x86_64-ver-pre-svn-08/module.so
#11 0x000000000050420d in e_module_enable ()
#12 0x0000000000504e77 in _e_module_cb_idler ()
#13 0x00007f238da22739 in _ecore_call_task_cb (data=<optimized out>, func=<optimized out>) at /home/lucas/p/e-svn/trunk/ecore/src/lib/ecore/ecore_private.h:265
#14 _ecore_idle_enterer_call () at /home/lucas/p/e-svn/trunk/ecore/src/lib/ecore/ecore_idle_enterer.c:234
#15 0x00007f238da24c1b in _ecore_main_loop_iterate_internal (once_only=once_only@entry=0) at /home/lucas/p/e-svn/trunk/ecore/src/lib/ecore/ecore_main.c:1826
#16 0x00007f238da252c7 in ecore_main_loop_begin () at /home/lucas/p/e-svn/trunk/ecore/src/lib/ecore/ecore_main.c:934
#17 0x0000000000436167 in main ()

Besides initializing the variables, there's no need to "goto" if the file
doesn't exist.... just return.




SVN revision: 78272
2012-10-19 23:33:05 +00:00
Sebastian Dransfeld 4468ee3a7f efreet: use eina_file_map
SVN revision: 78179
2012-10-18 11:19:28 +00:00
Sebastian Dransfeld e327361844 efreet: formatting
SVN revision: 78178
2012-10-18 11:19:14 +00:00
Sebastian Dransfeld a473306c0e efreet: move update files
Move update files to separate subdir to reduce inotify triggers

SVN revision: 78176
2012-10-18 09:40:00 +00:00
Sebastian Dransfeld d1bf182ec8 efreet: move variable to right scope
SVN revision: 78175
2012-10-18 09:39:44 +00:00
Sebastian Dransfeld 4eb8b955a9 efreet: optimize stat
use eina_file_stat_ls instead of eina_file.*_ls + ecore_file_is_dir

SVN revision: 78173
2012-10-18 09:12:25 +00:00
Sebastian Dransfeld 39d7882866 efreet: simplify
Since we open the file, there is no need to check for file existance and
a fstat call is nicer than ecore_file_size

SVN revision: 78171
2012-10-18 09:12:04 +00:00
Sebastian Dransfeld 9fe5e81ccb efreet: formatting
SVN revision: 78170
2012-10-18 09:11:54 +00:00
Sebastian Dransfeld 17cd7fa313 efreet: remove file exists check
efreet_ini_new will check if file exists later on.

SVN revision: 78169
2012-10-18 09:11:43 +00:00
Sebastian Dransfeld 2a3cb2d1c9 efreet: remove realpath
Use eina_file_path_sanitize where needed

SVN revision: 78161
2012-10-18 08:10:35 +00:00
Sebastian Dransfeld 8009998bcc efreet: remove realpath
No need to use realpath here, paths coming in here are already sane

SVN revision: 78160
2012-10-18 08:10:23 +00:00
Sebastian Dransfeld fc7b1d66a6 efreet: formatting
SVN revision: 78159
2012-10-18 08:09:54 +00:00
Carsten Haitzler 8b19e6eab1 disable some realpath(s) in efreet to rece syscall noise on init...
after some poking around and looking - terminology is taking about
800ms to start ... and we seem to use about 300ms or so of that time
statting files and tregistering them for file monitoring (the dirs
that are found there) and also handling a big batch of incoming file
monitor events for some reason even tho nothing changed.

this cuts down some time+noise, but we need to do a lot of work here. :(



SVN revision: 78108
2012-10-17 09:16:20 +00:00
Sebastian Dransfeld 246150b72c efreet: get all files with new extension
Previous code would only allow one file with new extension from
inherited theme. Now we accept for all already known icon types.

SVN revision: 77810
2012-10-10 20:56:29 +00:00
Sebastian Dransfeld 3dba7ec434 efreet: find icons with all extension
If there are icons in inherited themes which have not already found
extensions, add these as alternatives.

SVN revision: 77800
2012-10-10 20:28:55 +00:00
Sebastian Dransfeld 6da5a2edce efreet: directory list can end in a ','
SVN revision: 77799
2012-10-10 20:28:51 +00:00
Sebastian Dransfeld 4a192bca07 efreet: close theme_ef on error
SVN revision: 77798
2012-10-10 20:28:47 +00:00