aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-21 22:22:21 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-27 16:29:28 +0100
commit5b53d364c64602c3dee72210b4ed9320e4d0efa3 (patch)
tree1e6c2bca3e004f418ea7f90882cb2f2524a97399 /src/service.c
parent8e57201526a2e2a0a585ebadb498fb26b74edc12 (diff)
downloadayatana-indicator-session-5b53d364c64602c3dee72210b4ed9320e4d0efa3.tar.gz
ayatana-indicator-session-5b53d364c64602c3dee72210b4ed9320e4d0efa3.tar.bz2
ayatana-indicator-session-5b53d364c64602c3dee72210b4ed9320e4d0efa3.zip
src/{service.c,dbus-backends/actions.c}: Special treatment if running in an Ubuntu Touch session for desktop help, distro help and bug reporting URL.
Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index d467859..159ee80 100644
--- a/src/service.c
+++ b/src/service.c
@@ -379,8 +379,18 @@ create_admin_section (IndicatorSessionService * self)
{
GMenu * menu;
priv_t * p = self->priv;
- gchar * desktop_help_label = g_strdup_printf(_("%s Help"), get_desktop_name());
- gchar * distro_help_label = g_strdup_printf(_("%s Help…"), get_distro_name());
+ gchar * desktop_help_label = NULL;
+ gchar * distro_help_label = NULL;
+ if (g_strcmp0(get_desktop_session(), "ubuntu-touch") == 0)
+ {
+ desktop_help_label = g_strdup(_("About Ubuntu Touch…"));
+ distro_help_label = g_strdup(_("About UBports Foundation…"));
+ }
+ else
+ {
+ desktop_help_label = g_strdup_printf(_("%s Help"), get_desktop_name());
+ distro_help_label = g_strdup_printf(_("%s Help…"), get_distro_name());
+ }
menu = g_menu_new ();
if (ayatana_common_utils_is_lomiri()) {