Commits

Christian Ebert committed 695ccfc

util: use progname in systemcall

  • Participants
  • Parent commits 8cb0753

Comments (0)

Files changed (1)

File muttils/util.py

     # programs that can be launched without terminal connection
     term_progs = ('w3m', 'wget')
     # check if connected to terminal
-    prog = os.path.basename(cs[0])
     notty = notty or prog not in term_progs and not termconnected()
+    prog = progname(cs[0])
     # are we inside a screen session
     screen = screen or prog not in term_progs[1:] and 'STY' in os.environ
     try: