Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ecf0a04b in mainline


Ignore:
Timestamp:
2019-06-24T15:47:05Z (16 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
d86393c8
Parents:
fd244cd
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-24 15:46:46)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-24 15:47:05)
Message:

tools/ew.py: Fix gnome-terminal escaping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rfd244cd recf0a04b  
    6969
    7070def run_in_console(cmd, title):
    71         ecmd = cmd.replace('"', '\\"')
    7271        temu = termemu_detect()
    7372        if temu == 'gnome-terminal':
    74                 cmdline = temu + ' -- ' + ecmd
    75         else:
     73                cmdline = temu + ' -- ' + cmd
     74        else:
     75                ecmd = cmd.replace('"', '\\"')
    7676                cmdline = temu + ' -T ' + '"' + title + '"' + ' -e "' + ecmd + '"'
    7777
Note: See TracChangeset for help on using the changeset viewer.