Sebastian Dransfeld
e94d0c6eb1
efreet: Use dbus daemon
...
SVN revision: 78809
2012-11-02 01:46:44 +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
2a3cb2d1c9
efreet: remove realpath
...
Use eina_file_path_sanitize where needed
SVN revision: 78161
2012-10-18 08:10:35 +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
Carsten Haitzler
3593470069
fix nasty bug in efreet where running an update of desktops (or icons)
...
could be delayed by minutes.
SVN revision: 77133
2012-09-27 08:22:24 +00:00
Sebastian Dransfeld
7fa09b763b
efreet: Fix language change
...
Need to release generated file name, else we will use same filename
again when opening cache.
Also need to close cache, as a cache rebuild might not trigger cache
close if the cache in another language already exists.
SVN revision: 75020
2012-08-08 19:39:55 +00:00
Sebastian Dransfeld
beb582c531
efreet: fix memory leak
...
Don't allocate event structure unless we have a cache change.
SVN revision: 73133
2012-07-02 08:17:02 +00:00
Sebastian Dransfeld
77d44f84d3
efreet: correct desktop cache update on lang reset
...
As we only build the cache for the current language, we need to trigger
cache rebuild on language change, as the cache might not exist or it is
old.
SVN revision: 72832
2012-06-25 20:54:46 +00:00
Sebastian Dransfeld
314d42ea42
efreet: Improve language reset
...
efreet.c: Reset parsed locale, and force a reparse of LANG env
efreet_cache.c: Close desktop cache so we reopen cache with correct
language
SVN revision: 72817
2012-06-25 17:12:35 +00:00
Sebastian Dransfeld
f419175657
efreet: Add parameter checking to exported API
...
Some efreet APIs do not check input parameters. So I add checking by
using EINA_SAFETY_ON_XXX().
ISO/IEC statndards says that "If an argument to a function has an
invalid value, behavior is undefined" . But this is just for the
primitive functions such as libc. I think that parameter checking is
needed in at least EFL exported APIs to prevent run-time abnormal
behavior.
EINA_SAFTETY_ON_XXX are better than "if (xxx) return" because it gives
error message and can be maintainable.
Patch by Bluezery, modified by me
SVN revision: 71366
2012-05-23 20:10:27 +00:00
Sebastian Dransfeld
93ed956adf
efreet: Remove unneeded headers
...
SVN revision: 67403
2012-01-20 19:54:20 +00:00
Sebastian Dransfeld
dc78efed2b
Efreet: Fix caching of recursive directories
...
SVN revision: 62985
2011-08-30 12:19:19 +00:00
Sebastian Dransfeld
a4e32175bb
Efreet: Always set desktop_cache to NULL
...
SVN revision: 62984
2011-08-30 12:19:06 +00:00
Carsten Haitzler
ab8757c8dc
hey.. if we use magic poinrters like... -1 for not existing... null
...
would probably be fine though here)... we should always then handle
all the cases correctly! fix segv in efreet shutdown
SVN revision: 62616
2011-08-20 04:22:24 +00:00
Sebastian Dransfeld
352ec9086c
efreet: Don't keep desktop_dirs permanently
...
SVN revision: 62583
2011-08-19 06:50:50 +00:00
Sebastian Dransfeld
6ac66e7427
efreet: Don't check if path is a subdir
...
We don't recurse in extra_dirs, so we must store all paths explicit.
SVN revision: 62582
2011-08-19 06:44:59 +00:00
Sebastian Dransfeld
1210e95895
efreet: Use eina log
...
SVN revision: 62581
2011-08-19 06:44:49 +00:00
Sebastian Dransfeld
a0861d7c26
efreet: Don't stat .desktop file on every fetch
...
SVN revision: 62559
2011-08-18 09:03:44 +00:00
Sebastian Dransfeld
56f3b3b278
efreet: Clean headers
...
Might affect other systems, please just add the needed headers and don't
complain.
SVN revision: 62557
2011-08-18 07:35:48 +00:00
Sebastian Dransfeld
68a31c96c0
efreet: TODO--
...
SVN revision: 62556
2011-08-18 07:35:34 +00:00
Sebastian Dransfeld
4b6c9289be
efreet: Delay closing of old caches
...
Programs might close their references after the event has completed.
SVN revision: 62551
2011-08-18 07:34:40 +00:00
Sebastian Dransfeld
a43a9d363c
efreet: Add cache build event
...
And listen for this event in e_startup to check for cache build
completion.
SVN revision: 62549
2011-08-18 07:34:19 +00:00
Sebastian Dransfeld
c31f9f2049
efreet: Revert changed flag
...
Only send event when cache is actually updated.
SVN revision: 62548
2011-08-18 07:34:02 +00:00
Sebastian Dransfeld
f696cd74bd
efret: Save whether cache changed in update file.
...
SVN revision: 62506
2011-08-16 12:46:35 +00:00
Carsten Haitzler
d5e66856fe
add errs for efreet cache init failures.
...
SVN revision: 60707
2011-06-26 23:11:07 +00:00
Sebastian Dransfeld
1ff5c07744
Efreet: Only create cache dir if we update cache
...
SVN revision: 58601
2011-04-12 22:40:35 +00:00
Sebastian Dransfeld
c04c2ce3c5
Efreet: Remove redundant log text
...
SVN revision: 57860
2011-03-18 20:06:03 +00:00
Sebastian Dransfeld
a812c2b0d3
Efreet: formatting
...
SVN revision: 57859
2011-03-18 20:00:22 +00:00
Mike Blumenkrantz
96be628d43
use eina_log more effectively: replace all printfs with appropriate log functions and use EINA_LOG_ERR instead of ERR when log dom fails to init
...
SVN revision: 57858
2011-03-18 19:47:57 +00:00
Sebastian Dransfeld
c45d4c937d
Efreet: Listen for ECORE_FILE_EVENT_CLOSED
...
SVN revision: 57574
2011-03-08 11:40:54 +00:00
Sebastian Dransfeld
284c85240a
Efreet: Separate desktop dirs to add
...
Keep desktop dirs to add to cache process in separate list, so we can
free data after they are passed to cache process.
SVN revision: 57408
2011-02-28 10:50:27 +00:00
Sebastian Dransfeld
494c6c6d4f
efreet: check for subpath
...
Need to check if the path we want to add is a subpath of an already
added path.
SVN revision: 57407
2011-02-28 10:50:16 +00:00
Sebastian Dransfeld
41e4f229af
TODO++
...
SVN revision: 57176
2011-02-19 20:54:15 +00:00
Sebastian Dransfeld
d22176c22d
TODO++
...
SVN revision: 56951
2011-02-11 13:49:25 +00:00
Sebastian Dransfeld
8094cbf79b
move NON_EXISTING define to efreet_cache
...
SVN revision: 56917
2011-02-10 14:34:03 +00:00
Sebastian Dransfeld
ec310fc5db
Search for theme directly in hash
...
If not found directly in hash, use efreet_cache_icon_theme_find
SVN revision: 56916
2011-02-10 14:26:30 +00:00
Sebastian Dransfeld
5e106f5cd6
Move desktop cache to efreet_cache.c
...
SVN revision: 56912
2011-02-10 14:25:44 +00:00
Sebastian Dransfeld
2dd1fe0d41
Delay cache recreation with a timer
...
SVN revision: 56911
2011-02-10 14:25:33 +00:00
Sebastian Dransfeld
b17640ba62
Pass dirs to desktop cache process as arguments
...
And store the extra dirs in the desktop eet cache.
SVN revision: 56910
2011-02-10 14:25:23 +00:00
Sebastian Dransfeld
09203ef10a
Free hashes on init error
...
SVN revision: 56907
2011-02-10 14:24:50 +00:00
Sebastian Dransfeld
23c5801400
Move all eet cache handling to efreet_cache.c
...
SVN revision: 56906
2011-02-10 14:24:40 +00:00
Sebastian Dransfeld
3997e75aa9
move around some code
...
SVN revision: 56904
2011-02-10 14:24:20 +00:00
Sebastian Dransfeld
45aebcb121
Make efreet_cache_icon_theme_free static
...
SVN revision: 56903
2011-02-10 14:24:09 +00:00
Sebastian Dransfeld
8c9ac9c967
Don't free strings from eet
...
SVN revision: 56874
2011-02-09 20:43:43 +00:00
Sebastian Dransfeld
851fcce119
Don't deref NULL pointer
...
SVN revision: 56868
2011-02-09 18:36:12 +00:00
Sebastian Dransfeld
8c9083f65d
Add free callback to eet hashes
...
Fixes memleak
SVN revision: 56854
2011-02-09 17:09:38 +00:00
Sebastian Dransfeld
021beae781
Move theme hash from efreet_icon to efreet_cache
...
SVN revision: 56852
2011-02-09 17:09:16 +00:00
Sebastian Dransfeld
2344ff9520
These TODO's are done
...
SVN revision: 56851
2011-02-09 17:08:50 +00:00
Sebastian Dransfeld
88efa51928
Fix segv correctly
...
There should be no key starting with efreet in the cache, but make sure
a theme exists before adding to the theme list.
SVN revision: 56838
2011-02-09 08:40:39 +00:00