Discord RPC implementation
This commit is contained in:
committed by
Jonas Kvinge
parent
2a4fc185ac
commit
9fa9012c70
@@ -89,6 +89,10 @@
|
||||
# include "mpris2/mpris2.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DISCORD_RPC
|
||||
# include "discord/richpresence.h"
|
||||
#endif
|
||||
|
||||
#include "core/iconloader.h"
|
||||
#include "core/commandlineoptions.h"
|
||||
#include "core/networkproxyfactory.h"
|
||||
@@ -314,6 +318,9 @@ int main(int argc, char *argv[]) {
|
||||
#ifdef HAVE_MPRIS2
|
||||
mpris::Mpris2 mpris2(app.player(), app.playlist_manager(), app.current_albumcover_loader());
|
||||
#endif
|
||||
#ifdef HAVE_DISCORD_RPC
|
||||
discord::RichPresence discord_rich_presence(app.player(), app.playlist_manager());
|
||||
#endif
|
||||
|
||||
// Window
|
||||
MainWindow w(&app, tray_icon, &osd, options);
|
||||
|
||||
Reference in New Issue
Block a user