equal
deleted
inserted
replaced
6 # |
6 # |
7 # See COPYING file for copyrights details. |
7 # See COPYING file for copyrights details. |
8 |
8 |
9 from __future__ import absolute_import |
9 from __future__ import absolute_import |
10 import os |
10 import os |
|
11 import sys |
11 import shutil |
12 import shutil |
12 import hashlib |
13 import hashlib |
13 import shlex |
14 import shlex |
14 import time |
15 import time |
15 |
16 |
300 |
301 |
301 on_hmitree_update(hmi_tree_root) |
302 on_hmitree_update(hmi_tree_root) |
302 |
303 |
303 return ret |
304 return ret |
304 |
305 |
305 if wx.Platform == '__WXMSW__': |
306 if sys.platform.startswith('win'): |
306 default_cmds={ |
307 default_cmds={ |
307 "launch":"cmd.exe /c 'start msedge {url}'", |
308 "launch":"cmd.exe /c 'start msedge {url}'", |
308 "watchdog":"cmd.exe /k 'echo watchdog for {url} !'"} |
309 "watchdog":"cmd.exe /k 'echo watchdog for {url} !'"} |
|
310 elif os.environ.has_key("SNAP"): |
|
311 default_cmds={ |
|
312 "launch":"xdg-open {url}", |
|
313 "watchdog":"echo Watchdog for {name} !"} |
309 else: |
314 else: |
310 default_cmds={ |
315 default_cmds={ |
311 "launch":"chromium {url}", |
316 "launch":"chromium {url}", |
312 "watchdog":"echo Watchdog for {name} !"} |
317 "watchdog":"echo Watchdog for {name} !"} |
313 |
318 |