Pavel Labath
5a7ec7fb0b
Simplify exception handling and get rid of conky::critical_error
...
As i said in my rant somewhere, it's up to the person catching the exception to decide if the
error is critical or not. The person throwing the exception should specify the type of error and
that's where his job ends.
2010-11-21 22:44:04 +01:00
Pavel Labath
5c49c52a0b
make convert.lua "bimodal"
...
it does The Right Thing(tm) both when called from conky and as standalone
2010-11-21 22:26:35 +01:00
Nikolas Garofil
b5216499c2
Don't quit when configfiles are deleted
2010-11-21 16:56:50 +01:00
Nikolas Garofil
b0e1c3d8a5
Remove useless try-catch
2010-11-21 15:46:42 +01:00
Nikolas Garofil
bce7064cdb
Bugfix: segfault at config reload
2010-11-21 14:32:59 +01:00
Nikolas Garofil
a87c3ee205
Shrink code
2010-11-21 00:23:27 +01:00
Nikolas Garofil
199f8876fb
Fix leaks that happen when there is no config available (these are only tiny leaks because conky will shutdown anyway when there is no config available)
2010-11-21 00:05:20 +01:00
Nikolas Garofil
559d4ebb53
clean up code a bit
2010-11-19 15:52:21 +01:00
Nikolas Garofil
5d28bed7db
Support for old config syntax (Optional)
2010-11-19 14:27:18 +01:00
Nikolas Garofil
e19f1c76a9
Some errormessages
2010-11-18 00:36:36 +01:00
Pavel Labath
ad79c87376
Merge remote branch 'origin/master' into lua-config
...
Conflicts:
src/conky.cc
2010-11-16 22:55:33 +01:00
Nikolas Garofil
8123e447e2
Replace a CRIT_ERR in combine by trying,throwing and catching
...
PS: I want to replace all similar CRIT_ERR's like this, opinions ?
2010-11-16 13:41:44 +01:00
Nikolas Garofil
c671226a83
print_version() usable without quiting and replace all exit()-s in conky.cc
2010-11-15 17:07:38 +01:00
Nikolas Garofil
90eda7edbf
own_window and own_window_transparent should default to yes without option
2010-11-15 14:00:31 +01:00
Pavel Labath
97ac409903
Use real types instead of enums to distinguish exceptions
2010-11-15 00:24:49 +01:00
Nikolas Garofil
c2c06d0956
Fix memleak
2010-11-14 22:13:56 +01:00
Nikolas Garofil
5dd486d345
conky_error class replacing runtime_error
2010-11-14 18:19:46 +01:00
Nikolas Garofil
fbec1252a1
Merge branch 'master' into lua-config
2010-11-14 15:25:17 +01:00
Pavel Labath
17d4658242
Fix "Conky usually segfaults on config file changes" (sf.net #3100221 )
...
Someone needs to learn the difference between passing by value and passing by reference.
Bug reported by Kevin Lyles.
2010-11-14 14:34:39 +01:00
Nikolas Garofil
b5ff3eb411
Make lua required by cmake
2010-11-14 01:41:07 +01:00
Nikolas Garofil
4ac40e6054
Fix compiling without builtin config
2010-11-14 01:25:11 +01:00
Nikolas Garofil
e73da6b72e
Fix compiling without X11 support
2010-11-13 23:59:31 +01:00
Pavel Labath
c9df66f487
Merge remote branch 'origin/master' into lua-config
...
Conflicts:
src/conky.cc
src/logging.h
2010-11-13 20:17:46 +01:00
Pavel Labath
f33c65aed2
This was overkill
2010-11-13 20:11:29 +01:00
Pavel Labath
0852aa4fcd
Merge remote branch 'origin/master' into lua-config
...
Conflicts:
src/ccurl_thread.cc
src/conky.cc
src/llua.cc
src/logging.h
src/nvidia.cc
2010-11-13 20:05:59 +01:00
Nikolas Garofil
9d7a914515
Make I18N optional
2010-11-13 19:45:04 +01:00
Pavel Labath
375e21af07
Fix a small leak + some cleanup
2010-11-13 19:40:43 +01:00
Pavel Labath
a1f4984a4e
Make conky not crash on exit when using weather objects
2010-11-13 16:36:43 +01:00
Pavel Labath
9a08141389
Fix the "ISO C does not permit named variadic macros" in maintainer mode
...
and a few other that have cropped up in the process
2010-11-12 19:48:06 +01:00
Nikolas Garofil
47965eedbc
Fix memleak in is_disk()
2010-11-11 00:31:06 +01:00
Nikolas Garofil
b902b70e96
i18n-ize conky.cc
2010-10-31 20:01:20 +01:00
Pavel Labath
c9334eb071
Make conky (more-or-less) functional again
2010-10-31 18:17:22 +01:00
Nikolas Garofil
b98ebc90ee
Internationalization support
...
This patch adds i18n-support with gettext, all translatable strings in the
code should be placed inside _() to make sure users see them in their own
language (I only did this for print_version() for now)
2010-10-31 00:02:02 +02:00
Nikolas Garofil
11e5db2132
Fix memleak when there is no config available
...
The 'buf' string in current_config() got allocated but not deleted when
CRIT_ERR stops the program.
2010-10-24 17:57:58 +02:00
Kevin Lyles
56ddea77a8
Fixed foreground colors being semi-transparent
...
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-15 11:23:14 -07:00
Markus
c9cf08d9e9
Fix short_units for below kilo values.
...
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
2010-10-05 11:31:31 -07:00
Pavel Labath
1c785f2ab9
Remove obsolete config-file stuff, move slowly toward making conky functional again
2010-09-15 23:37:13 +02:00
Pavel Labath
bad23c7b77
Remove the --for-scripts hack. Maybe add it later?
2010-09-12 16:43:43 +02:00
Pavel Labath
0fd23a6f7e
Set CLOEXEC flag on the inotify file descriptor
2010-09-12 16:36:21 +02:00
Pavel Labath
eeb1a6a0d7
Properly load config file and print the default one
...
ps: the new implementation no longer requires fopencookie() and co.
2010-09-12 16:23:06 +02:00
Pavel Labath
e935a3d107
Call curl_global_cleanup() even in case of errors
2010-09-12 15:42:20 +02:00
Pavel Labath
8cb63b0c8b
Update the default config file to match new syntax
2010-09-12 15:31:18 +02:00
Pavel Labath
55282b64d8
Config file handling changes
...
- changed default config filenames, to avoid conflict with conky-1.x
- specifying "-" as config file reads from stdin
- if a user config file exists but is not readable, report an error instead of falling back to
the system-wide config.
2010-09-12 14:01:34 +02:00
Pavel Labath
4426a8fa5b
The --stdin-config param is kinda pointless, just use -c /dev/stdin
2010-09-12 13:50:47 +02:00
Pavel Labath
ef24f62412
Merge remote branch 'origin/master' into lua-config
...
Conflicts:
src/conky.cc
2010-09-11 14:50:37 +02:00
Pavel Labath
a111356ea4
Make music_player_interval a lua setting
2010-09-11 14:45:19 +02:00
Pavel Labath
47d9a63dff
Make update_interval{,_on_battery} lua settings
2010-09-11 14:25:19 +02:00
Pavel Labath
cd5e3f8fa0
Make font and xftalpha lua settings
2010-09-08 17:30:04 +02:00
Pavel Labath
9fc5b84a32
Make pop3 and imap lua settings
2010-09-07 17:39:36 +02:00
Pavel Labath
2978965368
Make total_run_times a lua setting
2010-08-31 11:49:37 +02:00