From b629f73bcdb993f9f31670e7fa45d76ab3ada156 Mon Sep 17 00:00:00 2001 From: "Takahashi, Naoki" <102382754+tkna91@users.noreply.github.com> Date: Wed, 22 Feb 2023 02:27:37 +0900 Subject: [PATCH] add notify-send from root or another user --- Home.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 904e4fb..cbbd61a 100644 --- a/Home.md +++ b/Home.md @@ -512,6 +512,11 @@ mode $mode_move_all_workspace_windows { } bindsym $mod+shift+ctrl+m mode $mode_move_all_workspace_windows ``` +### notify-send from root or another user + +``` +sudo --login -u username DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u username)/bus notify-send TITLE MSG +``` ### XDG_CURRENT_DESKTOP environment variable is not being set @@ -519,7 +524,6 @@ Some applications may rely on the `XDG_CURRENT_DESKTOP` environment variable to It's not good practice for applications to make use of XDG_CURRENT_DESKTOP in this way, and Firefox has an issue open to try to fix it. Refer to [xpdw's FAQ](https://github.com/emersion/xdg-desktop-portal-wlr/wiki/FAQ#how-do-i-run-xdpw) and [xdpw's Troubleshooting guide](https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist) if your issue is specifically related to screensharing. - ## Troubleshooting ### How do I report issues?