summaryrefslogtreecommitdiff
path: root/src/AppWindow.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
commit5b7b3b1dfd5ce7c275881098310667b09562ad27 (patch)
treed2760df372d76da84d901cfc3a20514d5dc73bdf /src/AppWindow.vala
parentf6062696f6bbd00d4eaa8a6e994dabfefc455f31 (diff)
New upstream version 0.32.10upstream/0.32.10upstream
Diffstat (limited to 'src/AppWindow.vala')
-rw-r--r--src/AppWindow.vala15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/AppWindow.vala b/src/AppWindow.vala
index 7398c74..ae8bfb9 100644
--- a/src/AppWindow.vala
+++ b/src/AppWindow.vala
@@ -586,6 +586,21 @@ public abstract class AppWindow : PageWindow {
if (Resources.GIT_VERSION != null && Resources.GIT_VERSION != "" && Resources.GIT_VERSION != Resources.APP_VERSION) {
hash = " (%s)".printf(Resources.GIT_VERSION.substring(0,7));
}
+ var runtime = AppDirs.get_runtime();
+ switch (runtime) {
+ case AppDirs.Runtime.SNAP:
+ hash += " (Snap)";
+ break;
+ case AppDirs.Runtime.FLATPAK:
+ hash += " (Flatpak)";
+ break;
+ case AppDirs.Runtime.NATIVE:
+ hash += " (Native)";
+ break;
+ default:
+ hash += " (Unknown)";
+ break;
+ }
string[] artists = {"Image of the Delmenhorst Town Hall by Charlie1965nrw, source: https://commons.wikimedia.org/wiki/File:Delmenhorst_Rathaus.jpg", null};
Gtk.show_about_dialog(this,
"version", Resources.APP_VERSION + hash + " — Delmenhorst",