You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add --new-instance when another LibreWolf instance is running:
Before, it would add the argument if the launcher wasn't running while any LibreWolf instance was.
This caused issues when trying to open a new window while the launcher was waiting for other LW instances to close, while the portable LW instances were already closed.
- Initialize properly when this launcher already running
- Use DSlash() instead of separate variables for "\" => "\\"
- Rename *InstanceRunning() to *LauncherRunning() for clarity
@@ -36,33 +36,36 @@ Global _Title := "LibreWolf Portable"
36
36
, _MissingDLLs := "You probably don't have msvcp140.dll and vcruntime140.dll present on your system. Put these files in the folder " LibreWolfPath ",`nor install the Visual C++ runtime libraries via https://librewolf.net."
37
37
, _FileReadError := "Error reading file for modification:"
38
38
39
-
If (ThisInstanceRunning()) {
40
-
RunLibreWolf()
41
-
Exit()
42
-
}
43
39
Init()
44
40
CheckPaths()
45
41
CheckArgs()
42
+
If (ThisLauncherRunning()) {
43
+
RunLibreWolf()
44
+
Exit()
45
+
}
46
46
CheckUpdates()
47
47
RegBackup()
48
48
UpdateProfile()
49
49
RunLibreWolf()
50
50
SetTimer, WaitForClose, 5000
51
51
52
-
OtherInstanceRunning() {
53
-
Result := InstanceRunning("Name=""LibreWolf-Portable.exe""")
54
-
;MsgBox, OtherInstanceRunning: %Result%
52
+
DSlash(Path) {
53
+
ReturnStrReplace(Path, "\", "\\")
54
+
}
55
+
56
+
OtherLauncherRunning() {
57
+
Result := LauncherRunning("Name=""LibreWolf-Portable.exe"" and ExecutablePath<>""" DSlash(A_ScriptFullPath) """")
0 commit comments