Skip to content

Commit

Permalink
terminal-run: print supported terminal list on location failure
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Apr 6, 2024
1 parent c51b8ed commit d1ec791
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions etc/terminal-run
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ else
fi

if [ -z "$choice" ];then
error "Failed to locate any terminal emulators!!!"
error 'Failed to locate any terminal emulators!!!'"
Please install one of the supported terminal emulators from this list:
$terminals"
elif [ "$choice" == lxterminal ];then
lxterminal -e bash -c "$commands" &

Expand Down Expand Up @@ -97,7 +100,10 @@ elif [ "$choice" == qterminal ];then
qterminal -e bash <(echo "$commands") &

else
error "Failed to locate any terminal emulators!!!"
error 'Failed to locate any terminal emulators!!!'"
Please install one of the supported terminal emulators from this list:
$terminals"
fi

#A terminal should now be launching and in a few seconds the pid file should appear
Expand Down

0 comments on commit d1ec791

Please sign in to comment.