Closed St3v3-wq closed 3 months ago
You run Arch? I got another similar bug in Proton VPN button extension.
The bug is due to the new notification syntax (needs two args in GS 46) that I did forget to change. BUT that's not the root cause. The cause is the app is not found.
Do you know how to use looking glass in gnome shell?
btw I don't get any error using Ubuntu 24.04.
No, Fedora 40.
What's your email client? Is it set as default email client in GS prefs?
What's your email client? Evolution (RPM) Is it set as default email client in GS prefs? Yes
This is strange: I installed claws-mail, then the extension is working. But only with claws, even when evolution is set in GS. When I remove claws, the error is something like "failed to open claws-mail, failure in PATH".
Ok. Maybe a session restart is needed for email client switch.
Please in GNOME Shell:
I'm sorry, lg is unsupported. Is there a new version somewhere? Also when I install it anyway..
LG is not an extension, it's built-in I've installed a F40 vm and the result is a void name, so the error.
Damn Software app, soooo slow. I'm back soon ;-)
Ok I installed Evolution, will be better now ;-)
Mmmh I get all attended prompts?
Ok, here the output from lg: ...true,org.Evolution.desktop...
It works in my VM:
The button click works too.
hmm?
Did you set this (again)?
It does not even start without claws-mail??
Did you try without any other extension disabled?
What's the command in terminal to update rpm packages, please?
sudo dnf update
Maybe this is a "only my computer" problem. Sorry. Should I delete some Gnome Settings?
I cannot install Claws, it's failing...
Do you have the black square in LG at the end of org.Ev... ? (That's attended.)
Could you change this line in: ~/.local/share/gnome-shell/extensions/new-mail-indicator/extensions.js ?
48 Main.notify("New Mail Indicator: error, no email client found");
to:
Main.notify("New Mail Indicator: error, no email client found", "");
Then restart your session.
Do you have the black square in LG at the end of org.Ev... ? (That's attended.)
Yes, it's white here.
Yep, it's running now (error, no email client found).
Well that's annoying I cannot reproduce the root cause in VM. Maybe an update since F40 iso has changed something?
It was running with Evolution from Flatpak, but not anymore. That is strange.
As a workaround you can change this:
_find_default_client() {
this._decoder = new TextDecoder();
this._app_query = GLib.spawn_command_line_sync("xdg-mime query default x-scheme-handler/mailto");
this._app_filename = this._decoder.decode(this._app_query[1].slice(0,-1));
this._app = Shell.AppSystem.get_default().lookup_app(this._app_filename);
if (this._app) {
this._app_name = this._app.get_name();
} else {
Main.notify("New Mail Indicator: error, no email client found");
}
}
to this:
_find_default_client() {
this._app_name = "Evolution";
}
but you won't have the click feature since I catch the app object's windows.
in LG did you try:
Shell.AppSystem.get_default().lookup_app("org.gnome.Evolution.desktop")
?
Ok, thank You for this.
in LG did you try:
Shell.AppSystem.get_default().lookup_app("org.gnome.Evolution.desktop")
?
r(0) = null
Oh sorry, I forgot to say: There is a bug in the current Evolution installation and there ist no org.gnome.Evolution.desktop. Is this maybe the problem? I mean, there is no Icon to start Evolution.
As a workaround you can change this:
_find_default_client() { this._decoder = new TextDecoder(); this._app_query = GLib.spawn_command_line_sync("xdg-mime query default x-scheme-handler/mailto"); this._app_filename = this._decoder.decode(this._app_query[1].slice(0,-1)); this._app = Shell.AppSystem.get_default().lookup_app(this._app_filename); if (this._app) { this._app_name = this._app.get_name(); } else { Main.notify("New Mail Indicator: error, no email client found"); } }
to this:
_find_default_client() { this._app_name = "Evolution"; }
Thank You for that. It's running now, with the error: Error: Invalid value 'undefined' for property body in object initializer.
For Ev install, you have to check in /usr/share/applications
For Ev install, you have to check in /usr/share/applications
Ah, tere is it...
As a workaround you can change this:
_find_default_client() { this._decoder = new TextDecoder(); this._app_query = GLib.spawn_command_line_sync("xdg-mime query default x-scheme-handler/mailto"); this._app_filename = this._decoder.decode(this._app_query[1].slice(0,-1)); this._app = Shell.AppSystem.get_default().lookup_app(this._app_filename); if (this._app) { this._app_name = this._app.get_name(); } else { Main.notify("New Mail Indicator: error, no email client found"); } }
to this:
_find_default_client() { this._app_name = "Evolution"; }
But this way does not display new Mails (red icon).
However, thank You for Your time!
Ok, fixed.
I fixed it by fixing Evolution. There is no problem with Your extension. The way was (at the end very easy):
$ cp /usr/share/applications/org.gnome.Evolution.desktop ~/.local/share/applications/ $ update-desktop-database -v ~/.local/share/applications
Thanks for Your time!
I just got this error in gnome-extensions and the extension would not start.