Comments (8)
No notifications in Fedora 35 either.
It's probably related to the enhanced security measures on some DBus calls in GNOME 41: https://unix.stackexchange.com/a/635740/50281
from done.
@strct I just installed Debian 10.9.0 and notify-send on a VM, but can't even get a notification with notify-send test
. How did you configure notify send?
from done.
I didn't notice notify-send
isn't installed by default. I tried to create a minimal environment (i have set up a virtual machine now as well).
On this machine I installed Debian 10.9.0 with the Gnome desktop environment (gnome-shell). Then as root apt install libnotify-bin curl fish
to install notify-send
.
Now notify-send test
produces a notification when run from the logged in user.
Configure fish with the command:
curl -Lo ~/.config/fish/conf.d/done.fish --create-dirs https://raw.githubusercontent.com/franciscolourenco/done/master/conf.d/done.fish
Reboot to ensure config files get read (logout+login might be sufficient).
user@debian:~$ fish
Welcome to fish, the friendly interactive shell
user@debian ~> sleep 6
user@debian ~> notify-send test
user@debian ~> echo $__done_version
1.15.0
sleep 6
didn't produce a notification, but notify-send
did.
from done.
The error is in https://github.com/franciscolourenco/done/blob/master/conf.d/done.fish#L83 which throws TypeError: global.display.focus_window.get_it is not a function
I don't have time to debug this at the moment since I don't use Debian, but a PR would be more than welcome :)
from done.
No notifications either for me on Manjaro with Gnome, worked when I was using XFCE a few weeks ago.
notify-send
works as usual. I'm using sleep 6
to test.
from done.
Workaround: use a gnome extension to expose Eval.
Extension: https://github.com/manu156/eval-gjs
Also modify done.fish to use this:
gdbus call --session --dest org.gnome.Shell --object-path /dev/ramottamado/EvalGjs --method dev.ramottamado.EvalGjs.Eval 'global.display.focus_window.get_id()'
However this will introduce security risks probably or whatever https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3943
from done.
Looks like the same root cause as #134
from done.
https://github.com/franciscolourenco/done/releases/tag/1.19.0 added an option to enable notifications on Wayland while using the Kitty terminal. Thanks @jinliu!
from done.
Related Issues (20)
- Bad quotes in __done_humanize_duration? HOT 5
- Allow configuring urgency with notify-send for failed commands HOT 1
- tmux window detection broken in fish 3.2
- Did not work on Mac OS (11.4): ps: unsupported exe keyword HOT 5
- Ability to set notification timeout HOT 2
- Variable `$__done_notification_transient` is used but is not defined HOT 1
- Wrong parameter names in README HOT 2
- Consider joining Hacktoberfest HOT 2
- Unexpected and strange error "Unknown command: humanize_duration" HOT 7
- "basename: illegal option -- f" error when using with Tmux HOT 4
- Error messages: "error: process ID out of range" and "basename: missing operand" HOT 7
- How can I test if it's working? HOT 1
- Error printed after command finishes when terminal-notifier is not installed HOT 2
- Notifications not showing on Wayland due to focused window detection HOT 3
- macOS sound improvement HOT 4
- Not working on macOS 14.0 HOT 6
- Using tmux and terminal-notifier causes failure HOT 1
- Is it possible that this could cause Ghostty to hang on long running processes? HOT 11
- Long commands won't return in a root shell on macOS
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 done.