Commit Graph

79 Commits

Author SHA1 Message Date
Sebastian Dransfeld f696cd74bd efret: Save whether cache changed in update file.
SVN revision: 62506
2011-08-16 12:46:35 +00:00
Sebastian Dransfeld 51e1eca0a9 efreet: Remove disabled if
SVN revision: 62501
2011-08-16 12:45:30 +00:00
Sebastian Dransfeld 83306ac5c6 Efreet: Remove unused variables
SVN revision: 57409
2011-02-28 10:50:37 +00:00
Sebastian Dransfeld 0ee1932ebd Always trigger desktop cache update
E init process waits for this and must always get it.

SVN revision: 57238
2011-02-22 12:42:58 +00:00
Sebastian Dransfeld 7c1d716453 formatting
SVN revision: 57237
2011-02-22 12:42:46 +00:00
Cedric BAIL 94a1ea33fa efreet: write once cache to disk and notify only when needed.
NOTE: eet_sync just force the write of the eet file to the disk. 
That's exactly what eet_close will do also. eet_sync is just to
be used when you are planning to still use it and don't want to
close it soon.


SVN revision: 57233
2011-02-22 10:43:58 +00:00
Sebastian Dransfeld c5c5df9ba9 Remove debug ouput
SVN revision: 57173
2011-02-19 20:52:10 +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 c5669b308e Fix memleak in desktop cache create
SVN revision: 56909
2011-02-10 14:25:13 +00:00
Sebastian Dransfeld c49d6dd5c4 Set file owner to calling user
This fixes cache problems when running programs utilizing efreet with
sudo.

SVN revision: 56787
2011-02-07 21:33:33 +00:00
Sebastian Dransfeld 886a338b94 Move lock creation to own function for cache
SVN revision: 56786
2011-02-07 21:33:22 +00:00
Sebastian Dransfeld 918f284b38 Do init efreet before using efreet_*() functions
SVN revision: 56785
2011-02-07 21:33:11 +00:00
Sebastian Dransfeld 711b6b10a0 Don't create cache dir several times
SVN revision: 56784
2011-02-07 21:33:01 +00:00
Sebastian Dransfeld 2296007594 Define EFREET_MODULE_LOG_DOM
Must be defined in all files which include efreet_private.h

SVN revision: 56734
2011-02-05 19:56:44 +00:00
Sebastian Dransfeld 37405fc035 Improve storage of desktop util data
SVN revision: 56588
2011-01-31 11:32:34 +00:00
Sebastian Dransfeld 6453bdd056 Write version before entries check
Otherwise we will always get changed == 1

SVN revision: 56329
2011-01-27 20:21:16 +00:00
Carsten Haitzler 8da3cc47b5 actually log write err.
SVN revision: 56186
2011-01-16 08:12:51 +00:00
Sebastian Dransfeld 3a0af7b9c5 Don't store Hidden elements in utils cache
Hidden elements should never be returned to the user, they are "Deleted"

SVN revision: 55405
2010-12-09 12:19:00 +00:00
Sebastian Dransfeld 84fdf4e0ef don't terminate execs
they finish very quickly, not need to terminate

SVN revision: 55383
2010-12-08 21:39:23 +00:00
Sebastian Dransfeld 9da725d028 fix cache filenames
move cache to XDG_CACHE_HOME and add hostname for shared homedirs

SVN revision: 55263
2010-12-04 16:02:20 +00:00
Sebastian Dransfeld 9ac9292404 Need to open read/write for eet_num_entries
SVN revision: 55194
2010-12-03 14:53:11 +00:00
Sebastian Dransfeld e9763d92d4 add global version to cache files
SVN revision: 55145
2010-12-02 08:34:07 +00:00
Sebastian Dransfeld bbd2b07962 Rename to match icon functions
SVN revision: 55135
2010-12-02 08:32:22 +00:00
Sebastian Dransfeld 0c8c2d3c9f Stick with efreet formatting
efreet has it's own formatting, something like
"set ts=4 sw=4 sts=4 expandtab cino=(0W1st0". Please keep it like this,
or do the job to convert the whole lib to efl style.

