通知不适用于 Linux 独立窗口管理器(Openbox、Awesome WM 等)。我尝试安装notification-daemon和dunst,但发送时notify-send "something"没有弹出任何窗口。
我试图运行 polkit-gnome-agent 并直接运行通知守护进程,但它没有帮助(之前我用这种方式解决了类似的问题,但现在它什么也不做)。
除非我用 python 发送微不足道的通知,否则没有任何错误迹象,然后我只收到模糊的错误消息:
File "/usr/lib/python3.3/site-packages/gi/types.py", line 113, in function
return info.invoke(*args, **kwargs)
gi._glib.GError: Could not connect: Connection refused
Run Code Online (Sandbox Code Playgroud)
琐碎的 C 程序不输出任何内容(例如没有错误)。
我正在将 Archlinux 与 systemd 和 d-bus 一起使用,我怀疑是 polkit 或某种守护程序没有在窗口管理器启动时运行的问题,但不知道我可以尝试什么或如何获得更有意义的错误消息。
编辑:我从那里获取了示例代码:https : //wiki.archlinux.org/index.php/Libnotify#Python
Dbus 应该正在运行,因为 systemd 将其作为依赖项。我已经libnotify安装 - 它是提供notify-send. 此外,通知守护程序应根据需要启动(仅当通知到达时),通过以下桌面文件/usr/share/dbus-1/services/org.freedesktop.Notifications.service:
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/usr/bin/dunst
Run Code Online (Sandbox Code Playgroud)
我什至尝试过直接运行守护进程(只是执行)并尝试发送通知。如果有人知道我如何才能获得更多信息,请不要犹豫,提出建议。
编辑 2:我尝试使用 sudo: sudo notification-daemon_name &(在我的情况下sudo dunst &)和运行通知守护程序sudo notify-send something,然后通知工作。但是,当我尝试以非特权用户身份执行之前的任何操作(这很重要,大多数程序以非特权用户身份发送通知)时,没有任何显示。 …
最近三天我遇到了随机冻结。如果发生这种情况时我正在 youtube 上查看音频继续播放但屏幕被冻结并且键盘或光标不执行任何操作。
我试着往里看sudo journalctl,这就是我发现的:
led 04 10:44:02 arch-thinkpad kernel: i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe C (start=113031 end=113032) time 340 us, min 1073, max 1079, scanline start 1062, end 1085
led 04 11:09:15 arch-thinkpad kernel: i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe C (start=203838 end=203839) time 273 us, min 1073, max 1079, scanline start 1072, end 1090
led 04 11:15:47 arch-thinkpad kernel: i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe C …Run Code Online (Sandbox Code Playgroud) 我想使用 keepassxc 向 neomutt 进行身份验证。我找不到将密码发送到 neomutt 的标准输入的方法。我怎样才能做到这一点 ?
我想象这样的事情:
keepassxc-cli exportpass mydatabase.kdbx mymail@gmail.com
Run Code Online (Sandbox Code Playgroud)
最终输出将是密码本身。我怎样才能做到这一点?
编辑:我已经发现了keepassxc-cli show Database.kdbx accounts.google.com。但它不显示密码。相反,它返回PROTECTED.
谢谢你的帮助
我正在尝试在 Arch linux 上使用 yay 安装 Spotify。但是当我运行yay -S spotify时会发生这种情况:
john@arch-thinkpad ~> yay -S spotify
:: There are 5 providers available for spotify:
:: Repository AUR
1) spotify 2) spotify-dev 3) spotify-legacy 4) spotify094 5) spotio
Enter a number (default=1): 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1] libcurl-gnutls-7.73.0-1
[Aur:1] spotify-1:1.1.42.622-2
1 spotify (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: Downloaded PKGBUILD …Run Code Online (Sandbox Code Playgroud) IntelliJ IDEA 在每次启动时都会显示此消息。
如何在 IntelliJ IDEA 上纠正此警告?
编辑:我在 arch linux 上安装了 yay 的 IntelliJ IDEA 终极版。
我使用yay. 我工作得很好,但最近它开始这样做:
john@arch-thinkpad ~ [1]> intellij-idea-ultimate-edition
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题,以便我可以像过去一样正常运行 intellij IDEA?
谢谢你的帮助
我正在使用 Alacritty 和 Ranger。我也安装了w3m。这是我的一部分~/.config/ranger/rc.conf:
set preview_images true
set preview_images_method w3m
set w3m_offset 0
Run Code Online (Sandbox Code Playgroud)
大多数时候图像根本不显示。只是黑色空间。如果它们出现,它们会在 2 或 3 秒后消失。
当我设置 set 时preview_images_method terminology,它看起来像这样:
我使用的版本:
我应该怎么做才能在 ranger 中预览图像?
谢谢你的帮助
有没有办法只打印可升级的软件包列表?
我正在使用 arch linux 的 pacman (yay)。
谢谢你的帮助
我使用 arch linux 和 i3wm。我的通知不起作用。当我dunst在命令行中输入时,它会响应:
警告:未找到 dunstrc。
当我输入时notify-send --icon=gtk-info Test "This is a test",它会一直运行,直到我用crt+cdunstify --action="replyAction,reply" "Message received"杀死它,而没有任何通知显示。
该/etc/X11/xinit/xinitrc.d/30-dbus.sh文件的内容:
#!/bin/bash
# launches a session dbus instance
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && type dbus-launch >/dev/null; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi
Run Code Online (Sandbox Code Playgroud)
这是我的journalctl:
18:57:43 arch-thinkpad systemd[562]: Starting Dunst notification daemon...
18:57:43 arch-thinkpad dunst[49939]: CRITICAL: Cannot open X11 display.
18:57:43 arch-thinkpad systemd[562]: dunst.service: Main process exited, code=exited, status=1/FAILURE
18:57:43 arch-thinkpad systemd[562]: dunst.service: …Run Code Online (Sandbox Code Playgroud) 我正在尝试让我的指纹传感器 thinkpad x390 Yoga 工作。我printfd使用 yay 安装了软件包。当我尝试运行时fprintd-enroll,出现以下错误:
Using device /net/reactivated/Fprint/Device/0
failed to claim device: GDBus.Error:net.reactivated.Fprint.Error.Internal: Open failed with error: The driver encountered a protocol error with the device.
Run Code Online (Sandbox Code Playgroud)
当我尝试第二次运行它时,我得到以下信息:
Using device /net/reactivated/Fprint/Device/0
failed to claim device: GDBus.Error:net.reactivated.Fprint.Error.Internal: Open failed with error: Device 06cb:00bd is already open
Run Code Online (Sandbox Code Playgroud)
我尝试安装thinkfinger软件包但仍然没有运气。我该如何解决这个问题?
这是我的lsusb输出:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 …Run Code Online (Sandbox Code Playgroud) 当我尝试更新系统时出现jdk-openjdk and jre-openjdk are in conflict 错误:
这是更新尝试的日志:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Searching AUR for updates...
:: Searching databases for updates...
-> Packages not in AUR: bunjs-bin flite1-patched jellyfin-server-bin jellyfin-web-bin js78 libgweather libopenaptx libvterm01 nodejs-lts-gallium progsreiserfs python-backcall
-> Orphan (unmaintained) AUR Packages: anki-official-binary-bundle jdk-jetbrains jetbrains-clion-pj python-gymnasium-notices python-hijri-converter python-jax-jumpy python-pep517
-> Flagged Out Of Date AUR Packages: anki-official-binary-bundle blades-bin …Run Code Online (Sandbox Code Playgroud) arch-linux ×9
java ×3
pacman ×3
intellij ×2
libnotify ×2
device-tree ×1
drivers ×1
fingerprint ×1
freeze ×1
gpg ×1
i3 ×1
ide ×1
images ×1
journalctl ×1
keepassx ×1
kernel ×1
mutt ×1
password ×1
ranger ×1
stdin ×1
stdout ×1
terminology ×1
w3m ×1
x-server ×1
xorg ×1