diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-11-10 19:23:20 +0300 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-11-10 19:56:14 +0300 |
commit | 288e12219359080b745324f79fb6c5c27ea04382 (patch) | |
tree | 16b93ae34d835089a2c0c37745f0a619693333aa /src/remmina.c | |
parent | a788dc5eca4be8dc5757a514b244b2c627a95afc (diff) |
int main(): print instructions how to enable a more verbose output of remmina
Only if G_MESSAGES_DEBUG is NOT set.
Diffstat (limited to 'src/remmina.c')
-rw-r--r-- | src/remmina.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/remmina.c b/src/remmina.c index 53c1fc4ff..58413c186 100644 --- a/src/remmina.c +++ b/src/remmina.c @@ -326,6 +326,19 @@ int main(int argc, char *argv[]) g_unsetenv("GDK_CORE_DEVICE_EVENTS"); + // Checking for environment variable "G_MESSAGES_DEBUG" + // Give the less familiar with GLib a tip on where to get + // more debugging information. + if(!getenv("G_MESSAGES_DEBUG")) { + g_message(_("Remmina does not log all output statements. To enable a " + "more verbose output please use G_MESSAGES_DEBUG=all as an " + "environment variable. "), + // TRANSLATORS: This link should point to a resource explaining + // TRANSLATORS: how to get Remmina to log debug statements. + _("For more information, please visit the Remmina Wiki: " + "https://gitlab.com/Remmina/Remmina/-/wikis/Usage/Remmina-debugging")); + } + /* Enable wayland backend only after GTK 3.22.27 or the clipboard * will not work. See GTK bug 790031 */ if (remmina_gtk_check_version(3, 22, 27)) |