[gnome] Fix version for gjsosk and gsconnect, add impatience
This commit is contained in:
@ -2,16 +2,14 @@
|
||||
//
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
'use strict';
|
||||
import Gio from 'gi://Gio';
|
||||
import GLib from 'gi://GLib';
|
||||
import GObject from 'gi://GObject';
|
||||
|
||||
const Gio = imports.gi.Gio;
|
||||
const GLib = imports.gi.GLib;
|
||||
const GObject = imports.gi.GObject;
|
||||
|
||||
const PluginBase = imports.service.plugin;
|
||||
import Plugin from '../plugin.js';
|
||||
|
||||
|
||||
var Metadata = {
|
||||
export const Metadata = {
|
||||
label: _('Ping'),
|
||||
description: _('Send and receive pings'),
|
||||
id: 'org.gnome.Shell.Extensions.GSConnect.Plugin.Ping',
|
||||
@ -34,9 +32,9 @@ var Metadata = {
|
||||
* Ping Plugin
|
||||
* https://github.com/KDE/kdeconnect-kde/tree/master/plugins/ping
|
||||
*/
|
||||
var Plugin = GObject.registerClass({
|
||||
const PingPlugin = GObject.registerClass({
|
||||
GTypeName: 'GSConnectPingPlugin',
|
||||
}, class Plugin extends PluginBase.Plugin {
|
||||
}, class PingPlugin extends Plugin {
|
||||
|
||||
_init(device) {
|
||||
super._init(device, 'ping');
|
||||
@ -71,3 +69,5 @@ var Plugin = GObject.registerClass({
|
||||
this.device.sendPacket(packet);
|
||||
}
|
||||
});
|
||||
|
||||
export default PingPlugin;
|
||||
|
||||
Reference in New Issue
Block a user