I'm writing a script that goes something like this:
#!/bin/bash
zenity --list --checklist --title="Choose Packages to Install" --width="1000" --height="400" \
--column="Select" --column="Package Name" --column="Description" \
GIMP=$( " " GIMP "GIMP is a free and open source photo editor." \ )
if [ $GIMP == "GIMP" ]
then
sudo apt-get install $GIMP
fi
I want to open a dialog box with check boxes, package names, and descriptions. The box I have written is the first attached file.
I plan on adding other programs, but I have not gotten there yet.
The
" "
in the line
" " GIMP "Known as GIMP, GNU Image Manipulation Program is a free and open source photo editor." \
is for the first checkbox.
My main problem is the quotation marks at the end and beginning of the line (attached file #2). The quotation marks read in the wrong direction, and not how I want them to, having quotation marks inside of quotation marks?
Is there any way to fix this? Do I need to take a completely different approach?