gnomeExtensions.gsconnect: 39 -> 41

Update patch so it'll apply on v41.
This commit is contained in:
Doron Behar 2020-09-17 11:39:07 +03:00
parent eaf667bbf0
commit 3f1a356b81
2 changed files with 22 additions and 16 deletions

View File

@ -4,13 +4,13 @@
stdenv.mkDerivation rec {
pname = "gnome-shell-gsconnect";
version = "39";
version = "41";
src = fetchFromGitHub {
owner = "andyholmes";
repo = "gnome-shell-extension-gsconnect";
rev = "v${version}";
sha256 = "0d2wypf36p95v756arf06gfilpb48gp55i1xbqnqvcd10n3q4zc2";
sha256 = "0lcj7k16jki54bsyh01j4ss4hhfddnahcw02zlmlkl637qdv1b5j";
};
patches = [

View File

@ -1,5 +1,7 @@
--- a/data/org.gnome.Shell.Extensions.GSConnect.desktop
+++ b/data/org.gnome.Shell.Extensions.GSConnect.desktop
diff --git i/data/org.gnome.Shell.Extensions.GSConnect.desktop.in w/data/org.gnome.Shell.Extensions.GSConnect.desktop.in
index ffb23342..b405c73b 100644
--- i/data/org.gnome.Shell.Extensions.GSConnect.desktop.in
+++ w/data/org.gnome.Shell.Extensions.GSConnect.desktop.in
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Application
@ -9,18 +11,22 @@
Terminal=false
NoDisplay=true
Icon=org.gnome.Shell.Extensions.GSConnect
--- a/src/extension.js
+++ b/src/extension.js
@@ -1,5 +1,7 @@
'use strict';
+'@typelibPath@'.split(':').forEach(path => imports.gi.GIRepository.Repository.prepend_search_path(path));
+
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gtk = imports.gi.Gtk;
--- a/src/prefs.js
+++ b/src/prefs.js
diff --git i/src/extension.js w/src/extension.js
index 5f32aa68..872c0c61 100644
--- i/src/extension.js
+++ w/src/extension.js
@@ -1,5 +1,7 @@
'use strict';
+'@typelibPath@'.split(':').forEach(path => imports.gi.GIRepository.Repository.prepend_search_path(path));
+
const Gio = imports.gi.Gio;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
diff --git i/src/prefs.js w/src/prefs.js
index 07e93099..1c166710 100644
--- i/src/prefs.js
+++ w/src/prefs.js
@@ -1,5 +1,7 @@
'use strict';