-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,18 @@ | |
*/ | ||
|
||
// No translatable strings in this file. | ||
const { Gio, GLib, GObject, Gtk, Meta, Shell, St } = imports.gi; | ||
|
||
const { activateWindow } = imports.ui.main; | ||
|
||
const UUID = imports.misc.extensionUtils.getCurrentExtension().metadata.uuid; | ||
import Gio from 'gi://Gio'; | ||
import GLib from 'gi://GLib'; | ||
import GObject from 'gi://GObject'; | ||
import Gtk from 'gi://Gtk'; | ||
import Meta from 'gi://Meta'; | ||
import Shell from 'gi://Shell'; | ||
import St from 'gi://St'; | ||
|
||
import { activateWindow } from 'resource:///org/gnome/shell/ui/main.js'; | ||
import { Extension } from 'resource:///org/gnome/shell/extensions/extension.js'; | ||
|
||
const UUID = "[email protected]"; | ||
const MPRIS_PREFIX = 'org.mpris.MediaPlayer2.'; | ||
// See https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html#Simple-Type:Track_Id | ||
const NO_TRACK_PATH = '/org/mpris/MediaPlayer2/TrackList/NoTrack'; | ||
|
@@ -364,14 +371,14 @@ function parseMetadata(metadata, playerName) { | |
return [obj_id, cover_url, artist, title, mimetype_icon]; | ||
} | ||
|
||
function logMyError(error) { | ||
export function logMyError(error) { | ||
// Cancelling counts as an error don't spam the logs. | ||
if (!error.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) { | ||
logError(error, `Extension ${UUID}`); | ||
} | ||
} | ||
|
||
var DBusProxyHandler = GObject.registerClass({ | ||
export var DBusProxyHandler = GObject.registerClass({ | ||
GTypeName: 'DBusProxyHandler', | ||
Signals: { | ||
'add-player': { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
"name": "Mpris Indicator Button with title", | ||
"description": "A full featured MPRIS indicator.", | ||
"original-author": "[email protected]", | ||
"shell-version": ["3.36", "3.38", "40", "41", "42", "43", "44"], | ||
"shell-version": ["45"], | ||
"url": "https://github.com/jylertones/gnome-shell-extension-mpris-indicator-button/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters