URI:
       Fix issue #1 - qmenu - manage qubes os via dmenu (drkhsh fork)
  HTML git clone git://git.drkhsh.at/qmenu.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 48e986b6b24d784658e82fccd215a52ec1c6c818
   DIR parent ae4c5785e16b76c1471c6521224829754f141058
  HTML Author: sine3o14nnae <3o14@pm.me>
       Date:   Fri, 16 Aug 2019 01:40:18 +0200
       
       Fix issue #1
       
       Diffstat:
         M qmenu-vm                            |      15 ++++++++++++---
       
       1 file changed, 12 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/qmenu-vm b/qmenu-vm
       @@ -1245,13 +1245,22 @@ rearrange_qube_list() {
        }
        
        
       -if [ -z "$1" ]; then
       +show_qubes=$1
       +
       +if [ -z "$show_qubes" ]; then
        
          echo -e "Error: Please append one of the following:\
         '--all', '--tags=TAG', '--running', '--paused', '--halted' or whatever"
        
          exit 2
       -fi 
       +
       +# 'qvm-ls --all' will not list dom0 for some reason.
       +# Because of this, we will output $1 into a variable
       +# and unset it when '--all' is given
       +elif [ "$show_qubes" = "--all"]; then
       +
       +  unset show_qubes
       +fi
        
        if [ "$2" = "--light-theme" ]; then
        
       @@ -1267,7 +1276,7 @@ while true; do
            
          # Load 'qvm-ls' into a variable so that it doesnt 
          # need to reload again after every user operation
       -  qube_list=`qvm-ls --no-spinner $1 -O NAME,STATE,LABEL,CLASS\
       +  qube_list=`qvm-ls --no-spinner $show_qubes -O NAME,STATE,LABEL,CLASS\
        ,TEMPLATE,NETVM,IP,GATEWAY,PRIV-MAX,PRIV-CURR,PRIV-USED,ROOT-MAX\
        ,ROOT-CURR,ROOT-USED,KERNEL,KERNELOPTS`