Mir
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...
 

Constructor & Destructor Documentation

◆ ExternalClientLauncher()

miral::ExternalClientLauncher::ExternalClientLauncher ( )

◆ ~ExternalClientLauncher()

miral::ExternalClientLauncher::~ExternalClientLauncher ( )

Member Function Documentation

◆ launch()

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

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

Copyright © 2012-2021 Canonical Ltd.
Generated on Wed Oct 6 15:21:46 UTC 2021
This documentation is licensed under the GPL version 2 or 3.