aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/efreet (follow)
Commit message (Collapse)AuthorAgeFilesLines
* efreet mime cache - expand buffer to avoid truncation by snprintfCarsten Haitzler (Rasterman)2018-11-091-1/+1
|
* efreetd - warn - expand buffer to avoid truncation by snprintfCarsten Haitzler (Rasterman)2018-11-091-1/+1
|
* here comes mesonMarcel Hollerbach2018-10-021-0/+41
| | | | | | | | | | | | | | | | | | | | | | | a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
* efreet icon cache creation binary - remove redundent checkCarsten Haitzler (Rasterman)2017-07-311-2/+2
| | | | found by PVS studio
* efreetd cache create - fix reallocs to bail on out of memory cleanlyCarsten Haitzler (Rasterman)2017-07-241-4/+19
|
* efreetd cache - fix leak of strbuf when error conditions abort saveCarsten Haitzler (Rasterman)2017-07-231-3/+3
| | | | fix CID 1374951
* efreetd cache - handle queue case leaking strbufCarsten Haitzler (Rasterman)2017-07-231-1/+2
| | | | fix CID 1374954
* efreet icon cache create bin - check realloc results and handleCarsten Haitzler (Rasterman)2017-07-161-1/+8
| | | | @fix
* efreet cache create binary - check realloc results and handle failureCarsten Haitzler (Rasterman)2017-07-161-19/+21
| | | | @fix
* efreet: Fix failure to save list data to outputBryce Harrington2017-05-121-1/+1
| | | | | | | | | | | | | | | | | Summary: This fixes a typo in the fix 55676b33, which introduced an invalid early return from the save_list function, preventing it from outputing the list data to the file. @fix CID1375005, CID1375004 Reviewers: jpeg Reviewed By: jpeg Subscribers: stefan_schmidt, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4873
* efreet: free the allocated buffer before returningStefan Schmidt2017-05-111-6/+24
| | | | | | | | This fixes the commit 169a08c03a6a7270e185bda85d4ab9afd9063c8e (efreetd: BSD optimizations). Coverity rightly pointed out six different leaks of various buffers on error paths. CID: 1374949 1374950 1374951 1374952 1374953 1374954
* efreetd: BSD optimizations.Al Poole2017-05-103-79/+128
| | | | | | | | | | | | Summary: Related to ticket T5475. Reviewers: raster, cedric Subscribers: jpeg, cedric, raster Differential Revision: https://phab.enlightenment.org/D4865 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* efreetd - make efreetd use eio and not ecore_file_monitor for monitoringCarsten Haitzler (Rasterman)2017-04-231-110/+117
| | | | | | this should fix T5130 - freebsd's efreetd polling regularly @fix
* efreet cache create - check return values of i/o funcsCarsten Haitzler (Rasterman)2017-04-181-14/+43
| | | | | | | | | this is pretty harmless but it checks these and at least reports an error... this fixes CID 1361941 + 1361940 @fix
* removing duplicates winsock2.hIvan Furs2017-03-072-7/+1
| | | | | | | | | | | | | | | | | Summary: winsock2.h included in Ecore.h But Ecore.h ' is included in /bin/efreet/efreet_desktop_cache_create.c src/bin/efreet/efreet_mime_cache_create.c src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c Reviewers: NikaWhite, cedric, raster, an.kroitor Reviewed By: raster Subscribers: artem.popov, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4687
* efreetd - remove unused varCarsten Haitzler (Rasterman)2017-02-091-1/+0
|
* efreetd cache - use eina home env get to centralize homedir fetchingCarsten Haitzler (Rasterman)2017-02-091-1/+1
| | | | this cleans up and improves a getenv that should really use eina
* efreetd - dont use XDG_RUNTIME_DIR or EFREET_LOG env vars for setuidCarsten Haitzler (Rasterman)2017-02-091-20/+7
| | | | | | | if a setuid app needs efreet - it will not be able to contact the users' efreetd and thus may spawn it's own... and thus we cant have this now spawned efreetd using env vars inherited from the unpriveleged etc. user, so ignore them.
* efreet_desktop: fix potential error in efreet_desktop_cache_createSungtaek Hong2016-12-081-0/+1
| | | | | | | | | | | | | | Summary: - old_file_ids is freed but not set as NULL. If it goes to error code, old_file_ids will be freed again. Reviewers: jpeg, cedric, Hermet Reviewed By: Hermet Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4467
* efreetd: handle invalid fd in all casesStefan Schmidt2016-12-051-0/+4
| | | | | | | Very unlikely that we will get a -1 when opening /dev/null but you never know what kind of system you are running on. CID: 1361759
* efreet - save about 240-300k or so of memory used by efreet mimeCarsten Haitzler (Rasterman)2016-08-235-0/+585
| | | | | | | | | | | | | | | | | | | | | so efreet mime was loading a bunch of mime type info files, parsing them on startup and allocating memory to store all this mime info - globs, mimetype strings and more. all a big waste of memory as its allocated on the heap per process where its the SAME data files loaded every time. so make an efreet mime cache file and a tool to create it from mime files. mmap this file with all the hashes/strings in it so all that data is mmaped once in memory and shared between all processes and it is only paged in on demand - as actually read/needed so if your process doesnt need to know about mime stuff.. it wont touch it anyway. this saves about 240-300k or so of memory in my tests. this has not covered the mime MAGIC files which still consume memory and are on the heap. this is more complex so it will take more time to come up with a nice file format for the data that is nicely mmaped etc. @optimize
* efreetd - only open log file is env var is set to do soCarsten Haitzler (Rasterman)2016-08-191-6/+16
| | | | | | | | | set EFREETD_LOG to something to get efreetd to log. otherwise efretd log files can end up rather larth and since they go in xdg_runtimedir - thats mostly a ramdisk... they eat actual ram. so save a lot of memory and only log if asked to. @fix
* Revert "efreetd - reduce memory usage by using stringshare much more"Mike Blumenkrantz2016-05-021-6/+6
| | | | | | | partially reverts e4d815dc48c660a336670ec3cc67e6becbdcacfc this caused efreetd to crash almost immediately due to non-stringshared strings being used in a stringshare-only hash data descriptor
* efreetd - reduce memory usage by using stringshare much moreCarsten Haitzler (Rasterman)2016-04-231-6/+6
| | | | | | | lots of long paths for monitoring file paths for icons etc. are in memory for efreetd. this reduces that memory by sharing them much more. @optimization
* efreetd - dont use netdb.sh as per man page on windowsCarsten Haitzler (Rasterman)2016-04-081-1/+0
|
* efreet - use eina tmp dir instead of /tmp dirCarsten Haitzler (Rasterman)2016-04-081-2/+2
| | | | use eina_environment_tmp_get() for windows
* efreetd - fix more cache path handling to live in the cache dirCarsten Haitzler (Rasterman)2016-04-081-1/+2
| | | | | | follow on fixes from 5028a8807780892c361ae976b567cd924fa529b1 @fix
* efreet: fix tmp file/dir/log handling to not leave a mess and workCarsten Haitzler (Rasterman)2016-04-082-20/+40
| | | | | | | | | | so efreets tmp file/cache/log file handling was broken, using filenames in tmp and renaming them to a caceh dir that can be on different filesystems. also log file should have been in a tmp dir ... and subsidrs cache didnt get renamed properly at all and thus not updated. @fix
* efreet: fix undeclared functionJean Guyomarc'h2016-01-071-1/+2
| | | | | | | | | libgen is needed on OSX because it contains the prototype of basename() which is required in the compiling unit. The result of basename() was therefore implicitely converted into an integer, which could leed to subtile issues. @fix
* efreetd: send ipc for EFREET_EVENT_DESKTOP_CACHE_BUILD...alwaysMike Blumenkrantz2015-12-233-0/+9
| | | | | | | | | | since the conversion from dbus -> ecore-ipc, efreetd has failed to notify when a cache build has completed, instead only sending the current state of the desktop cache: not built fix T2733 @fix
* efreet_icon_cache_create: null theme eet file to avoid double freeMike Blumenkrantz2015-12-161-0/+1
| | | | @fix
* efl: add binary mode to open() callsVincent Torri2015-12-051-1/+5
| | | | | | This allows better compatibility with Windows Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* fix efreetd to scan more subdirs for desktop and icon filesCarsten Haitzler (Rasterman)2015-12-021-2/+2
| | | | | | | we miss desktop files for apps and stuff because we dont monitor too deep a tree. this ups our tree depth to 10 levels. @fix
* efreet desktop tracking - fix monitoring of dirs of custom desktopsCarsten Haitzler (Rasterman)2015-12-021-1/+3
| | | | | | | | | | | @fix this is wrong - start monitoring every/any dir in which a desktop file exists that we load a desktop file from. imagine you browse directories in efm with lots of desktop files in them - we end up monitoring lots of directories that we then rememebr and don't un-monitor. this disables monitoring of dirs from which we load a .desktop file from to fix this.
* efreet: fix warningVincent Torri2015-11-091-0/+5
| | | | | | | Commit 0cd59bb1 introduced the use of basename() which needs libgen.h (hence winsock2.h before) on Windows. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* eina/efreet: open file with binary file on WindowsVincent Torri2015-11-061-1/+5
| | | | | | @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* efreet - fix efreetd to not exit on $home being in extra app dirsCarsten Haitzler (Rasterman)2015-11-021-6/+2
| | | | | | | | | if a client added $home in the efreet extra desktops dirs, then efreetd would detect and nuke cache, exit, causing a restart cycle forever. this makes efreet simply ignore the errant dir so it can keep working. @fix
* efreet: make sure that we use the right directory and ef for the cache.Cedric BAIL2015-10-231-43/+79
|
* efreet: use eina_file_mkstemp() for portability and fix a bug on WindowsVincent Torri2015-10-191-7/+15
| | | | Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* efreet: use ecore_file function instead of stat() in the icon cache codeVincent Torri2015-10-121-16/+19
| | | | Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* efreet: eina_file_mkstemp() needs a template with an extensionVincent Torri2015-10-121-1/+1
| | | | Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* efreet: use eina_file_mkstemp() instead of mkstemp() for portabilityVincent Torri2015-10-121-12/+11
| | | | Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* Efreet: use eina_file_mkstemp() instead of mkstemp in efreetd.cVincent Torri2015-07-221-8/+7
|
* efreetd_ipc: fix shadow warningDaniel Kolesa2015-06-291-2/+2
|
* efl -> fix possible null deref in efreetd ipcCarsten Haitzler (Rasterman)2015-06-251-1/+1
| | | | this fixes CID 1308358
* efl - efreetd service move from dbus session bus to ecore ipcCarsten Haitzler (Rasterman)2015-06-245-272/+236
| | | | | | | | | | | | | | | | this fixes warnings about no efreet dbus session bus in non session environments as brought up on the mailing lists with: Subject: Re: [E-devel] [EGIT] [core/efl] master 01/01: edje: unset efreet cache update flag to prevent dbus connections this moves all of efreetd client and server to ecore ipc, with client auto-launching efreetd if not found as a service and trying for up to 500ms to connect. efreetd times out on last connection or no connections after 10sec so it wont hang around forever if not in use. it seems to work in my testing, so let me know if there is an issue. @fix
* efreetd - cache - mark cd as const as it isnt needing a free on returnCarsten Haitzler (Rasterman)2015-04-141-3/+3
|
* efreetd: If we fail to allocate space for subdir_cache, then get outChris Michael2015-04-131-1/+6
| | | | | | | | | | Summary: Fix coverity CID1294212 (potential Null pointer dereference) as the alloc for subdir_cache Could fail, however if it does we Were still trying to use it. In the case that it fails, ERR msg and return. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* efreed cache - fix coverity warning on rm cleanup on sanity checkCarsten Haitzler (Rasterman)2015-04-131-1/+1
| | | | | sanity check didnt check return value of ecore_file_recursive_rm(). do that. coverity should be happy now.
* efreetd - fix loading of extra_icons.dirs and icon.exts to not lose charCarsten Haitzler (Rasterman)2015-04-131-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | efreetd was losing the last char on every line of extra_icon.dirs and icon.exts thus resulting in gradual degredation of these files as more and more changes happen to have things like: .jpeg .jpe .jp .j . etc. for extension or dirs like /home/raster/.e/e/icons /home/raster/.e/e/icon /home/raster/.e/e/ico ... /home/ras /home/ra /home/r ... /ho /h / .. you get the idea. before long the list of extra icon dirs (and extensions) was massigve and caued all sorts of filesystem rummaging. this fixes that to no longer degrade these files. this also changes their names to force new files to be used instead of the broken old ones.