Emil Velikov
eecd451068
meson: build with -Werror=missing-declarations
...
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2023-03-04 21:40:56 +02:00
jackun
425b98ae9a
[dbus] Fix trying to deinit non-active service(s)
...
Also, don't log with spdlog. It's already dead by then probably.
2022-04-02 00:52:45 +03:00
jackun
a26e6325cc
[dbus] Use GameMode portal inside flatpak
2022-03-24 12:06:40 +02:00
jackun
ac11beef9b
[dbus] Don't stop D-Bus thread or remove filter if not completely deiniting
2021-09-08 23:35:09 +03:00
jackun
31e879215a
[dbus] Also check if gamemode is enabled with D-Bus
2021-08-21 18:45:47 +03:00
jackun
355c521f12
Misc small clean ups and fixes
2021-07-30 19:15:49 +03:00
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
2021-07-27 16:16:39 +03:00
jackun
2f807a4c0d
Add spdlog
wrap and logging
2021-07-16 04:06:09 +03:00
jackun
19ef4f3df0
[dbus] re-init active player so media_player_name
changes take effect
...
Might be good to check if player name actually changed though.
2021-01-10 00:33:44 +02:00
Alessandro Toia
8e873fe547
Remove more "not" and "and" in if statments
...
Rename dbus_helpers.hpp to dbus_helpers.h
2020-12-03 22:00:18 -08:00
jackun
7471d42cac
Fix dbus for GCC 5
2020-11-09 20:11:16 +02:00
jackun
b07db5d3ef
[dbus] Don't clear metadata when reloading config file
2020-07-31 23:05:50 +03:00
jackun
bb50e6a637
[dbus] Use "xesam:url" to force metadata update
...
If file has no other metadata, clear old metadata by using
"xesam:url" to detect new file being played.
2020-07-16 14:24:03 +03:00
jackun
f74b4bccd9
[dbus] always update metadata if no forced player
...
Otherwise it stays in "paused" state if resuming play.
2020-07-16 14:22:00 +03:00
Lars Krämer
a393c05829
Fix auto-switching bug
...
Debug output under ifdef NDEBUG
2020-07-07 01:29:37 +02:00
Lars Krämer
6dd08c89bc
Use fallback only if no player was requested;
...
Request no player by default
2020-07-07 01:29:37 +02:00
Lars Krämer
9a34b55498
Move interactions with main_metadata into separate functions
...
More tidying up of the helper classes
2020-07-07 01:29:35 +02:00
Lars Krämer
7cc76142f1
Tidy up DBus helper classes
...
make sure metadata is up-tp-date when switching players (WIP)
2020-07-07 01:28:04 +02:00
Lars Krämer
72b86b4371
Fix some weird behaviour with non-spotify media players
...
Add DBusMessage_wrap to wrap/hide some dbus_message_* calls
2020-07-07 01:28:04 +02:00
Lars Krämer
6484e09f01
Implement wrapper class for DBusMessageIter
...
Implement for_each-style helpers for common constructions
Reimplement most of the DBus message parsing in terms of these
2020-07-07 01:28:04 +02:00
Lars Krämer
4bf7a3f2f0
Make DBus signal handling more event-based
2020-07-07 01:28:04 +02:00
Lars Krämer
5850643db4
Change the media player functionality to allow changing active media
...
player
2020-07-07 01:27:46 +02:00
jackun
72602fab89
[dbus] remove missed exceptions; set dbus call timeout to 2 seconds
2020-05-28 20:52:32 +03:00
jackun
9b595cef1a
[dbus] clear metadata on re-init; don't use exceptions
2020-05-22 15:00:35 +03:00
jackun
d694a61d21
Add media_player_name
and media_player_color
params
...
Allows to set "main" media player and text color
2020-05-11 22:05:13 +03:00
jackun
768297b430
[editorconfig] Apply whitespace rules
2020-05-10 15:18:59 +03:00
jackun
88188ee1da
[dbus] Generalize a bit more but still give Spotify special treatment, keep track of 'org.mpris.MediaPlayer2' service providers
...
Keeps and draws spotify's and other player's metadata separately.
Keep track of 'org.mpris.MediaPlayer2' service providers so when
a player that was the last metadata sender quits, we can stop
showing its metadata on overlay.
2020-04-13 03:02:52 +03:00
jackun
e5a256bfc0
Move DBus init to overlay_params so it can be enabled/disabled on the fly from a single place
2020-04-10 22:39:43 +03:00
jackun
0db804aa01
Don't free DBusError if it was never inited because dbus_error_free() is nullptr too
2020-04-05 13:56:14 +03:00
jackun
421146b822
Don't reinit dbus manager
2020-04-05 13:48:16 +03:00
jackun
0a27e0a447
Clear all metadata strings in case other mpris-compatible media players don't have them all
2020-04-05 00:12:01 +03:00
jackun
8024736253
Add DBus loader, combined ticker for Spotify metadata
2020-04-04 23:50:57 +03:00
FlightlessMango
d975278396
Dbus with spotify
2020-04-04 20:51:53 +03:00