Use defined(Q_OS_LINUX) || defined(Q_OS_UNIX) where applicable to support BSD OSs. (#264)
This commit is contained in:
committed by
Dharkael
parent
c75c9aa7f8
commit
df3958e43a
@@ -240,7 +240,7 @@ void ConfigHandler::setKeepOpenAppLauncher(const bool keepOpen) {
|
||||
|
||||
bool ConfigHandler::startupLaunchValue() {
|
||||
bool res = false;
|
||||
#if defined(Q_OS_LINUX)
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
QString path = QDir::homePath() + "/.config/autostart/Flameshot.desktop";
|
||||
res = QFile(path).exists();
|
||||
#elif defined(Q_OS_WIN)
|
||||
@@ -254,7 +254,7 @@ bool ConfigHandler::startupLaunchValue() {
|
||||
}
|
||||
|
||||
void ConfigHandler::setStartupLaunch(const bool start) {
|
||||
#if defined(Q_OS_LINUX)
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
QString path = QDir::homePath() + "/.config/autostart/Flameshot.desktop";
|
||||
QFile file(path);
|
||||
if (start) {
|
||||
|
||||
Reference in New Issue
Block a user