Files
tubestation/toolkit/components/remote/nsIRemoteService.idl
Dave Townsend 6d1522dd9a Bug 1892400: Add a method to send a command line to a running instance. r=jhirsch
Allows sending a command line after startup. Also allows blocking the remoting services
attempt to raise the application to the foreground if desired.

Differential Revision: https://phabricator.services.mozilla.com/D207976
2024-08-15 13:45:58 +00:00

32 lines
1.4 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
[scriptable, builtinclass, uuid(f4ef671b-838c-48fd-bc44-0f6cf63bce91)]
interface nsIRemoteService : nsISupports
{
/**
* Sends command line arguments to another running instance.
* Note that the other instance must be on the same update channel. The
* profile argument should be the full path to the root profile folder. The
* other instance must also have not disabled the remoting service (e.g. with
* -no-remote on the command line).
*
* @param aProfile
* The profile the running instance is using.
* @param aArgs
* The command line arguments to send. Don't include the initial
* binary path argument.
* @param aRaise
* Whether the target instance's window should be brought to the
* foreground. The actual effect of this is platform-dependent; see
* comments in platform-specific implementations for further
* information.
* @throws NS_ERROR_NOT_AVAILABLE if no running instance was found.
*/
void sendCommandLine(in ACString aProfile, in Array<ACString> aArgs, [optional] in boolean aRaise);
};