aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/accounts-service-user.vala9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/accounts-service-user.vala b/src/accounts-service-user.vala
index 4dd7e6f..194beb0 100644
--- a/src/accounts-service-user.vala
+++ b/src/accounts-service-user.vala
@@ -62,7 +62,14 @@ public class AccountsServiceUser : Object {
var icon = new ThemedIcon.with_default_fallbacks ("application-default-icon");
this.proxy.player_icon = icon.serialize();
} else {
- this.proxy.player_icon = this._player.icon.serialize();
+ var serialization = this._player.icon.serialize();
+
+ if (serialization == null) {
+ var icon = new ThemedIcon.with_default_fallbacks ("application-default-icon");
+ serialization = icon.serialize();
+ }
+
+ this.proxy.player_icon = serialization;
}
this.proxy.running = this._player.is_running;