mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-22 20:23:01 +00:00
Remove virt-viewer menu bar
This commit is contained in:
parent
219c48b976
commit
44cb4697ec
@ -8,6 +8,9 @@
|
||||
# }:
|
||||
let
|
||||
pkgs = import <nixpkgs> {};
|
||||
virt-manager-without-menu = pkgs.virt-viewer.overrideAttrs(x: {
|
||||
patches = [ ./patches/0001-Remove-menu-bar.patch ];
|
||||
});
|
||||
in with pkgs;
|
||||
|
||||
buildGoPackage rec {
|
||||
@ -32,7 +35,7 @@ buildGoPackage rec {
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $bin/bin/appvm \
|
||||
--prefix PATH : "${lib.makeBinPath [ nix virt-viewer ]}"
|
||||
--prefix PATH : "${lib.makeBinPath [ nix virt-manager-without-menu ]}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
25
patches/0001-Remove-menu-bar.patch
Normal file
25
patches/0001-Remove-menu-bar.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From c26580442a4ac18f805b1795ec250d6cf5857a49 Mon Sep 17 00:00:00 2001
|
||||
From: Mikhail Klementev <blame@dumpstack.io>
|
||||
Date: Wed, 22 Jan 2020 00:25:16 +0000
|
||||
Subject: [PATCH] Remove menu bar
|
||||
|
||||
---
|
||||
src/resources/ui/virt-viewer.ui | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/resources/ui/virt-viewer.ui b/src/resources/ui/virt-viewer.ui
|
||||
index 93471a4..b029ad7 100644
|
||||
--- a/src/resources/ui/virt-viewer.ui
|
||||
+++ b/src/resources/ui/virt-viewer.ui
|
||||
@@ -18,7 +18,7 @@
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkMenuBar" id="top-menu">
|
||||
- <property name="visible">True</property>
|
||||
+ <property name="visible">False</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="menu-file">
|
||||
--
|
||||
2.23.1
|
||||
|
Loading…
Reference in New Issue
Block a user