summaryrefslogtreecommitdiff
path: root/qmenu/qmenu_vm/fqubes_logs
diff options
context:
space:
mode:
Diffstat (limited to 'qmenu/qmenu_vm/fqubes_logs')
-rw-r--r--qmenu/qmenu_vm/fqubes_logs16
1 files changed, 16 insertions, 0 deletions
diff --git a/qmenu/qmenu_vm/fqubes_logs b/qmenu/qmenu_vm/fqubes_logs
new file mode 100644
index 0000000..37fd6c8
--- /dev/null
+++ b/qmenu/qmenu_vm/fqubes_logs
@@ -0,0 +1,16 @@
+if [ "$qube" = dom0 ]; then
+
+ logs=/var/log/xen/console/hypervisor.log
+else
+ logs="/var/log/xen/console/guest-$qube.log\n/var/log/xen/console/guest-$qube-dm.log\n/var/log/qubes/guid.$qube.log\n/var/log/qubes/qrexec.$qube.log"
+fi
+
+entry=1
+
+while [ -n "$entry" ]; do
+
+ if entry=$(printf "$logs" | dmenu-unlinked -i -l 4 -p "$qube:"); then
+
+ qubes-log-viewer "$entry"
+ fi
+done