From d66f5ab3c6832b8a7eee367b131fad312806d059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 20 Feb 2020 16:40:04 +0100 Subject: [PATCH] mpris: Disallow media section on login screen The 'gdm' user is not going to run a media player, so there is no point in allowing the corresponding section on the login screen. All other sections are already disabled, so this is the only reason why we end up with the message list instead of only showing the calendar. https://gitlab.gnome.org/GNOME/gnome-shell/issues/2241 --- js/ui/mpris.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/mpris.js b/js/ui/mpris.js index bc98c0402..9eabe4431 100644 --- a/js/ui/mpris.js +++ b/js/ui/mpris.js @@ -251,6 +251,10 @@ class MediaSection extends MessageList.MessageListSection { return !this.empty && Calendar.isToday(this._date); } + get allowed() { + return !Main.sessionMode.isGreeter; + } + _addPlayer(busName) { if (this._players.get(busName)) return;