diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-05-20 14:21:27 +0200 |
---|---|---|
committer | Yt <raphael@megzari.com> | 2022-05-26 08:33:49 -0400 |
commit | f81c763c1de3fc0d2f746b82891684e3c08c919a (patch) | |
tree | 87b8ae5e8a0e1fc1b1f36a12035069bc88038b33 /pkgs/applications/virtualization/appvm/0003-Use-name-of-appvm-applications-as-a-title.patch | |
parent | 87d9910cefec95a47f2fac7f0b7db89c8f69c4b9 (diff) |
nixos/appvm: init at unstable-2021-12-20
Co-authored-by: Mikhail Klementev <blame@dumpstack.io> Co-authored-by: Cabia Rangris <me@cab404.ru>
Diffstat (limited to 'pkgs/applications/virtualization/appvm/0003-Use-name-of-appvm-applications-as-a-title.patch')
-rw-r--r-- | pkgs/applications/virtualization/appvm/0003-Use-name-of-appvm-applications-as-a-title.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/appvm/0003-Use-name-of-appvm-applications-as-a-title.patch b/pkgs/applications/virtualization/appvm/0003-Use-name-of-appvm-applications-as-a-title.patch new file mode 100644 index 0000000000000..51a47bbbac6db --- /dev/null +++ b/pkgs/applications/virtualization/appvm/0003-Use-name-of-appvm-applications-as-a-title.patch @@ -0,0 +1,14 @@ +diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c +index fe740ce..d45fd4f 100644 +--- a/src/virt-viewer-window.c ++++ b/src/virt-viewer-window.c +@@ -1342,6 +1342,9 @@ virt_viewer_window_update_title(VirtViewerWindow *self) + grabhint, + g_get_application_name()); + } ++ } else if (g_str_has_prefix(self->subtitle, "appvm_")) { ++ /* Use name of the application as a title */ ++ title = g_strdup_printf(_("%s"), &self->subtitle[strlen("appvm_")]); + } else if (self->subtitle) { + /* translators: + * This is "<subtitle> - <appname>" |