Sebastian Dransfeld
7bbc5e82ba
Remove unneeded code
...
SVN revision: 47470
2010-03-26 05:33:00 +00:00
Sebastian Dransfeld
4e8ebec3f6
efreet_menu.c: Fix compiler warning
...
SVN revision: 47469
2010-03-26 05:29:15 +00:00
Sebastian Dransfeld
ef2cb7ab02
Add func to read a .desktop file from disk
...
SVN revision: 47250
2010-03-15 19:57:57 +00:00
Sebastian Dransfeld
a4c63dd80d
formatting
...
SVN revision: 47245
2010-03-15 19:10:51 +00:00
Sebastian Dransfeld
985b7e395a
Fix realpath usage
...
Always use realpath before interacting with the efreet_desktop_cache,
else it wont be consistent.
SVN revision: 47244
2010-03-15 19:08:22 +00:00
Cedric BAIL
ddbeb0581c
* efreet: Prevent crash due to freed desktop still in cache.
...
SVN revision: 47235
2010-03-15 13:46:45 +00:00
Sebastian Dransfeld
2f7f718185
Fix?? segv
...
For some peculiar reason, using ecore_file_realpath here screws with
efreet_menu.
SVN revision: 47224
2010-03-14 20:48:52 +00:00
Sebastian Dransfeld
7efb6fcaad
cache .directory files also
...
SVN revision: 47186
2010-03-13 20:58:17 +00:00
Sebastian Dransfeld
d47cdf8288
fix memleak
...
Free hash and data pointer when using eet, but not lists
SVN revision: 47183
2010-03-13 19:14:35 +00:00
Sebastian Dransfeld
032c37d795
same PACKAGE_DIR as data subdir
...
SVN revision: 47182
2010-03-13 19:05:23 +00:00
Sebastian Dransfeld
2104d71164
shutdown eina after last stringshare del
...
SVN revision: 47181
2010-03-13 19:05:11 +00:00
Sebastian Dransfeld
277365fe1c
Don't free data at all from eet
...
SVN revision: 47179
2010-03-13 18:35:48 +00:00
Sebastian Dransfeld
09dcca28de
stringshare
...
SVN revision: 47178
2010-03-13 18:35:39 +00:00
Sebastian Dransfeld
eb8fa05ff3
When using Eina_List, need to return list
...
SVN revision: 47177
2010-03-13 18:35:29 +00:00
Sebastian Dransfeld
c07e3969ce
stringshare
...
SVN revision: 47176
2010-03-13 18:34:30 +00:00
Sebastian Dransfeld
f3b42c4b05
Hi,
...
I discover a memory leak (an invalid free) in efreet after running some
of the test programs.
Mathieu
SVN revision: 47136
2010-03-11 18:36:31 +00:00
Sebastian Dransfeld
ed3305dc18
Cache files from user dirs
...
SVN revision: 47122
2010-03-10 21:34:52 +00:00
Sebastian Dransfeld
8e05829f83
read user dir cache
...
SVN revision: 47120
2010-03-10 21:33:43 +00:00
Sebastian Dransfeld
424f67585e
formatting
...
SVN revision: 46960
2010-03-07 20:34:41 +00:00
Sebastian Dransfeld
30c305288f
Fix problem with orig_path and rp
...
We have orig_path, it is set by rp. Only problem is that it was set
after efreet_desktop_read so the error handler would work as it should.
Wrong solution. So now we set orig_path to NULL, so we always can free
rp.
SVN revision: 46880
2010-03-04 21:54:33 +00:00
Carsten Haitzler
33ec010a36
errrr - how about we have a orig_path for a new desktop file eh? there's a
...
brilliant idea!
SVN revision: 46859
2010-03-04 01:00:06 +00:00
Sebastian Dransfeld
76d630dcc0
TODO
...
SVN revision: 46848
2010-03-03 22:11:06 +00:00
Sebastian Dransfeld
22a691b5e9
Assign rp to orig_path after last goto error
...
This will fix the double free problem
SVN revision: 46841
2010-03-03 20:13:13 +00:00
Sebastian Dransfeld
7a07bed86c
Clarify difference between _get and _new
...
efreet_desktop_get for long living cached structs, efreet_desktop_new
for shortlived non cached.
SVN revision: 46840
2010-03-03 19:42:38 +00:00
Sebastian Dransfeld
afb2a67c50
Create func to get name for cache dirs file
...
SVN revision: 46834
2010-03-03 12:29:09 +00:00
Sebastian Dransfeld
755e118e2c
Allow non existing cache file
...
SVN revision: 46833
2010-03-03 12:28:59 +00:00
Sebastian Dransfeld
b5e9acd3da
formatting
...
SVN revision: 46832
2010-03-03 12:28:49 +00:00
Sebastian Dransfeld
a1205c588c
rename function
...
SVN revision: 46831
2010-03-03 12:28:40 +00:00
Sebastian Dransfeld
4b25daa441
Open cache files with O_EXCL
...
SVN revision: 46830
2010-03-03 12:28:30 +00:00
Sebastian Dransfeld
d07a67ad63
Store unknown .desktop file dirs
...
SVN revision: 46829
2010-03-03 12:28:21 +00:00
Sebastian Dransfeld
c196b7d701
-1 as default fd value
...
SVN revision: 46828
2010-03-03 12:28:11 +00:00
Sebastian Dransfeld
0903581396
Don't close fd, will be done in error handler
...
SVN revision: 46827
2010-03-03 12:27:32 +00:00
Christopher Michael
4177422a6b
Temporary stop-gap for E17 crashing when Applications menu is trying to
...
show.
(I know, not an ideal fix, but I don't know the code well enough...and
this is better than everyone's desktop dying.)
SVN revision: 46810
2010-03-03 02:24:26 +00:00
Sebastian Dransfeld
6d10aea822
Use realpath to clean path
...
SVN revision: 46801
2010-03-02 20:07:41 +00:00
Sebastian Dransfeld
317f0a427e
Various
...
- lock as soon as possible
- don't truncate old cache, just unlink before create empty file
SVN revision: 46783
2010-03-02 11:26:31 +00:00
Sebastian Dransfeld
d99f80aff7
Fix compiler warnings
...
Found when compiling with --enable-tests and --enable-coverage
SVN revision: 46746
2010-03-01 21:43:59 +00:00
Sebastian Dransfeld
a15116ecae
Check if file_id exists
...
SVN revision: 46745
2010-03-01 21:43:49 +00:00
Sebastian Dransfeld
59691e5660
Remember all paths, to avoid duplicates
...
SVN revision: 46744
2010-03-01 21:43:37 +00:00
Vincent Torri
bf8b3ce2a3
add unit test and coverage framework, and trivial tests
...
SVN revision: 46742
2010-03-01 21:05:17 +00:00
Vincent Torri
1b9235aa1f
fix autotools stuff
...
SVN revision: 46737
2010-03-01 20:16:15 +00:00
Sebastian Dransfeld
8b0e9907b6
Empty cache is probable, so don't check for it
...
SVN revision: 46736
2010-03-01 19:58:23 +00:00
Sebastian Dransfeld
9eda1bb218
TODO++
...
SVN revision: 46731
2010-03-01 19:05:59 +00:00
Sebastian Dransfeld
cadc12f955
Create new cache in a tmp file
...
SVN revision: 46730
2010-03-01 19:05:49 +00:00
Sebastian Dransfeld
b88fa404ad
truncate old cache so we don't read cached values
...
SVN revision: 46727
2010-03-01 18:42:24 +00:00
Sebastian Dransfeld
f72d4f9342
Eet cache for efreet desktop
...
SVN revision: 46726
2010-03-01 18:16:32 +00:00
Sebastian Dransfeld
7c1420c73b
Use MAP_FAILED constant
...
SVN revision: 46174
2010-02-14 21:22:06 +00:00
Sebastian Dransfeld
6f2038b6e7
Create path to file if not exists
...
Fixes bug #513
SVN revision: 45990
2010-02-08 19:27:58 +00:00
Sebastian Dransfeld
cb4af1da03
Don't add already existing paths to theme
...
SVN revision: 45883
2010-02-04 20:02:56 +00:00
Sebastian Dransfeld
291c525a42
Remove raster's stupid cache
...
And just disable cache limit on the already existing cache.
SVN revision: 45881
2010-02-04 20:02:33 +00:00
Sebastian Dransfeld
0423e1ea99
Formatting
...
SVN revision: 45865
2010-02-04 09:12:35 +00:00
Sebastian Dransfeld
d3419db6cd
Ecore_Str.h -> Eina
...
SVN revision: 45741
2010-01-30 22:13:16 +00:00
Sebastian Dransfeld
96a20ffd91
Update to spec 1.1
...
%n, %N, %d and %D is deprecated, and version is string
SVN revision: 45532
2010-01-24 21:21:27 +00:00
Sebastian Dransfeld
6833eadf64
/usr/local/share should also be in XDG_DATA_DIRS
...
SVN revision: 45496
2010-01-23 18:55:27 +00:00
Sebastian Dransfeld
04edba1123
Be less strict
...
Prefer system set menu_file.
Try harder to find -merged dirs which matches the current menu.
SVN revision: 45265
2010-01-17 18:57:49 +00:00
Sebastian Dransfeld
4b33d2e4aa
remove ecore_data function
...
SVN revision: 45264
2010-01-17 18:56:48 +00:00
Sebastian Dransfeld
362ef26c2d
remove Ecore_Data
...
SVN revision: 45218
2010-01-16 13:43:28 +00:00
Christopher Michael
7c0e622466
Make efreet compile again.
...
SVN revision: 45206
2010-01-16 05:22:24 +00:00
Sebastian Dransfeld
0903a5be95
Add ()
...
SVN revision: 45200
2010-01-15 20:51:34 +00:00
Sebastian Dransfeld
af22e351b2
Fix compiler warnings
...
SVN revision: 45199
2010-01-15 20:51:23 +00:00
Massimiliano Calamelli
bc2a1db660
Added two missing inclusions of limits.h, fix build in NetBSD5
...
SVN revision: 45026
2010-01-10 22:42:34 +00:00
David Walter Seikel
060ec41809
Make it compile again.
...
SVN revision: 44905
2010-01-05 02:15:41 +00:00
Gustavo Sverzut Barbieri
1979834385
PATH_MAX checks and fixes, by Lutin.
...
SVN revision: 44900
2010-01-04 23:11:15 +00:00
Christopher Michael
56ec4c946f
When using snprintf or fgets, etc, do not use PATH_MAX directly as the size
...
of the variable...use sizeof() compiler directive (lots of these).
Do not free 'realpath' in efreet_menu if we are going to try and print out
it's value.
If we find 'realpath' in the merged_menus hash, and we are going to return,
then free the realpath variable.
SVN revision: 44699
2009-12-23 20:55:23 +00:00
Sebastian Dransfeld
c0a2288b55
Make clang happy
...
SVN revision: 44259
2009-12-07 21:08:49 +00:00
Iván Briano
52468a9940
Fix to new Ecore API
...
SVN revision: 43685
2009-11-13 23:59:46 +00:00
Davide Andreoli
a59b9655b2
*Efreet_Ini: Add a new API call:
...
EAPI void efreet_ini_key_unset(Efreet_Ini *ini, const char *key);
With this you can remove keys from ini files
SVN revision: 43245
2009-10-24 09:23:51 +00:00
Davide Andreoli
c9533023ad
Efreet_ini: remove ending withespaces
...
SVN revision: 43244
2009-10-24 09:02:56 +00:00
Carsten Haitzler
ccec2fb8a4
fix xml init - called multilpe times, has no count for init + shutdown.
...
SVN revision: 43222
2009-10-23 00:01:15 +00:00
Vincent Torri
285297dcdd
* API break: _shutdown() functions return an int, now
...
* simplify a bit and fix init/shutdown functions
SVN revision: 42996
2009-10-10 06:19:13 +00:00
Cedric BAIL
703fb37368
* efreet: Prevent div by zero.
...
SVN revision: 42940
2009-10-07 12:57:13 +00:00
Vincent Torri
1403d26dce
remoove unused variables
...
SVN revision: 42877
2009-10-04 22:28:12 +00:00
Vincent Torri
4c05580f59
cleanup
...
SVN revision: 42876
2009-10-04 22:27:03 +00:00
Hannes Janetzek
6a9f924640
patch from dfjoerg: search also pixmap dirs for icons
...
SVN revision: 42875
2009-10-04 21:55:13 +00:00
Cedric BAIL
05126826a3
* efreet: Use eina_log.
...
Patch from Matthieu.
SVN revision: 42599
2009-09-21 16:36:29 +00:00
Davide Andreoli
5f6ba77546
Don't segfault if 'icon' is null
...
SVN revision: 42490
2009-09-14 20:18:25 +00:00
Carsten Haitzler
0b8f43494a
moe enume typedefs together. typedef before enum is bad for some compilrs...
...
like g++.. or suncc... dod so in all headers anyay for consistency
SVN revision: 42477
2009-09-14 00:38:59 +00:00
Hannes Janetzek
51fd74a36f
efreet_mime add fallback check for executables
...
SVN revision: 42474
2009-09-14 00:28:51 +00:00
Gustavo Sverzut Barbieri
992936af22
Update to match new EINA init/shutdown.
...
SVN revision: 42301
2009-09-06 22:23:04 +00:00
Vincent Torri
2e38151ed8
formatting
...
SVN revision: 42084
2009-08-29 05:29:05 +00:00
Gustavo Sverzut Barbieri
85c2e25399
have efreet to match x-generic as well, requested by jeffdameth.
...
SVN revision: 41907
2009-08-21 03:03:59 +00:00
Gustavo Sverzut Barbieri
4faa46cab3
Efreet_Mime: bugfix for magic matching.
...
Efreet_Mime did not match last set of magics for given mime-type due to
missing check after the loop. This bug was partially masked by the
problem fixed in my previous patch.
By: Mikhail Gusarov
SVN revision: 41305
2009-07-11 14:26:53 +00:00
Gustavo Sverzut Barbieri
9aef9f5eca
Efreet_Mime: fix subrules with non-zero depth.
...
Hello,
I've fixed a bug in parsing magic file in Efreet_Mime: if some magic
rule has a subrule with non-zero depth, then the 0 depth is used instead
for subrule. This led to nonsense like all .xml documents matched as
application/docbook+xml.
By: Mikhail Gusarov
SVN revision: 41304
2009-07-11 14:23:36 +00:00
Gustavo Sverzut Barbieri
eac66d4e5a
proper cleanup of efreet_desktop_command.
...
Efreet API is BRAIN NUTS, some stuff you're supposed to release (list)
and others are up to the callback to release.
Okay, I broke e17 trying to fix efreet tests. API is so inconsistent
that its own test was wrong. I'm reverting my change and fix the test,
but this is bad.
SVN revision: 41133
2009-06-20 19:07:31 +00:00
Vincent Torri
b9d313774f
* Allow some tests to pass on Windows. Just for the fun
...
* More important, allow to manage correctly the icons with
efreet on Windows. It works with Tango (and ewl, now)
SVN revision: 41130
2009-06-20 16:18:17 +00:00
Gustavo Sverzut Barbieri
44d66495ca
more valgrind fixes on efreet.
...
SVN revision: 41121
2009-06-20 06:50:01 +00:00
Gustavo Sverzut Barbieri
3871aed422
free some leaks reported by valgrind in src/bin tests.
...
SVN revision: 41117
2009-06-20 06:19:48 +00:00
Gustavo Sverzut Barbieri
ebeee4b5ce
we use lists, need to init/shutdown eina_list or we get segvs.
...
SVN revision: 41115
2009-06-20 05:53:26 +00:00
Gustavo Sverzut Barbieri
adf5c3553e
use new stringshared hash, pointer was being misused since api is confusing.
...
The pointer type is really confusing, it was expecting pointer to
pointer what is really weird.
Cedric just added a stringshared variant that should be as fast
(removing the strcmp()) and is the api one would expect.
This fix a long standing bug I introduced (sorry!) when added the
cache, but it was bit hard to hit as if you didn't find a collision
you'd be adding to cache and never finding it. But I recently started
to use icons on desktop and for some weird reason the PDF icons
started to show in TAR :-P
SVN revision: 41113
2009-06-19 15:00:38 +00:00
Vincent Torri
54b27e4edc
* DATADIR is used in a Windows directory. Use PACKAGE_DATA_DIR instead
...
* useless Evil.h inclusion
SVN revision: 41084
2009-06-17 16:07:29 +00:00
Carsten Haitzler
2cf2ffd88b
patch from dfjoerg - fix prefix handling for eet.
...
SVN revision: 41031
2009-06-14 20:13:58 +00:00
Carsten Haitzler
e50d237d83
more patches...
...
SVN revision: 40669
2009-05-15 11:47:39 +00:00
Massimiliano Calamelli
31c77f7844
Added #define _POSIX_HOST_NAME_MAX for OSes that don't know it (NetBSD in detail)
...
SVN revision: 40444
2009-04-28 15:49:45 +00:00
Mike Frysinger
d344f8a106
include Ecore.h for ecore_time* prototypes
...
SVN revision: 40432
2009-04-28 05:40:42 +00:00
Mike Frysinger
81b053c046
include Ecore.h for ecore_exe_run prototype
...
SVN revision: 40431
2009-04-28 05:39:22 +00:00
Carsten Haitzler
ae44cac932
revert patch - no-undefined already there.
...
SVN revision: 40319
2009-04-23 04:07:59 +00:00
booleanlabel
51dc49dbee
From: booleanlabel@gmail.com
...
cygwin fixes.
SVN revision: 40301
2009-04-23 01:09:01 +00:00
Vincent Torri
c634a197b4
fix eina_list_remove use
...
SVN revision: 40263
2009-04-21 08:09:39 +00:00
Vincent Torri
361f682833
typo
...
SVN revision: 40260
2009-04-21 06:16:19 +00:00
Vincent Torri
1bf086809e
* move header files in efree_provate.h to the source files
...
* fix compilation on Windows XP (not sure that Windows CE port is needed...)
note that, as ecore_exe is not available on Windows, some code have
been disables for that platform in src/lib/efreet_desktop.c. Also, a new Evil
version should be used (not in svn yet)
The compilation on Windows is needed for Ewl (icon and mime)
SVN revision: 40257
2009-04-20 23:20:40 +00:00
Carsten Haitzler
ce5a59b7e5
lutin... release soname patch. verbose svn soname used right now
...
SVN revision: 40131
2009-04-17 10:01:45 +00:00