Mir
Public Member Functions | Static Public Member Functions | List of all members
miral::ExternalClientLauncher Class Reference

#include <external_client.h>

Public Member Functions

 ExternalClientLauncher ()
 
 ~ExternalClientLauncher ()
 
void operator() (mir::Server &server)
 
auto launch (std::vector< std::string > const &command_line) const -> pid_t
 Launch with client environment configured for Wayland. If X11 is enabled, then DISPLAY will also be set accordingly. More...
 
auto launch_using_x11 (std::vector< std::string > const &command_line) const -> pid_t
 If X11 is enabled, then launch with client environment configured for X11. For the occasions it is desired to coerce applications into using X11. More...
 
void snapcraft_launch (std::string const &desktop_file) const
 Use the proposed desktop-entry snap interface to launch another snap. More...
 
auto launch (std::string const &command) const -> pid_t
 Launch with client environment configured for Wayland. If X11 is enabled, then DISPLAY will also be set accordingly. More...
 

Static Public Member Functions

static auto split_command (std::string const &command) -> std::vector< std::string >
 Split out the tokens of a (possibly escaped) command. More...
 

Constructor & Destructor Documentation

◆ ExternalClientLauncher()

miral::ExternalClientLauncher::ExternalClientLauncher ( )

◆ ~ExternalClientLauncher()

miral::ExternalClientLauncher::~ExternalClientLauncher ( )

Member Function Documentation

◆ launch() [1/2]

auto miral::ExternalClientLauncher::launch ( std::string const &  command) const -> pid_t

Launch with client environment configured for Wayland. If X11 is enabled, then DISPLAY will also be set accordingly.

Returns
The pid of the process that was launched.
Remarks
Since MirAL 3.6

◆ launch() [2/2]

auto miral::ExternalClientLauncher::launch ( std::vector< std::string > const &  command_line) const -> pid_t

Launch with client environment configured for Wayland. If X11 is enabled, then DISPLAY will also be set accordingly.

Returns
The pid of the process that was launched.
Remarks
Return type changed from void in MirAL 3.0

◆ launch_using_x11()

auto miral::ExternalClientLauncher::launch_using_x11 ( std::vector< std::string > const &  command_line) const -> pid_t

If X11 is enabled, then launch with client environment configured for X11. For the occasions it is desired to coerce applications into using X11.

Returns
The pid of the process that was launched (or -1 if X11 is not enabled)
Remarks
Return type changed from void in MirAL 3.0

◆ operator()()

void miral::ExternalClientLauncher::operator() ( mir::Server &  server)

◆ snapcraft_launch()

void miral::ExternalClientLauncher::snapcraft_launch ( std::string const &  desktop_file) const

Use the proposed desktop-entry snap interface to launch another snap.

Remarks
Since MirAL 3.0

◆ split_command()

static auto miral::ExternalClientLauncher::split_command ( std::string const &  command) -> std::vector< std::string >
static

Split out the tokens of a (possibly escaped) command.

Remarks
Since MirAL 3.6

The documentation for this class was generated from the following file:

Copyright © 2012-2023 Canonical Ltd.
Generated on Tue 2 May 10:01:24 UTC 2023
This documentation is licensed under the GPL version 2 or 3.