fix: Removed group checking since the systemd acl can take care of it.

This commit is contained in:
codestation
2016-04-24 18:07:31 -04:30
parent d449a6ae95
commit 88dc196d5c
5 changed files with 3 additions and 64 deletions

View File

@@ -98,12 +98,6 @@ void ClientManager::start()
QSettings settings;
if(!settings.value("disableUSB", false).toBool()) {
#ifdef Q_OS_LINUX
if(!belongsToGroup("vitamtp"))
emit messageSent(tr("This user doesn't belong to the vitamtp group, there could be a problem while reading the USB bus."));
#endif
usb_thread = new QThread();
client = new CmaClient(m_db);
usb_thread->setObjectName("usb_thread");

View File

@@ -35,7 +35,7 @@ QTrayIcon::QTrayIcon(QWidget *obj_parent)
: TrayIndicator(obj_parent)
{
#ifdef Q_OS_LINUX
notify_init("qcma");
notify_init("Qcma");
#endif
setAttribute(Qt::WA_TransparentForMouseEvents);
}
@@ -52,7 +52,7 @@ void QTrayIcon::init()
options = new QAction(tr("Settings"), this);
reload = new QAction(tr("Refresh database"), this);
backup = new QAction(tr("Backup Manager"), this);
about = new QAction(tr("About QCMA"), this);
about = new QAction(tr("About Qcma"), this);
about_qt = new QAction(tr("About Qt"), this);
quit = new QAction(tr("Quit"), this);
@@ -75,6 +75,7 @@ void QTrayIcon::init()
tray_icon_menu->addAction(quit);
m_tray_icon = new QSystemTrayIcon(this);
m_tray_icon->setToolTip("Qcma");
m_tray_icon->setContextMenu(tray_icon_menu);
}