gcollazo / gcollazo/BrowserRefresh-Sublime

"activate" argument can work in Linux!

Open
#91 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
560
Forks
57
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.