Nikolas Garofil
9ad3b9d8bc
Fix: make sure 51c928a8ef
works when programs terminate by themselves
2009-07-29 21:27:00 +02:00
Cesare Tirabassi
7bfff20e5d
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-07-29 18:04:57 +02:00
Cesare Tirabassi
580fa3a52d
correct typo in error message
2009-07-29 18:04:34 +02:00
Nikolas Garofil
51c928a8ef
Fix: kill zombies without breaking b963c2827f
2009-07-29 11:43:16 +02:00
Cesare Tirabassi
81c691d15a
add emacs indentation variables to source files in line with current vim settings
2009-07-28 23:44:22 +02:00
Brenden Matthews
ec517ecb26
Remove deprecated stuff from docs and conky.c (for 1.7.3).
2009-07-28 12:43:45 -06:00
Brenden Matthews
da4b542ae6
Added some Lua API stuff.
...
Added conky_set_update_interval() API call, which allows you to change
Conky's update interval from a Lua script. Added the 'conky_info' table
to global Lua context, which still needs populating with stuff (right
now it only contains the current update interval and the system uptime).
2009-07-28 12:38:43 -06:00
Nikolas Garofil
e124064892
Fix: Always include stuff that used to use popen because it's now using pid_popen
2009-07-28 15:59:17 +02:00
Brenden Matthews
6c6711aa6d
Fix problem with invalid window props?
...
We should check to make sure the atom actually exists before trying to
retrieve the property.
2009-07-27 21:01:55 -06:00
Brenden Matthews
73eaf0cfc3
Clean up x11.c a bit.
2009-07-27 15:34:06 -06:00
Cesare Tirabassi
da06200e43
Fix user_times bug (launchpad #405188 ).
2009-07-27 15:09:18 -06:00
Brenden Matthews
dd6133b055
Fix linking error with Lua extras disabled.
2009-07-27 15:03:21 -06:00
Brenden Matthews
d97cd93a1c
Add vim modelines.
2009-07-27 14:47:31 -06:00
Brenden Matthews
73d36a59c0
Be more intelligent about handling tolua++ user types.
2009-07-27 14:07:36 -06:00
Nikolas Garofil
ca0f8f8712
Fix: If there is no battery then we don't care about the status
2009-07-27 13:34:20 +02:00
Nikolas Garofil
3e41b36fdf
use EXIT_SUCCESS and EXIT_FAILURE instead of 0 and 1 when calling exit
2009-07-27 01:29:57 +02:00
Cesare Tirabassi
ffe5d5f104
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-07-26 13:04:11 +02:00
Cesare Tirabassi
94cd289aec
clean the stack when llua_update_window_table is called with a window table not yet populated
2009-07-26 13:03:41 +02:00
Nikolas Garofil
b963c2827f
Fix: conky waited indefinitely on programs started with \$exec-alike vars if those programs don't quit.
...
Conky now kills the program when it should start the next update, this makes using things like tail with
the -f option possible in a \$exec.
I am not pushing this to 1.7.2 because this is a pretty big change in the code and it is not really
a bugfix but more a usability-problem-fix (if that term would exist).
2009-07-26 02:26:22 +02:00
Nikolas Garofil
4d37d021e1
Handle if popen should fail
2009-07-25 14:36:55 +02:00
Nikolas Garofil
febc5306e2
Don't place conky_ in front of lua functionnames if it's already there
2009-07-25 12:03:09 +02:00
Nikolas Garofil
7ce38ecf09
Fix: Make sure lua works without X11
2009-07-25 02:42:31 +02:00
Nikolas Garofil
ca04b9a3c7
just making bdf5e87c92
easier to read
2009-07-24 16:17:03 +02:00
Cesare Tirabassi
bdf5e87c92
workaround to fix feed_title being processed when not yet parsed
2009-07-24 14:48:54 +02:00
Cesare Tirabassi
0be6e37e07
Fixed parsing of rss parameters (last 2 are optional) and typo in rss.c; there is still a problem with feed_titlesince data->title doesn't get filled before processing
2009-07-24 13:07:20 +02:00
Nikolas Garofil
381b47a0a9
Don't do useless checks
2009-07-24 12:39:48 +02:00
Nikolas Garofil
875c7c3129
Support for update_interval_on_battery
2009-07-24 12:06:44 +02:00
Nikolas Garofil
ce8d124ce6
Merge branch 'master' of ssh://git.omp.am/home/omp/git/conky
2009-07-24 11:45:33 +02:00
Nikolas Garofil
44ca4647b8
bugfix
2009-07-24 11:44:17 +02:00
Cesare Tirabassi
0081fcab60
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-07-24 11:32:02 +02:00
Cesare Tirabassi
f5c8964510
Revert "the why recasting when you can simply declare it commit ..."
...
This reverts commit b2a30ea478
.
2009-07-24 11:30:27 +02:00
Nikolas Garofil
3322b2a9a9
Merge branch 'master' of ssh://git.omp.am/home/omp/git/conky
2009-07-24 11:12:35 +02:00
Nikolas Garofil
feedc8e7fa
Fix unclosed file in get_battery_stuff
2009-07-24 11:09:00 +02:00
Cesare Tirabassi
b2a30ea478
the why recasting when you can simply declare it commit ...
2009-07-23 23:58:27 +02:00
Cesare Tirabassi
d349fe56b2
Changed xoap parsing method to xpath, in preparation to include forecast data
2009-07-23 23:46:23 +02:00
Nikolas Garofil
922db9af82
Fix CRIT_ERR everywhere
2009-07-23 20:30:53 +02:00
Nikolas Garofil
7e7a193b74
Fix memleak in $weather
2009-07-23 18:50:39 +02:00
Nikolas Garofil
03a0e8ae19
Fix bug SF ID 2814810 (wrong output with execp and execpi)
2009-07-23 13:33:49 +02:00
Nikolas Garofil
ccd51857c1
Let $tail and $head work with FIFOs again (was disabled by commit 41a7cffbe7
), and fix memory bug when to_real_path is used in init_tailhead
2009-07-22 22:08:31 +02:00
Nikolas Garofil
41a7cffbe7
Fix bug with SF id 2808272 (tail and head)
...
To fix this bug the tail and head code was rewritten, everything should still
work except tailing a FIFO instead of a normal head.
2009-07-21 23:41:47 +02:00
Nikolas Garofil
caf0731565
Fix multiline stuff when build with X11 but output_to_x turned off.
...
This commit reverts 725a3ba43a
and fixes 5967d28511
2009-07-21 12:39:09 +02:00
Brenden Matthews
e973de66cf
Fix multiline stuff without X11.
2009-07-20 20:11:33 -06:00
Brenden Matthews
725a3ba43a
Revert "Fix multiline strings displayed on 1 line when output to x is not used"
...
This reverts commit 5967d28511
.
2009-07-20 17:46:22 -06:00
Nikolas Garofil
5967d28511
Fix multiline strings displayed on 1 line when output to x is not used
2009-07-21 00:47:02 +02:00
Brenden Matthews
9cda78c023
Clarify weather opts, refactor some weather code.
2009-07-20 13:17:44 -06:00
Brenden Matthews
f169e0e071
Actually apply c1cf1232e0
.
2009-07-20 12:40:32 -06:00
Brenden Matthews
38015c6600
Document curl stuff better.
2009-07-20 12:04:53 -06:00
Nikos Ntarmos
739e47f9ec
Teach freebsd.c to use the new CRIT_ERR format
...
Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Brenden Matthews <brenden@rty.ca>
2009-07-20 11:51:02 -06:00
Brenden Matthews
d3013bc410
Better argument handling for rss/curl/weather.
2009-07-20 09:59:31 -06:00
Nikolas Garofil
911eb4dc59
Include timed_thread.h when needed
2009-07-20 17:42:17 +02:00
Brenden Matthews
961274bc56
Oops, add missing files.
2009-07-20 09:21:33 -06:00
Brenden Matthews
f46eb1b6cb
Fix minor memleak.
2009-07-20 00:40:23 -06:00
Brenden Matthews
64394fa7da
Merge branch 'master' of git.omp.am:/home/omp/git/conky
...
Conflicts:
configure.ac.in
2009-07-19 23:45:55 -06:00
Brenden Matthews
c05c157ead
Overhauled RSS and weather, added $curl.
...
I've taken the curl stuff out of weather and RSS and moved it into it's
own entity. It should be easier to create curl-based objects if needed
now.
2009-07-19 23:43:36 -06:00
Nikolas Garofil
09d41cb0b6
Fix building without X11 support broke after commits f1c47e5fc4
and 670e9a0eb1
2009-07-20 01:02:27 +02:00
Cesare Tirabassi
ba414d8ab8
fix out-of-tree builds
2009-07-20 00:43:41 +02:00
Brenden Matthews
80a71ea8bd
Handle curl errors better (in weather and rss).
2009-07-19 15:28:19 -06:00
Brenden Matthews
e76f0c8587
Exit properly when forking.
2009-07-19 14:55:41 -06:00
Nikolas Garofil
4c41ec843a
fix hardcoding
2009-07-19 21:56:07 +02:00
Nikolas Garofil
f1c47e5fc4
Fix instead of workaround for d0edfa7004
2009-07-19 21:28:14 +02:00
Brenden Matthews
4139ec096f
Code formatting.
2009-07-19 12:12:42 -06:00
Brenden Matthews
90932b87e1
Update MPD elapsed/progress when stopped.
2009-07-19 11:59:20 -06:00
Cesare Tirabassi
50fd16d8bd
add XOAP to list of compiled-in features, if enabled
2009-07-19 18:14:22 +02:00
Nikolas Garofil
d0edfa7004
Workaround for bug SF id 2819128 ($color inside $scroll disabled)
2009-07-19 00:36:05 +02:00
Brenden Matthews
1f1b846a2d
Specials can be within multi-line objects.
2009-07-18 14:25:57 -06:00
Brenden Matthews
52ad674e51
Substitute newlines for everything but text.
2009-07-18 14:00:02 -06:00
Brenden Matthews
9c4ebef376
Oops, fix multiline stuff.
2009-07-18 13:49:52 -06:00
Brenden Matthews
670e9a0eb1
Multiline alignment support, some other misc stuff.
...
Added support for X alignment across multi-lined objects (i.e., using
$alignr with $exec). This may be a bit buggy. Disabled OpenMP code
until GCC's implementation stabilizes (it's causing too many problems).
A couple Lua API changes.
2009-07-18 13:46:36 -06:00
Cesare Tirabassi
5eef83d90a
add compilation switch --enable-xoap to be able to use www.weather.com as a source of weather data
2009-07-18 21:29:27 +02:00
Cesare Tirabassi
3bb9b4b6b5
Revert "Undid last 3 commits, see rest of the comment for the reason:"
...
First of all, we may or may not agree, but I consider reverting my
commits without prior discussion as a minimum unpolite.
I also don't like sites that oblige to register, thats the very reason
why I went with noaa first (and why I use that myself).
Howver, weather.com has a couple of nice features forom an user
viewpoint:
1. Their icons can be used to add a visual quality to the weather
report.
2. They have forecast data, which is not possible to have with noaa
(using TAF its an option, but its going to be very difficult and will
be limited in time and scope).
Nobody is obliged to do anything, people who likes noaa will use noaa,
people that don't mind register or wants the additional benefit will use
weather.com.
Having libxms2 as a dragged depends is, first of all, also with other
options (rss and eve), second we can try to work around it with an
additional compilation flag if really deemed necessary.
This reverts commit d872562942
.
2009-07-18 19:13:37 +02:00
Nikolas Garofil
d872562942
Undid last 3 commits, see rest of the comment for the reason:
...
I am not really comfortable with adding support to the conky-code
for sites that only work when you register, that's more something
for in a script.
But the biggest reason I undid the commits is that it is now
impossible to compile conky with support for weather if you don't
have the xml libs installed. Users used to be able to compile with
support for weather (using the other site) without xml2.
If you really want to include this other site in the conky code
then split WEATHER in WEATHERCOM and WEATHERNOAA (altough my personal
opinion is that weather.com should only be supported with scripts)
2009-07-18 16:22:43 +02:00
Cesare Tirabassi
7b38e810f2
add one missing ifdef to conditionally compile weather code
2009-07-18 16:07:17 +02:00
Cesare Tirabassi
806b840646
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-07-18 16:00:49 +02:00
Cesare Tirabassi
46fc4a0564
Added www.weather.com as an additional source of weather data
2009-07-18 15:59:43 +02:00
Nikolas Garofil
4284490080
If nothing is read, n1 and n2 are not guaranteed to be 0
2009-07-18 11:37:15 +02:00
Nikolas Garofil
b94569b27b
Fix reloading config without X11
2009-07-18 10:49:16 +02:00
Cesare Tirabassi
cba36f279b
weather: use expf if --enable_math is given, otherwise use fast 3rd order approximation
2009-07-18 07:57:04 +02:00
Nikolas Garofil
85deafa500
Fix bug in $scroll (if there were only 2 args the 2nd couldn't be numerical)
2009-07-18 01:15:09 +02:00
Nikolas Garofil
e905c7d4f1
Fix building without X11 after commit 20d4c4370a
2009-07-17 18:37:46 +02:00
Nikolas Garofil
20d4c4370a
Fix memleaks when reloading configuration and place same parts of main() and reload_config() in a seperate function
2009-07-17 18:01:41 +02:00
Nikolas Garofil
06de5573e8
Fix a lot of unimportant memleaks caused by a CRIT_ERR
2009-07-16 20:28:23 +02:00
Nikolas Garofil
63a8c677b3
Show warnings when not running in X and vars like desktop or monitor are used
2009-07-16 00:31:22 +02:00
Nikolas Garofil
4ec308ef12
Fix freeing unregistered mem when build when running without X
2009-07-15 23:55:22 +02:00
Nikolas Garofil
4c241bbf16
Fix all memleaks that are clearly visible,
...
the default config should now run without memleaks, valgrind will
still report memleaks caused by the own_window-lines and the xft-lines
(in some cases) but those are caused by code that's not part of conky
2009-07-15 16:33:18 +02:00
Nikolas Garofil
4addf71241
Make 16768a5ad4
C90-compliant
2009-07-14 19:17:14 +02:00
Cesare Tirabassi
1e5bc370e4
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-07-14 18:47:00 +02:00
Cesare Tirabassi
16768a5ad4
Fix Property Change Events are passes also to OWN_WINDOW
2009-07-14 18:46:15 +02:00
Nikolas Garofil
cd92949e67
Fix strange effects on desktop caused by 4a14668772
2009-07-14 18:10:43 +02:00
Nikolas Garofil
cfa94a967b
Fix memleaks introduced by g7bbde2b
2009-07-14 18:05:49 +02:00
Nikolas Garofil
d75fb18bf8
Fix building with strict compilers
2009-07-14 17:43:27 +02:00
Cesare Tirabassi
7bbde2be73
refactored desktop info code so that its only called on X property events; TO DO doesn't work with own_window
2009-07-14 16:57:51 +02:00
Nikolas Garofil
4a14668772
Fix a part of the memleaks in the X-related code,
...
if you remove all lines above TEXT in defconfig.h,
then it should run without memleaks.
2009-07-14 16:07:33 +02:00
Nikolas Garofil
c924bbe194
Fix memleaks when running with total_run_times
2009-07-14 12:47:24 +02:00
Brenden Matthews
0352b96f39
Use OBJ_THREAD() for weather, get rid of pointless return.
2009-07-13 16:11:21 -06:00
Brenden Matthews
73194dee89
Merge branch 'master' of git.omp.am:/home/omp/git/conky
2009-07-13 15:21:42 -06:00
Brenden Matthews
74c19cf8e4
Fix minor $weather memleak.
2009-07-13 15:21:25 -06:00
Cesare Tirabassi
602edfea15
Fix compilation with --disable-own-window (sf.net #2820716 )
2009-07-13 23:19:32 +02:00
Nikolas Garofil
ed4d2ce0b1
Remove old,unused desktop-finding code
2009-07-13 17:32:33 +02:00
Nikolas Garofil
448476317f
Fix minor memleak (fonts)
2009-07-13 15:04:57 +02:00
Cesare Tirabassi
6793959916
weather: removed constraints of 3 locations per uri from docs; corrected possible buffer overflow
2009-07-13 11:31:20 +02:00