Remove virt-viewer menu bar

This commit is contained in:
Mikhail Klementev 2020-01-22 00:33:20 +00:00
parent 219c48b976
commit 44cb4697ec
No known key found for this signature in database
GPG Key ID: BE44DA8C062D87DC
2 changed files with 29 additions and 1 deletions

View File

@ -8,6 +8,9 @@
# }: # }:
let let
pkgs = import <nixpkgs> {}; pkgs = import <nixpkgs> {};
virt-manager-without-menu = pkgs.virt-viewer.overrideAttrs(x: {
patches = [ ./patches/0001-Remove-menu-bar.patch ];
});
in with pkgs; in with pkgs;
buildGoPackage rec { buildGoPackage rec {
@ -32,7 +35,7 @@ buildGoPackage rec {
postFixup = '' postFixup = ''
wrapProgram $bin/bin/appvm \ wrapProgram $bin/bin/appvm \
--prefix PATH : "${lib.makeBinPath [ nix virt-viewer ]}" --prefix PATH : "${lib.makeBinPath [ nix virt-manager-without-menu ]}"
''; '';
meta = { meta = {

View 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