mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-19 04:50:16 +01:00
Set the glib application name so Clementine shows up in the gnome-volume-control
This commit is contained in:
parent
266ad640de
commit
b319bdfe8e
@ -37,6 +37,8 @@
|
||||
#include <QDir>
|
||||
#include <QNetworkAccessManager>
|
||||
|
||||
#include <glib/gutils.h>
|
||||
|
||||
#ifdef Q_WS_X11
|
||||
# include <QDBusConnection>
|
||||
# include <QDBusMetaType>
|
||||
@ -81,6 +83,9 @@ int main(int argc, char *argv[]) {
|
||||
QCoreApplication::setOrganizationName("Clementine");
|
||||
QCoreApplication::setOrganizationDomain("davidsansome.com");
|
||||
|
||||
// This makes us show up nicely in gnome-volume-control
|
||||
g_set_application_name(QCoreApplication::applicationName().toLocal8Bit());
|
||||
|
||||
qRegisterMetaType<Directory>("Directory");
|
||||
qRegisterMetaType<DirectoryList>("DirectoryList");
|
||||
qRegisterMetaType<Subdirectory>("Subdirectory");
|
||||
|
Loading…
Reference in New Issue
Block a user