diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-02-28 16:11:01 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-02-28 17:34:47 +0100 |
commit | cf42441b43aec2e0457ec6e4dfdf2af8e58ac716 (patch) | |
tree | 8d985efbf2a7a35f6aa05a8ef4b27fd3a830a305 /src/utils.c | |
parent | 78b5e71b2130f78bed2583041a346ee837f0ee7d (diff) | |
download | libayatana-common-cf42441b43aec2e0457ec6e4dfdf2af8e58ac716.tar.gz libayatana-common-cf42441b43aec2e0457ec6e4dfdf2af8e58ac716.tar.bz2 libayatana-common-cf42441b43aec2e0457ec6e4dfdf2af8e58ac716.zip |
src/utils.(c|h): Add ayatana_common_utils_is_ubuntutouch() function.
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index 0a33a74..712b060 100644 --- a/src/utils.c +++ b/src/utils.c @@ -74,6 +74,12 @@ ayatana_common_utils_is_lomiri () } gboolean +ayatana_common_utils_is_ubuntutouch () +{ + return is_xdg_current_desktop(DESKTOP_UBUNTUTOUCH, SESSION_UBUNTUTOUCH); +} + +gboolean ayatana_common_utils_is_gnome () { return is_xdg_current_desktop(DESKTOP_GNOME, SESSION_GNOME); |