I’m launching AkelPad from Firefox Legacy (XUL/JS, nsIProcess) to edit an HTML file:
AkelPad.exe "C:\TEMP\file.htm"
If AkelPad is not running, it starts and opens the file correctly, also next.
If AkelPad is already running, the new process is created but the file is not opened in the existing instance.
I also tried: AkelPad.exe /OpenFile("C:\TEMP\file.htm")
but the behavior is the same when AkelPad is already open.
Is there a recommended way to send a file to an existing AkelPad instance from an external application?
SOLVED: HTML file from Firefox Legacy
- Author
- Message
-
Offline
- Posts: 184
- Joined: Fri Aug 15, 2008 8:58 am
SOLVED: HTML file from Firefox Legacy
Last edited by Diamen on Fri Jul 31, 2026 7:46 am, edited 1 time in total.
-
Offline
- Posts: 1883
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Re: HTML file from Firefox Legacy
I think, this comes from SingleOpenProgram AkelPad option.
With SingleOpenProgram=1 following works fine for me:
With SingleOpenProgram=1 following works fine for me:
Code: Select all
var path = "X:\\AkelPad\\AkelPad.exe";
var args = ["X:\\test.html"];
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile || Components.interfaces.nsIFile);
file.initWithPath(path);
var process = Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);
process.init(file);
process.runw(false, args, args.length);-
Offline
- Posts: 184
- Joined: Fri Aug 15, 2008 8:58 am
Re: HTML file from Firefox Legacy
Here not work withSingleOpenProgram = 0 or 1 or 2
But it is a bug?
I need to open file from firefox like I can with cli.
But it is a bug?
I need to open file from firefox like I can with cli.
-
Offline
- Posts: 28
- Joined: Wed Jan 22, 2025 5:23 am
Re: HTML file from Firefox Legacy
Are you've disabled UAC and launching firefox without -no-deelevate command line option?
-
Offline
- Posts: 184
- Joined: Fri Aug 15, 2008 8:58 am
Re: HTML file from Firefox Legacy
disabled UAC and launching firefox without -no-deelevate command line option.
-
Offline
- Posts: 184
- Joined: Fri Aug 15, 2008 8:58 am
Re: HTML file from Firefox Legacy
Solved.
it happens when start akelpad without UAC and Firefox With UAC.
Ty for support.
it happens when start akelpad without UAC and Firefox With UAC.
Ty for support.
-
Offline
- Posts: 184
- Joined: Fri Aug 15, 2008 8:58 am
Re: HTML file from Firefox Legacy
Solved.
it happens when start akelpad without UAC and Firefox With UAC.
Ty for support.
it happens when start akelpad without UAC and Firefox With UAC.
Ty for support.