mirror of
https://github.com/zoriya/AnonymousGoose.git
synced 2026-06-01 05:27:35 +00:00
add find term
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import os
|
||||
|
||||
|
||||
class DetectTerm:
|
||||
terminal_list = [
|
||||
"konsole",
|
||||
"terminator",
|
||||
"tilda",
|
||||
"guake",
|
||||
"yakuake",
|
||||
"roxterm",
|
||||
"eterm",
|
||||
"Rxvt",
|
||||
"wterm",
|
||||
"lxterminal",
|
||||
"termKit",
|
||||
"st",
|
||||
"gnome-terminal",
|
||||
"final_term",
|
||||
"finalTerm",
|
||||
"terminology",
|
||||
"xfce4_terminal",
|
||||
"xterm",
|
||||
"lilyterm",
|
||||
"sakura",
|
||||
"rxvt-unicode"
|
||||
]
|
||||
|
||||
|
||||
|
||||
@staticmethod
|
||||
def find_terminal():
|
||||
for term in DetectTerm.terminal_list:
|
||||
if not os.system(term + " &"):
|
||||
return term
|
||||
Reference in New Issue
Block a user