aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-03-30 15:57:06 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-03-30 15:57:06 +0200
commit8b8c30fc84d107bf4ec13e3d06f1ea81e1001f97 (patch)
tree2e9d6d5c318f1b20eb9a57e51de95b9e8cdd068a /src
parent73bd95fde4364cd7e881ce27321e509159704901 (diff)
parent18179a11648f23599e7c3a27d56680884d7c0f0f (diff)
downloadlibayatana-common-8b8c30fc84d107bf4ec13e3d06f1ea81e1001f97.tar.gz
libayatana-common-8b8c30fc84d107bf4ec13e3d06f1ea81e1001f97.tar.bz2
libayatana-common-8b8c30fc84d107bf4ec13e3d06f1ea81e1001f97.zip
Merge branch 'tari01-pr/add-budgie'
Attributes GH PR #9: https://github.com/AyatanaIndicators/libayatana-common/pull/9
Diffstat (limited to 'src')
-rw-r--r--src/utils.c7
-rw-r--r--src/utils.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 38ad1d8..152f226 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,5 +1,6 @@
/*
* Copyright 2021 Marius Gripsgard <marius@ubports.com>
+ * Copyright 2021 Robert Tari <robert@tari.in>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -82,6 +83,12 @@ is_pantheon ()
return is_xdg_current_desktop(DESKTOP_PANTHEON);
}
+gboolean
+is_budgie ()
+{
+ return is_xdg_current_desktop(DESKTOP_BUDGIE);
+}
+
// Bit of a hacky way? should use xdg open
char *
find_browser ()
diff --git a/src/utils.h b/src/utils.h
index 52e491f..60c5ed4 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,5 +1,6 @@
/*
* Copyright 2021 Marius Gripsgard <marius@ubports.com>
+ * Copyright 2021 Robert Tari <robert@tari.in>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -25,6 +26,7 @@
#define DESKTOP_GNOME "GNOME"
#define DESKTOP_XFCE "XFCE"
#define DESKTOP_PANTHEON "PANTHEON"
+#define DESKTOP_BUDGIE "Budgie"
gboolean is_lomiri();
gboolean is_unity();
@@ -32,6 +34,7 @@ gboolean is_gnome();
gboolean is_mate();
gboolean is_xfce();
gboolean is_pantheon();
+gboolean is_budgie();
gboolean execute_command(const gchar * cmd);
gboolean open_url(const gchar * url);