simplifying title of the screen
authorChris Koeritz <fred@gruntose.com>
Mon, 14 May 2018 04:03:51 +0000 (00:03 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 14 May 2018 04:03:51 +0000 (00:03 -0400)
by using basename of the app.  still not sanitized, but at least a lot shorter.

scripts/system/screeno.sh

index 5217d70a3b97fac495d0e50c7d3d6e827ac68f08..e88c5aedaf56169dff076d5171c86494a86249c7 100644 (file)
@@ -13,8 +13,8 @@ if [ -z "$app" ]; then
   exit 1
 fi
 if [ -z "$title" ]; then
-  title="$app"
-#hmmm: we should be sanitizing that guy!  don't want a long deal title.
+  title="$(basename $app)"
+#hmmm: we should be sanitizing that guy!  don't want a weird title or a dangerous one.
 fi
 
 screen -L -S "$title" -d -m "$app"