Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | demote a spurious warning to a debug message | Charles Kerr | 2021-08-28 | 1 | -1/+1 | |
| | ||||||
* | don't disable the warning sound when AccountServices is completely unavailable | Charles Kerr | 2021-08-28 | 1 | -3/+10 | |
| | ||||||
* | move sound-player-mock into the tests/ directory | Charles Kerr | 2021-08-28 | 3 | -171/+1 | |
| | ||||||
* | fix copy-paste typo | Charles Kerr | 2021-08-28 | 1 | -1/+1 | |
| | ||||||
* | assume we're in silent mode if we can't get an accounts-service proxy | Charles Kerr | 2021-08-28 | 1 | -2/+6 | |
| | ||||||
* | add a leak safeguard to accounts_service_sound_proxy | Charles Kerr | 2021-08-28 | 1 | -0/+1 | |
| | ||||||
* | add build-dep to accountsservice-ubuntu-schemas instead of bundling ↵ | Charles Kerr | 2021-08-28 | 3 | -54/+27 | |
| | | | | com.ubuntu.touch.AccountsService.Sound.xml into our source tree | |||||
* | handle service_set_notifier(NULL) gracefully | charles kerr | 2021-08-28 | 1 | -2/+6 | |
| | ||||||
* | update copyright dates on changed files (again) | charles kerr | 2021-08-28 | 3 | -8/+8 | |
| | ||||||
* | honor com.ubuntu.touch.AccountsService.Sound.SilentMode | charles kerr | 2021-08-28 | 3 | -1/+115 | |
| | ||||||
* | use a symbolic constant for the low battery sound's filename | charles kerr | 2021-08-28 | 1 | -1/+1 | |
| | ||||||
* | fix another touched file's copyright date | charles kerr | 2021-08-28 | 1 | -4/+4 | |
| | ||||||
* | fix notifier property in service | charles kerr | 2021-08-28 | 1 | -0/+7 | |
| | ||||||
* | in Notifier's destructor, unref its SoundPlayer field | charles kerr | 2021-08-28 | 1 | -0/+1 | |
| | ||||||
* | update copyright years on changed/new files | charles kerr | 2021-08-28 | 8 | -20/+20 | |
| | ||||||
* | make a SoundPlayer interface so we can mock it in the tests | charles kerr | 2021-08-28 | 13 | -60/+546 | |
| | | | | | | | | this requires an annoying amount of scaffolding: 1. implement gst and mock classes to implement the SoundPlayer interface 2. modify notifier to take a SoundPlayer argument in its ctor 3. modify service to take a Notifier argument in its ctor instead of instantiating it on its own 4. change main to update the startup steps for player/notifier/service | |||||
* | use gstreamer to play the sound | charles kerr | 2021-08-28 | 3 | -5/+82 | |
| | ||||||
* | add logic to call sound_play_file() when the low battery notification is shown | charles kerr | 2021-08-28 | 4 | -1/+92 | |
| | ||||||
* | add an XDG friendly way of finding app-specific datafiles | charles kerr | 2021-08-28 | 3 | -0/+109 | |
| | ||||||
* | Don't prioritize discharging items with no time estimate that have more than ↵ | Marc Deslauriers | 2021-08-28 | 1 | -6/+14 | |
| | | | | | | | | | | | | | | 10% power remaining. Devices with no time estimates are most likely low-power devices that have long-lasting batteries, such as a mouse with AA batteries. For those type of devices that contain batteries that last weeks, there is no value in displaying their status in preference to devices that have a rapid charge/discharge cycle. However, there is value in knowing if the device has a battery that needs replacing imminently, so only display it if it falls to a 10% charge or under. | |||||
* | Use prefixed libayatana-common symbols | Robert Tari | 2021-05-17 | 2 | -12/+12 | |
| | ||||||
* | src/utils.(ch): Drop local zenity_warning and use libayatana-common. | Robert Tari | 2021-05-04 | 2 | -48/+0 | |
| | | | | Fixes AyatanaIndicators/ayatana-indicator-power#20 | |||||
* | Revert "Fix percentage for mice and keyboards" | Mike Gabriel | 2021-05-04 | 1 | -17/+1 | |
| | | | | | | | This reverts commit f94ffac7f36831dd8a79f30d5b94de9758fcd3a6. The original commit entirely broke unit tests. Next revision should adjust unit tests (or not break them). | |||||
* | Add us to the copyright headers | Robert Tari | 2021-05-03 | 1 | -0/+2 | |
| | ||||||
* | Fix percentage for mice and keyboards | Robert Tari | 2021-05-03 | 1 | -1/+17 | |
| | ||||||
* | Always show indicator, use icon policy only on Lomiri | Robert Tari | 2021-05-03 | 1 | -0/+5 | |
| | ||||||
* | Add Budgie desktop support. | Robert Tari | 2021-05-03 | 2 | -2/+2 | |
| | | | | Fixes AyatanaIndicators/ayatana-indicator-power#2 | |||||
* | Add us to the copyright headers | Robert Tari | 2021-05-03 | 3 | -0/+4 | |
| | ||||||
* | Move redundant code portions into libayatana-common and build against it. | Robert Tari | 2021-05-03 | 3 | -128/+2 | |
| | ||||||
* | Port from URL Dispatcher to Lomiri URL Dispatcher. | Mike Gabriel | 2021-02-03 | 1 | -2/+2 | |
| | ||||||
* | service.c: Drop indicator settings items | Robert Tari | 2020-11-16 | 1 | -8/+0 | |
| | ||||||
* | Do not call the power settings handler if the command is unknown | Robert Tari | 2020-09-04 | 1 | -1/+4 | |
| | | | | Fixes AyatanaIndicators/ayatana-indicator-power#12. | |||||
* | Fix deprecations and build warnings. | Robert Tari | 2020-09-04 | 3 | -18/+7 | |
| | | | | Fixes AyatanaIndicators/ayatana-indicator-power#9. | |||||
* | Whitespace fix | Robert Tari | 2020-09-03 | 1 | -4/+4 | |
| | ||||||
* | Replace x-canonical attributes | Robert Tari | 2020-08-11 | 1 | -7/+7 | |
| | ||||||
* | Try to detect if flash needs to be enabled (latched) separately | Florian Leeber | 2020-08-06 | 1 | -8/+23 | |
| | ||||||
* | flashlight: Add more brightness file paths | Alfred Neumayer | 2020-08-06 | 1 | -2/+6 | |
| | ||||||
* | Do not divide by battery size if percent less than 0.01 | BirdZhang | 2020-08-06 | 1 | -2/+4 | |
| | ||||||
* | src/service.c: Adapt indicator attribute for flashlight switch to ayatana-ido. | Mike Gabriel | 2018-03-25 | 1 | -1/+1 | |
| | ||||||
* | src/flashlight.c: Cast char* from const char* when assigning flash_sysfs_path. | Mike Gabriel | 2018-03-25 | 1 | -1/+1 | |
| | ||||||
* | Added warning to avoid overheating of the LED. | Jan Sprinz (NeoTheThird) | 2018-03-25 | 3 | -4/+20 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Ported from UBports power indicator: commit ef020b31be15f1126d3e5ea5ec399179aad586b8 Author: Jan Sprinz (NeoTheThird) <neo@neothethird.de> Date: Sat Sep 16 16:02:50 2017 +0200 Forgot semicolon *blush* commit c8be2d9a142e17bdfa86ee68e23a18ba0680c244 Author: Jan Sprinz (NeoTheThird) <neo@neothethird.de> Date: Sat Sep 16 15:53:29 2017 +0200 Change var name commit 3d6a37503bafcbf397220dcfac5624a686f2f900 Author: Jan Sprinz (NeoTheThird) <neo@neothethird.de> Date: Sat Sep 16 14:24:05 2017 +0200 Added warning to avoid overheating of the LED Ported-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | |||||
* | Ignore batt_therm devices. | Marius Gripsgard | 2018-03-25 | 1 | -2/+11 | |
| | | | | | | | | | | | | | | | | Ported from UBports power indicator: commit 431114ed4f6d457822655ad57901e7e640f99bca Author: Marius Gripsgard <mariogrip@ubuntu.com> Date: Sun Aug 13 00:08:05 2017 +0200 Ignore "batt_therm" devices (fixes: https://github.com/ubports/ubports-touch/issues/94) This ignores "batt_therm" devices since they do not provide correct values. "batt_therm" is only used for temperature of the battery and seems to appear as a "battery" device in upower Ported-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | |||||
* | Add basic flashlight support. | Marius Gripsgard | 2018-03-25 | 4 | -0/+128 | |
| | | | | | | | | | | | | | | | | | | | | Ported from UBPorts power indicator: commit efef6f25f378021c99b3078958482b3c4ffc43a2 Author: Marius Gripsgard <mariogrip@ubuntu.com> Date: Sun Aug 13 00:09:01 2017 +0200 Add support for other flashlight sysfs paths commit 3f4339876ddb586b75a73fab51a54b1d4d54fdd1 Author: Marius Gripsgard <mariogrip@ubuntu.com> Date: Fri Jul 28 21:23:54 2017 +0200 Add basic support for QCOM flashlight, Fixes https://github.com/ubports/ubports-touch/issues/79 This does not work on non QCOM devices Ported-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | |||||
* | src/utils.(c|h): Use XDG_CURRENT_DESKTOP for XFCE as well, in order to ↵ | Mike Gabriel | 2018-03-21 | 2 | -1/+23 | |
| | | | | detect that -power indicator is used on an XFCE desktop. | |||||
* | src/{service.c,utils.c}: Fix grammar flaw in zenity warning. | Mike Gabriel | 2018-03-16 | 2 | -2/+2 | |
| | ||||||
* | Use coverage support from cmake-extras. | Rodney Dawes | 2018-03-16 | 1 | -3/+3 | |
| | ||||||
* | Add fallback code that produces a warning (using zenity), if we don't know ↵ | Mike Gabriel | 2018-03-15 | 3 | -0/+61 | |
| | | | | how to handle certain actions. | |||||
* | src/utils.c: Use our desktop detection functions for find a way to open an ↵ | Mike Gabriel | 2018-03-15 | 1 | -3/+4 | |
| | | | | appropriate power settings dialog. | |||||
* | src/utils.c: Add is_pantheon() function. | Mike Gabriel | 2018-03-15 | 2 | -0/+22 | |
| | ||||||
* | src/service.c: Use desktop detection functions in 'on_statistics_activated()'. | Mike Gabriel | 2018-03-12 | 1 | -3/+3 | |
| |