mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
29 lines
936 B
C++
29 lines
936 B
C++
/*---------------------------------------------------------*\
|
|
| AutoStart-Linux.h |
|
|
| |
|
|
| Autostart implementation for Linux |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-or-later |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "AutoStart.h"
|
|
|
|
class AutoStart: public AutoStartInterface
|
|
{
|
|
public:
|
|
AutoStart(std::string name);
|
|
|
|
bool DisableAutoStart();
|
|
bool EnableAutoStart(AutoStartInfo autostart_info);
|
|
bool IsAutoStartEnabled();
|
|
std::string GetExePath();
|
|
|
|
private:
|
|
void InitAutoStart(std::string name);
|
|
std::string GenerateDesktopFile(AutoStartInfo autostart_info);
|
|
};
|