"activate" argument can work in Linux!
TomaszGasior opened this issue · 0 comments
In file linux/init.py i found this information:
def __init__(self, activate_browser): # activate_browser is always true on Windows since you can't # send keys to an inactive window programmatically. We ignore it. self.activate_browser = activate_browser
This is not true. This is possible according to window manager used by user desktop environment. I use for example XFCE4 and his Xfwm. When I remove from linux/init.py on line 40 "windowfocus" command I can refresh browser without window focusing.
I fount after moment second problem. There is used "--sync" switch for xdotool. It causes problems when browser in "browser" parameter is not open. Sublime hangs because xdotool wait for window that is not open.