#include <privilege_utils.hpp>
Static Public Member Functions | |
| static bool | is_running_as_root () |
| static bool | can_read_source (const std::string &path) |
| static std::string | self_executable_path () |
| static std::string | shell_quote (const std::string &s) |
| static std::string | build_pkexec_relaunch_command (const std::string &extra_args="") |
| static bool | launch_pkexec_relaunch (std::string &error, const std::string &extra_args="") |
Definition at line 5 of file privilege_utils.hpp.
|
static |
Definition at line 39 of file privilege_utils.cpp.
References self_executable_path(), and shell_quote().
Referenced by launch_pkexec_relaunch().
|
static |
Definition at line 13 of file privilege_utils.cpp.
Referenced by MainWindow::on_scan_now(), MainWindow::populate_device_lists(), and MainWindow::update_source_state().
|
static |
Definition at line 9 of file privilege_utils.cpp.
Referenced by MainWindow::on_launch_elevated(), MainWindow::on_scan_now(), MainWindow::populate_device_lists(), and MainWindow::update_source_state().
|
static |
Definition at line 50 of file privilege_utils.cpp.
References build_pkexec_relaunch_command().
Referenced by MainWindow::on_launch_elevated().
|
static |
Definition at line 17 of file privilege_utils.cpp.
Referenced by build_pkexec_relaunch_command().
|
static |
Definition at line 29 of file privilege_utils.cpp.
Referenced by build_pkexec_relaunch_command().