Closed Keith94 closed 8 years ago
Thanks so much man!
Updates on this:
parent.lock
of the profile we want to focusparent.lock
from step 1 then focus the windowGetFinalPathNameByHandle
on XP so I'm working on this here: GitHubGist :: Noitidart / _ff-addon-snippet-GetFileNameFromHandle.jsSetForegroundWindow
to focus itparent.lock
of the profile we want to focusSetForegroundWindow
to focus itlsof
flock
on parent.lock
file and get PID of the frefox that has it lockedXRaiseWindow
to focus most recent window of that pidlsof
flock
on parent.lock
file and get PID of the frefox that has it lockedLast Updated: March 14, 2015
commit 100 here adds support for focusing window on linux
it also adds support for filling icon in/not based on if profile is in use
https://github.com/Noitidart/Profilist/commit/e43bc7828346742fad637aafed9e7b41275534c0
work thats left: add focus most recent window support for mac
For mac use this technique here: https://gist.github.com/Noitidart/8b875261d1a9dbd6b0cf#comment-1320519
this technique will fail to focus if all windows are minimized however. it also does not give the most recent window if user has full screen windows open, in which case it will focus the most recent window on the closest "desktop".
Landed somewhere in v3.0a - https://github.com/Noitidart/Profilist/tree/v3.0a
Latest dev build available on AMO, not yet reached production channel - https://addons.mozilla.org/en-US/firefox/addon/profilist/versions/beta
When attempting to launch a profile that had its folder deleted or is currently in use, don't show the "launching profile" notification.
Separated from #9