summaryrefslogtreecommitdiff
path: root/src/up-main.c
AgeCommit message (Collapse)AuthorFilesLines
2014-11-26daemon: fix dbus proxy leak on shutdownPeter Wu1-1/+3
Fixes leaking some DBus objects on shutdown, causing noise in gobject-list and valgrind logs. https://bugs.freedesktop.org/show_bug.cgi?id=82659
2014-11-26daemon: release resources at shutdownPeter Wu1-0/+1
This makes it easier to find real memory leaks with valgrind. After calling the up_backend_unplug functions, you cannot restart it with up_backend_coldplug since the lists are cleared. Tested with Linux only (not on *BSD; dummy compiles). https://bugs.freedesktop.org/show_bug.cgi?id=82659
2013-10-26daemon: Better timeout source namingBastien Nocera1-2/+4
Matching the work done in glib, gtk+, etc. This also differentiates the unknown and normal timeouts in the Linux power supply driver.
2013-10-14daemon: Require newer GLibBastien Nocera1-31/+1
And remove ifdef's.
2013-10-14Remove QoS interfaceBastien Nocera1-5/+0
It was added for some workloads, but ill-suited and never really got traction. Using cgroups to manage the resources of particular services (using systemd), or something separate like rtkit is a better bet.
2013-10-14daemon: Fix options parsingBastien Nocera1-1/+5
If an unknown option was passed to the daemon, it might fail to parse some of the passed options, and not take them into account. For example: "upower -d --timed-exit" would fail to exit Error out when an unknown option is passed.
2013-09-04Set locale in daemon and toolShih-Yuan Lee (FourDollars)1-0/+2
This is necessary to properly show non-UTF8 strings in debug mode (for the daemon) and upower --dump etc. (for the tool).
2013-08-29trivial: Stop calling deprecated g_type_init()Martin Pitt1-0/+2
When building with a recent enough glib (>= 2.36), don't call g_type_init() any more. This is deprecated and causes ugly compile warnings.
2013-02-20Revert "Add option to run daemon on the session bus for testing"Martin Pitt1-6/+1
This reverts commit eddcf0ef3d0b8445618e368328d7e110a83b69b3. We don't need the --test option any more now that we always run tests on a (fake) system D-BUS.
2011-09-28Filter all the debugging details unless --verbose is specifiedRichard Hughes1-0/+67
Now systemd is pushing all our debugging to syslog, we're upsetting some people.
2011-08-31Use g_unix_signal_add_full() which has been renamed in the unstable GLib branchDenis Washington1-8/+8
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-05-23Only include glib-unix.h if the GLib version is >= 2.29.4Richard Hughes1-3/+3
Many thanks to Takahiro HASHIMOTO for debugging the problem. Fixes fdo#37489
2011-04-28Use the new threadsafe signal handling support in GLibRichard Hughes1-0/+29
If the version of Glib is too old, we continue to use the old non-threadsafe version.
2011-04-26Add option to run daemon on the session bus for testingMartin Pitt1-1/+6
Add a daemon option --test which will run upowerd on the session bus. This allows us to run tests without interfering with the system instance. This also avoids any root privileges entirely, which permits running integration tests as part of a package build.
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes1-13/+10
2010-10-11Add support for controlling leds keyboard backlightsAlex Murray1-0/+5
Add a new DBus interface based on the QoS one to provide for controlling a keyboard backlight via the Linux leds interface. Signed-off-by: Richard Hughes <richard@hughsie.com>
2010-06-05Assign names to our idle sources when using new versions of glib2Richard Hughes1-2/+7
This makes it possible to profile more accurately using systemtap
2010-02-05Use the new project name in g_option_context_newMichael Biebl1-1/+1
2010-01-27Update the Free Software Foundation addressRichard Hughes1-1/+1
2010-01-21Rename the man pages and rename the main daemon binary nameRichard Hughes1-1/+1
2010-01-18Rename the DBus service from org.freedesktop.DeviceKit.Power to ↵Richard Hughes1-1/+1
org.freedesktop.UPower
2010-01-18trivial: rename some internal defines for the upower moveRichard Hughes1-10/+10
2010-01-18trivial: DkpWakeups -> UpWakeups (no ABI or API break)Richard Hughes1-2/+2
2010-01-18trivial: DkpQos -> UpQos (no ABI or API break)Richard Hughes1-2/+2
2010-01-18trivial: DkpDaemon -> UpDaemon (no ABI or API break)Richard Hughes1-3/+3
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes1-0/+215
ABI changes