Commits (30)
-
Martin Bürgmann authored
tracks the FdbFeedbackSounds in a GHashTable in the FdbDevSound
4ba2889b -
Guido Gunther authoredc95009af
-
Guido Gunther authored
This is not an error per se.
0a5dac1e -
Guido Gunther authored
Don't leak the error values in the success case
8c8382a0 -
Guido Gunther authoredd6e3df7e
-
Guido Gunther authored53a02c71
-
Clayton Craft authored
If the trigger is the last thing in sysfs_path/LED_TRIGGER_ATTR, then the new-line at the end of the output causes g_strv_contains to fail to find the trigger in the list. This strips the new-line before splitting the output into a list for searching. You can see the problem this patch fixes with the librem 5, by: $ rmmod ledtrig-timer # or whatever is listed at the end, so 'pattern' is the last thing $ cat /sys/devices/platform/pwmleds/leds/blue:status/trigger [none] kbd-scrolllock ... pattern $ fbd-ledctrl -p /sys/devices/platform/pwmleds/leds/blue:status -t pattern Failed to set perms of /sys/devices/platform/pwmleds/leds/blue:status/pattern to 101: No such file or directory $ modprobe ledtrig-timer $ cat /sys/devices/platform/pwmleds/leds/blue:status/trigger [none] kbd-scrolllock ... pattern timer $ fbd-ledctrl -p /sys/devices/platform/pwmleds/leds/blue:status -t pattern <success>
2674654c -
Sebastian Spaeth authored
It is TriggerFeedback and not Feedback (anymore). Also add a note how to end the feedback in order to prevent loss of hearing :-).
ec80c278 -
Guido Gunther authoredda537aff
-
Guido Gunther authored0936b5fb
-
Guido Gunther authored
This matchs phosh's style.
abab07a2 -
Guido Gunther authored
This allows us to store the DBus sender
66bcb31a -
Guido Gunther authoreddc8c8c95
-
Guido Gunther authored
When the client goes away we build up a list of events to end feedback for to make sure the hash table isn't modified in place. tThe alternative approach would be to disconnect the on_event_feedbacks_ended handler, duplicate the DBus signal emission and use g_hash_table_foreach_remove but that looks less robust than using the same code path. Closes: #25
04648dcf -
dc68afdf
-
9169d8b2
-
So far we only unref'ed the device.
d7419f37 -
g_enum_to_string() is transfer full.
d8f944ed -
g_ascii_strdown() creates a copy already.
957fa1be -
The current logic was fragile and failed e.g. when the FEEDBACKD_UDEV_VAL_LED would not match leaking the dev since the g_object_unref() at the end of the loop was never hit. Prevent that with automatic cleanup and explicitly ref'ing the devs we want to use.
4c30fafc -
This went unnoticed since the manager forgot to cleanup this at all (see follow up commit).
11aa38ba -
Fixes another leak.
437b19ed -
It's assigned multiple times.
9c9f7679 -
678ae7a2
-
Guido Gunther authored48b4bb97
-
Evangelos Ribeiro Tzaras authored63eba5d7
-
Andreas Hartmann authored
Previously, assembly of the theme paths for custom paths (based on `XDG_DATA_DIRS`) was performed using `g_strconcat`, which produced erroneous file paths with missing path separators due to a typo in the code. Instead, make use of `g_build_filename` to assemble the theme paths from `XDG_DATA_DIRS` to look for custom themes, which automatically introduces host-specific path separators between individual path components. This introduces another temporary variable to ensure that the filename (which is itself assembled from a name and the file ending) isn't mangled by introduction of a path separator between these two "parts".
1c534640 -
Andreas Hartmann authored
The README currently states that feedbackd uses the `default.json` theme, whose location is hardcoded into the application. This doesn't reflect the current state of the code. Explain the ability to add custom themes and give some examples to the user. Also mention the `feedbackd-device-themes` repository explicitly for users looking to modify the current `default.json` theme. Adds explanations about the correct naming of custom theme files and theme file precedence when multiple themes exist.
b4546808 -
Pablo Correa Gómez authored
This would allow users to create their own feedback profiles without editing system files or using root privileges Signed-off-by:
Pablo Correa Gómez <ablocorrea@hotmail.com>
3802c89e -
Evangelos Ribeiro Tzaras authored
Phosh recently changed to XDG_CURRENT_DESKTOP=GNOME:Phosh and has since stopped using the configured theme and instead used the fallback freedesktop theme. Closes #41
1ed04e40
.dir-locals.el
0 → 100644