SVN revision: 55036
2010-11-27 20:36:27 +00:00
Sebastian Dransfeld 66e52e2829 Rename efreet_icon_private.h to something better
efreet_icon_private.h should be private to external code interacting
with the icon cache, so name it efreet_cache_private.h and only include
Eet.h there.

SVN revision: 55035
2010-11-27 20:15:00 +00:00
Vincent Torri 57c6d1b2e0 fix efreet after the Windows commits
SVN revision: 55026
2010-11-26 20:48:50 +00:00
Cedric BAIL a90e2e4aff * efreet: improve icon cache, increase speed and consume a little
more memory than previous version.

	TODO: efreet_icon_cache_create could be speeded up if we did
	reuse already generated theme instead when doing inherit work.

	NOTE: Let me add a rant against Freedesktop standard. Walking
	around 22731 paths for 3051 icons is insane and that's just for
	one theme ! Maybe they could give me one SSD...


SVN revision: 55018
2010-11-26 14:56:23 +00:00
Sebastian Dransfeld 3fab0c44cb actually change file, as we don't listen to attrib
SVN revision: 54924
2010-11-24 09:37:35 +00:00
Sebastian Dransfeld 38bad7fac0 catch term, not int
SVN revision: 54892
2010-11-23 16:50:16 +00:00
Sebastian Dransfeld 5db48201ce trap sigint
SVN revision: 54891
2010-11-23 16:49:46 +00:00
Sebastian Dransfeld 15a241534c touch an update file on completion
SVN revision: 54886
2010-11-23 13:30:39 +00:00
Sebastian Dransfeld f6cb6541e3 rename fd to clarify usage
SVN revision: 54885
2010-11-23 13:30:17 +00:00
Sebastian Dransfeld bc008e3a93 local variable should be static
SVN revision: 54580
2010-11-16 10:31:49 +00:00
Sebastian Dransfeld aec56c9e24 share edd between lib and bin
SVN revision: 54573
2010-11-15 21:06:52 +00:00
Sebastian Dransfeld 44ce55c909 TOOD++
SVN revision: 54386
2010-11-09 21:31:46 +00:00
Sebastian Dransfeld f3a591b253 Always munmap mmap'ed data
SVN revision: 51713
2010-08-29 08:47:37 +00:00
Carsten Haitzler dae2c23caf possible leak--
SVN revision: 51703
2010-08-28 15:11:20 +00:00
Lucas De Marchi 0a4617ae38 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
Sebastian Dransfeld 36b570e9bc formatting
SVN revision: 49838
2010-06-24 19:34:15 +00:00
Cedric BAIL 55524b4e87 * efreet: remove warning due to change in Ecore API.
SVN revision: 49831
2010-06-24 16:17:45 +00:00
Sebastian Dransfeld 28878014c9 flock -> fcntl
flock isn't portable. Fix some headers too.

SVN revision: 49649
2010-06-11 21:43:07 +00:00
Carsten Haitzler 7a935a6eac add verbose option/
SVN revision: 49387
2010-06-02 00:19:38 +00:00
Sebastian Dransfeld a384141abc efreet: Check return value from opendir
SVN revision: 48081
2010-04-17 18:39:13 +00:00
Sebastian Dransfeld 207f5dc447 efreet: cache all types of desktop files
SVN revision: 47792
2010-04-06 18:36:04 +00:00
Sebastian Dransfeld 44f00fc8a6 efreet: don't truncate, unlink and open
SVN revision: 47789
2010-04-06 18:35:35 +00:00
Sebastian Dransfeld 0407d84a9a efreet: rename lock file
SVN revision: 47729
2010-04-03 18:45:46 +00:00
Sebastian Dransfeld 5ffb64a69c efreet: TODO--++
SVN revision: 47667
2010-04-01 19:40:53 +00:00
Sebastian Dransfeld caa9409ac0 efreet: Check if old and new cache equals
SVN revision: 47585
2010-03-30 10:51:45 +00:00
Sebastian Dransfeld 1aa568e828 efreet: Check source of desktop
Flag changed if efreet_desktop_new doesn't return a eet cached value.

SVN revision: 47584
2010-03-30 10:51:35 +00:00
Carsten Haitzler 04af71119f bah!
SVN revision: 47571
2010-03-30 00:02:19 +00:00