Skip to content

Instantly share code, notes, and snippets.

@jfcaron3
Created October 12, 2022 21:40
Show Gist options
  • Select an option

  • Save jfcaron3/112fe14fd825c1ed7fd360a9532bee91 to your computer and use it in GitHub Desktop.

Select an option

Save jfcaron3/112fe14fd825c1ed7fd360a9532bee91 to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
if test -f "$1"; then
filename="$1"
title=$filename
else
title="File not found."
fi
zenity --text-info --height=600 --width=1000 --title="$title" --ok-label="Close" --cancel-label="Close" --filename="$filename"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment