You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			555 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			555 B
		
	
	
	
		
			Bash
		
	
#!/bin/bash
 | 
						|
 | 
						|
#$1 is the command to be run.
 | 
						|
#$2 is the title.
 | 
						|
 | 
						|
if [ -f /usr/bin/lxterminal ];then
 | 
						|
  lxterminal --title="$2" -e bash -c "$1"
 | 
						|
elif [ -f /usr/bin/xfce4-terminal ];then
 | 
						|
  xfce4-terminal --title="$2" -e bash -c "$1"
 | 
						|
elif [ -f /usr/bin/mate-terminal ];then
 | 
						|
  mate-terminal --title="$2" -e bash -c "$1"
 | 
						|
elif [ -f /usr/bin/xterm ];then
 | 
						|
  xterm -title="$2" -e bash -c "$1"
 | 
						|
elif [ -f /usr/bin/x-terminal-emulator ];then
 | 
						|
  $(readlink -f /usr/bin/x-terminal-emulator) -e bash -c "$1"
 | 
						|
else
 | 
						|
  echo "Failed to locate any terminal emulators!!!"
 | 
						|
  exit 1
 | 
						|
fi |