AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1473642
Accepted
nelaaro
nelaaro
Asked: 2019-08-22 03:46:39 +0800 CST2019-08-22 03:46:39 +0800 CST 2019-08-22 03:46:39 +0800 CST

NetworkManager Applet 没有响应,我在 ~/.xsession-errors 中看到“org.freedesktop.Notifications: Timeout was reached”错误

  • 772

我在 ~/.xsession-errors 中看到以下错误

(nm-applet:1122): nm-applet-WARNING **: 11:12:56.101: Failed to show notification: Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached
[1342:1937:0821/111259.646185:ERROR:object_proxy.cc(619)] Failed to call method: org.freedesktop.Notifications.GetCapabilities: object_path= /org/freedesktop/Notifications: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

我正在使用 i3,在我的状态栏中使用 xfce 助手来简化一些事情。

我知道如果我启动 xfce4-notifyd 它会解决问题并修复 xsession-errors 中的错误。

systemctl --user start xfce4-notifyd

systemctl --user status xfce4-notifyd
● xfce4-notifyd.service - XFCE notifications service
   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service; static; vendor preset: enabled)
   Active: active (running) since Wed 2019-08-21 12:52:28 SAST; 10s ago
 Main PID: 10783 (xfce4-notifyd)
   CGroup: /user.slice/user-1000.slice/[email protected]/xfce4-notifyd.service
           └─10783 /usr/lib/xfce4/notifyd/xfce4-notifyd

Aug 21 12:52:28 aaron-pc systemd[1088]: Starting XFCE notifications service...
Aug 21 12:52:28 aaron-pc systemd[1088]: Started XFCE notifications service.

如何让 xfce4-notifyd 在启动时或登录时启动。

linux arch-linux
  • 1 1 个回答
  • 1403 Views

1 个回答

  • Voted
  1. Best Answer
    nelaaro
    2019-08-22T05:51:42+08:002019-08-22T05:51:42+08:00

    经过大量阅读,我发现以下资源帮助我解决了这个简单的问题

    sudo vim /usr/share/dbus-1/system-services/org.freedesktop.Notification.service
    
    [D-BUS Service]
    Name=org.freedesktop.Notifications
    Exec=/usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
    

    您可能会查看什么,看看 dbus 中还配置了哪些其他通知服务。

    ls /usr/share/dbus-1/services/ | grep -i noti
    org.kde.plasma.Notifications.service
    org.xfce.xfce4-notifyd.Notifications.service
    

    如果您已经配置了一些其他通知服务,这可能会导致它们都出现问题,请尝试启动。

    sudo rm /usr/share/dbus-1/services/org.kde.plasma.Notifications.service
    

    在我的例子中,使用的是 Manjaro,这是一种拱门风格。我的设置有点不同。

    可执行文件的路径在不同的地方。

    pacman -Ql xfce4-notifyd | grep 'xfce4-notifyd$'
    xfce4-notifyd /usr/lib/xfce4/notifyd/xfce4-notifyd
    

    我的执行行看起来像这样

    Exec=/usr/lib/xfce4/notifyd/xfce4-notifyd
    

    另外,xfce4-notifyd需要启动服务

    systemctl --user status xfce4-notifyd
    ● xfce4-notifyd.service - XFCE notifications service
    Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service; static; vendor preset: enabled)
    Active: inactive (dead)
    
    systemctl --user start xfce4-notifyd
    
    systemctl --user status xfce4-notifyd
    ● xfce4-notifyd.service - XFCE notifications service
    Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service; static; vendor preset: enabled)
    Active: active (running) since Tue 2020-03-10 08:34:10 SAST; 5s ago
    Main PID: 7991 (xfce4-notifyd)
    CGroup: /user.slice/user-1000.slice/[email protected]/xfce4-notifyd.service
            └─7991 /usr/lib/xfce4/notifyd/xfce4-notifyd
    
    Mar 10 08:34:10 aaron-pc systemd[1456]: Starting XFCE notifications service...
    Mar 10 08:34:10 aaron-pc systemd[1456]: Started XFCE notifications service.
    

    以确保在启动时发生这种情况。我添加以下内容

    cd ~/.config/systemd/user/
    ln -s /usr/lib/systemd/user/xfce4-notifyd.service 
    
    • https://forum.xfce.org/viewtopic.php?id=12213
    • https://bugzilla.redhat.com/show_bug.cgi?id=1471560#c23
    • https://forum.manjaro.org/t/xfce4-notifyd-gtk3-the-notification-service-is-not-running-solved/60627/17
    • 1

相关问题

  • 如何让我的 Linux 机器看起来像是在运行 Windows?

  • 对于 cp 或 mv,是否有等同于 cd - 的东西?

  • 以 root 身份运行 docker 容器

  • 如何在域和 Linux 活动目录中启用指纹传感器

  • 如何在CentOS 7 中将Ctrl+C 永久更改为Ctrl+K?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve