mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-29 01:02:44 +08:00
22 lines
557 B
C++
22 lines
557 B
C++
#include "autostart.h"
|
|
|
|
#include "platform/autostart_backend.h"
|
|
|
|
namespace crossdesk {
|
|
|
|
bool EnableAutostart(const std::string& app_name) {
|
|
const std::string executable_path = platform::GetAutostartExecutablePath();
|
|
return !executable_path.empty() &&
|
|
platform::EnableAutostart(app_name, executable_path);
|
|
}
|
|
|
|
bool DisableAutostart(const std::string& app_name) {
|
|
return platform::DisableAutostart(app_name);
|
|
}
|
|
|
|
bool IsAutostartEnabled(const std::string& app_name) {
|
|
return platform::IsAutostartEnabled(app_name);
|
|
}
|
|
|
|
} // namespace crossdesk
|