mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-03-31 20:40:58 +00:00
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
@@ -29,7 +29,7 @@
|
||||
#include <QTimer>
|
||||
#include <QDir>
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
#include "src/core/flameshotdbusadapter.h"
|
||||
#include "src/utils/dbusutils.h"
|
||||
#include <QDBusMessage>
|
||||
@@ -64,7 +64,7 @@ int main(int argc, char *argv[]) {
|
||||
app.setOrganizationName("Dharkael");
|
||||
|
||||
auto c = Controller::getInstance();
|
||||
#ifdef Q_OS_LINUX
|
||||
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
new FlameshotDBusAdapter(c);
|
||||
QDBusConnection dbus = QDBusConnection::sessionBus();
|
||||
if (!dbus.isConnected()) {
|
||||
|
||||
Reference in New Issue
Block a user