summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2021-02-04up-tool: Catch NULL return for more upower API callsBenjamin Berg1-0/+8
This can lead to crashes if the communication with the daemon fails. See https://bugzilla.redhat.com/show_bug.cgi?id=1922777
2018-05-31lib: Add a new version of up_client_get_devices which unrefs contentsRobert Ancell1-2/+2
The existing function didn't set the free function on the GPtrArray. This means a libupower user can easily make a mistake in the reference counting of the array contents.
2016-05-18up-tool: Exit early when connecting to upower failsMartin Pitt1-1/+6
This avoids spewing dozens of assertions like libupower-glib-CRITICAL **: up_client_get_devices: assertion 'UP_IS_CLIENT (client)' failed libupower-glib-CRITICAL **: up_device_get_object_path: assertion 'UP_IS_DEVICE (device)' failed and useless default values and then exiting successfully (which might confuse users or scripts trying to parse the output). Use the new up_client_new_full() constructor so that we get a proper GError. Side issue in https://bugs.freedesktop.org/show_bug.cgi?id=95350
2015-08-10Fix build regressionArnaud Quette1-0/+1
The removal of dbus-glib and libdbus build dependencies has introduced a build regression on upower, which fails to link with gobject Signed-off-by: Richard Hughes <richard@hughsie.com>
2015-07-29build: remove dependency on dbus-glib and libdbusCosimo Cecchi1-2/+0
Nothing depends on it any more.
2015-07-29up-tool: remove unused variablesCosimo Cecchi1-2/+0
2014-05-07all: Remove IsDocked propertyBastien Nocera1-1/+0
Removes the deprecated (for not very long) property, before we do a 1.0 release. https://bugs.freedesktop.org/show_bug.cgi?id=78380
2014-05-07tools: Remove is-docked from up-toolBastien Nocera1-3/+1
2013-10-17tools: Update for lib API changesBastien Nocera1-18/+2
2013-10-17tools: Use notify signals instead of *changed onesBastien Nocera1-4/+20
2013-10-17all: Add GetCriticalAction daemon methodBastien Nocera1-0/+4
This allows desktop front-ends to get which action will actually be taken when we hit critical battery. This is not a property as availability of actions might change over the course of the run of the system, and we didn't want to make unnecessary D-Bus calls on startup.
2013-10-17all: Remove WarningLevel from the daemon propertiesBastien Nocera1-2/+0
The WarningLevel property just replicated the warning level on the display device, or at least should have. So we fix the latter to remove the former.
2013-10-17tools: Print the display device when using -dBastien Nocera1-0/+10
2013-10-14tools: Update for API changesBastien Nocera1-3/+3
2013-10-14tools: Remove use of deprecated featuresBastien Nocera1-12/+0
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-05-07Use PIE to better secure installed tools and also use full RELRO in the daemonRichard Hughes1-1/+4
2013-02-12Add a --enable-deprecated configure argumentRichard Hughes1-0/+6
This is turned off by default. If this is not set, then any calls to Suspend(), SuspendAllowed(), Hibernate() or HibernateAllowed() will fail with an error. The error mesage tells the user what new method to port to in logind. I'm expecting to set --enable-deprecated for Fedora 17 and 18, but turn it off for Fedora 19, so other distributions probably want to follow suit to find out what other stuff needs to be ported to the new APIs early. GNOME should already be fine, but KDE will need some solid porting as I understand it. See http://lists.freedesktop.org/archives/devkit-devel/2013-January/001339.html for more information on future plans and for rationale.
2013-01-14Don't use the deprecated INCLUDES in Makefile.amRichard Hughes1-1/+1
2012-11-08Fix "can-hibernate" formatting in upower --dumpMartin Pitt1-1/+1
All other field names end with a colon, so that one should, too.
2011-07-19Use git.mk and remove the manual .gitignore filesRichard Hughes2-8/+2
2011-03-21upower needs -pthreadLandry Breuil1-0/+2
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-02-23Drop devkit and devkit-power-daemon symlinksMichael Biebl1-3/+0
Signed-off-by: Richard Hughes <richard@hughsie.com>
2011-01-04linux: use the number of active DRM devices to determine the system docked ↵Richard Hughes1-1/+4
status Not ideal, but better than relying on ACPI.
2010-11-01Port from EggDebug to the GLib built-in logging frameworkRichard Hughes4-9/+3
2010-03-26Ensure we enumerate devices before we start monitoring themRichard Hughes1-0/+5
2010-02-06Update help and g_option_context_new to upowerMichael Biebl1-3/+3
2010-02-05trivial: fix a compile warningRichard Hughes1-0/+1
2010-02-05Use GCancellable in libupower-glib so we can eventually get to GIO async ↵Richard Hughes1-5/+5
methods without breaking future API
2010-02-05Make the upower client tool use libupwer-glib, rather than devit-power-gobjectRichard Hughes2-63/+84
2010-02-05Remove EGG_* log define.Michael Biebl1-4/+0
The EGG_* log defines don't seem to be used and still reference the old DeviceKit-power name. So just remove it.
2010-01-21Rename the man pages and rename the main daemon binary nameRichard Hughes1-1/+1
2010-01-21Make the client tool be called upower, but maintain a symlink to devkit-powerRichard Hughes3-31/+8
2010-01-18Rename the DBus service from org.freedesktop.DeviceKit.Power to ↵Richard Hughes1-2/+2
org.freedesktop.UPower
2010-01-18trivial: rename some internal defines for the upower moveRichard Hughes1-3/+3
2010-01-18trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ↵Richard Hughes2-12/+12
ABI changes
2009-11-23Update some common egg code for better debugging supportRichard Hughes1-3/+1
2009-10-22When using devkit-power --monitor, print a timestamp before each message for ↵Richard Hughes1-4/+38
debugging. Fixes fd#24666
2009-09-18Convert the property names to be FirstLetterCaps rather than dash-dash so ↵Richard Hughes1-1/+1
KDE people can use the DBus interface
2009-09-11Fix up a few problems spotted by clangRichard Hughes1-7/+19
2009-07-03I must learn to spell deprecated...Richard Hughes1-1/+1
2009-07-03Protect the non-GObject accessors with DKP_DISABLE_DEPRECIATED and fix up ↵Richard Hughes2-8/+37
the client tool
2009-05-05Add a property lid-is-closed so that we can finally drop the HAL dep in ↵Richard Hughes1-0/+1
g-p-m and x-p-m
2009-04-22Add a has-capability to the org.freedesktop.DeviceKit.Power.Wakeups ↵Richard Hughes1-17/+44
interface so clients can tell if the wakeups functionality can be supported
2009-04-01trivial: print the error message from dkp-toolRichard Hughes1-2/+4
2009-02-27trivial: add lots of GErrors to the gobject library, and avoid using egg_warningRichard Hughes1-7/+15
2009-02-27move the library directory from libdevkit-power to devkit-power-gobjectRichard Hughes1-2/+2
2009-02-26trivial: fix make distcheckRichard Hughes1-11/+12
2009-02-26bugfix: remove use of EggObjList, which was pretty hacky, and try to make ↵Richard Hughes1-0/+1
the library more sane