Comments (7)
@omron93 I just upgraded to Fedora 35 and the patch you suggested works wonderfully. I already applied it in the repo and will publish a new version now. So no need for a PR :-)
from keyman.
Thanks for your report!
This seems to be a problem with the commonjs implementation of https://github.com/darkoverlordofdata/gir2dts and gnome 41. Maybe Gnome 41 finally has a module loader integrated into core?
I don't have gnome 41 myself yet but this does not look like I can just do a quick fix for this. I'll have to find time to look at it.
from keyman.
I just switched to Gnome 41 and didn't get that error. I did get a very similar error, but about "console".
So I removed the bit about console from keyringDbus.js
(https://github.com/dpoetzsch/keyman/blob/master/keyringDbus.js#L35-L40), bumped the Gnome version to 41 in metadata.json
and the extension is working as it should now for me (using ./deploy.sh
, logging out and logging back in).
I'm running Fedora 35 with GNOME Shell 41.2 (gjs 1.70.0)
from keyman.
Just upgrade to Fedora 35 too and had to comment the console lines in keyringDbus.js.
34 })) }, 35 /**console: { value: { 36 log: function () { print.apply(null, arguments); }, 37 warn: function () { print.apply(null, arguments); }, 38 error: function () { print.apply(null, arguments); }, 39 info: function () { print.apply(null, arguments); } 40 } },**/
from keyman.
@rpkamp is right and simple patch like this and bash ./deploy.sh
works quite fine with Gnome 41.
diff --git a/keyringDbus.js b/keyringDbus.js
index 686c67d..eff58c0 100644
--- a/keyringDbus.js
+++ b/keyringDbus.js
@@ -32,12 +32,12 @@ Object.defineProperties(window, {
Pango: { id: 'Pango', exports: imports.gi.Pango },
GObject: { id: 'GObject', exports: imports.gi.GObject }
})) },
- console: { value: {
- log: function () { print.apply(null, arguments); },
- warn: function () { print.apply(null, arguments); },
- error: function () { print.apply(null, arguments); },
- info: function () { print.apply(null, arguments); }
- } },
+// console: { value: {
+// log: function () { print.apply(null, arguments); },
+// warn: function () { print.apply(null, arguments); },
+// error: function () { print.apply(null, arguments); },
+// info: function () { print.apply(null, arguments); }
+// } },
_: { value: imports.gettext.gettext }
});
Object.defineProperties(define, {
diff --git a/metadata.json b/metadata.json
index 5546697..323e563 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,5 +1,5 @@
{
- "shell-version": ["40"],
+ "shell-version": ["41"],
"original-authors": ["[email protected]"],
"uuid": "[email protected]",
"name": "KeyMan",
@dpoetzsch Can I create a PR to have this working out of the box? or how to proceed to get this issue fixed?
from keyman.
TLDR: I'd be happy to accept a PR and release a new version.
Sorry for the delay, I've been quite busy with work recently.
I think the proper way to fix this would be to fix it in https://github.com/darkoverlordofdata/gir2dts/blob/master/src/gjs.js, release a new version of gir2dts (which is out of my hands). Another, maybe even better way would be to replace gir2dts with the newer and seemingly more active ts-for-gir. Then, use the new fixed type bindings to create a new version of https://github.com/dpoetzsch/gnome-keyring-js/.
That being said, I want this plugin to just work for people, so I'd be happy to accept a PR in the meantime and release that if it fixes the problem. I can go the long way when I find time for it.
from keyman.
Perfect. Thanks for quick fix
from keyman.
Related Issues (10)
- Slow typing if many keyrings are closed HOT 2
- Works on Gnome 42 HOT 1
- Password is not copied to clipboard after keyring was deleted HOT 4
- Gnome Shell 44 HOT 1
- Not working under gnome 3.30 (Fedora 29) HOT 4
- Not work after update to 19.04 HOT 1
- Repeat of issue 4 HOT 3
- Password not copied to clipboard after locking the screen HOT 2
- Stopped working on Ubuntu 19.10/GNOME 3.34 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keyman.