Commit Graph

198 Commits

Author SHA1 Message Date
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
Mike Blumenkrantz 672730ee44 only parse retarded canonical ini fields when not using strict spec compliance
SVN revision: 72387
2012-06-18 12:12:44 +00:00
Mike Blumenkrantz 9d8a7e0095 fix annoying null error spam
SVN revision: 72111
2012-06-14 08:29:53 +00:00
Mike Blumenkrantz 3e24827119 the dicks at canonical like to break fdo .desktop file spec by adding invalid characters (underscores) to key names. we are not amused.
SVN revision: 71941
2012-06-11 09:38:10 +00:00
Mike Blumenkrantz 4d3515b730 enough with the efreet error message spam!!!
SVN revision: 71939
2012-06-11 09:01: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 820722a779 efreet: opendir -> eina_file_direct_ls
SVN revision: 67308
2012-01-19 00:35:51 +00:00
Cedric BAIL aeed35b2ea efreet: correctly include dirent.h in the right place.
NOTE: for after 1.1, we should really use eina_*_ls API instead.


SVN revision: 65292
2011-11-16 10:56:44 +00:00
Sebastian Dransfeld b8e42ad9cd Efreet: Only add known desktop types to cache
SVN revision: 63020
2011-08-31 09:10:18 +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 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
Carsten Haitzler 71b7acde90 doxy -> h files.
SVN revision: 58487
2011-04-08 11:01:08 +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 d5927220e8 Efreet: Verify that path contains '.'
Thanks Heinervdm

SVN revision: 57435
2011-02-28 20:15:55 +00:00
Sebastian Dransfeld 377da1a3c4 Efreet: Add comment for unchached desktop files
SVN revision: 57257
2011-02-23 09:33:24 +00:00
Sebastian Dransfeld 678b0ab6d3 TODO++
SVN revision: 57061
2011-02-15 18:51:06 +00:00
Sebastian Dransfeld d22176c22d TODO++
SVN revision: 56951
2011-02-11 13:49:25 +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 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 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 da2c871e24 Remove duplicate logging macros
SVN revision: 56732
2011-02-05 19:07:07 +00:00
Sebastian Dransfeld accd246c72 Set EFREET_MODULE_LOG_DOM to -1 after unregister
SVN revision: 56731
2011-02-05 19:06:55 +00:00
Sebastian Dransfeld 6ed10251db Remove global log domain
SVN revision: 56729
2011-02-05 19:05:55 +00:00
Sebastian Dransfeld 978741a789 doc
SVN revision: 56326
2011-01-27 17:49:45 +00:00
Sebastian Dransfeld 3997a22f3a Add doc
SVN revision: 56324
2011-01-27 17:43:38 +00:00
Sebastian Dransfeld a9e8e3c2c4 use cache dir for data lock
SVN revision: 55414
2010-12-09 14:01:34 +00:00
Sebastian Dransfeld 9e3be1a1a4 use eina_hash_direct_add
use eina_hash_direct_add where we use a struct member as key

SVN revision: 55193
2010-12-03 14:53:01 +00:00
Vincent Torri 57c6d1b2e0 fix efreet after the Windows commits
SVN revision: 55026
2010-11-26 20:48:50 +00:00
Vincent Torri 126c3574c3 fix compilation on Windows
SVN revision: 55021
2010-11-26 17:05:16 +00:00
Sebastian Dransfeld b9c9af539a Check if dir exists before listening to it
SVN revision: 55008
2010-11-26 10:27:41 +00:00
Vincent Torri d07b011ca8 move Ecore_File.h inclusion to the source file
SVN revision: 55002
2010-11-25 23:52:57 +00:00
Vincent Torri 42f57e9fc3 put alloca declaration after config.h
SVN revision: 55001
2010-11-25 23:48:59 +00:00
Sebastian Dransfeld 8f7c47480d use convenience macro
SVN revision: 54954
2010-11-24 20:52:12 +00:00
Sebastian Dransfeld fabda0d559 reorder code
SVN revision: 54953
2010-11-24 20:51:48 +00:00
Sebastian Dransfeld 213be68ade Only update if file has known extension
SVN revision: 54925
2010-11-24 09:37:46 +00:00
Sebastian Dransfeld 263745797e Listening for changes is private for desktop
SVN revision: 54911
2010-11-23 21:54:01 +00:00
Sebastian Dransfeld e2c6e11724 move cache file handling from desktop to cache
SVN revision: 54901
2010-11-23 20:14:13 +00:00
Sebastian Dransfeld 7e584e6293 ecore is handled in main
SVN revision: 54887
2010-11-23 13:30:51 +00:00
Sebastian Dransfeld 997158486a ecore_file is init'ed in base
SVN revision: 54825
2010-11-22 20:49:52 +00:00
Sebastian Dransfeld aec56c9e24 share edd between lib and bin
SVN revision: 54573
2010-11-15 21:06:52 +00:00
Sebastian Dransfeld 0ab16442cf Always do env check
SVN revision: 54231
2010-11-06 16:47:43 +00:00
Sebastian Dransfeld 736dbfed46 store OnlyShowIn and NotShowIn in struct
SVN revision: 53691
2010-10-20 20:39:54 +00:00
Gustavo Sverzut Barbieri bc2c59746d log domains in lower-case only please.
let's make it a standard so we don't have to look at the code
everytime to figure out the name...



SVN revision: 53171
2010-10-07 22:22:33 +00:00
Lucas De Marchi 67771ee617 Fix common misspellings
Following misspellings were fixed:

acheive->achieve
appart->apart
isnt->isn't
succesfully->successfully
taht->that



SVN revision: 51987
2010-09-08 11:27:59 +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
Carsten Haitzler 1325b20a81 sloppy ecore_job handle! fix!
SVN revision: 51107
2010-08-14 04:02:31 +00:00