另一个窗口管理器 (Xfwm4) 已在屏幕上运行:0.0 要替换当前窗口管理器,请尝试“--replace”

另一个窗口管理器 (Xfwm4) 已在屏幕上运行:0.0 要替换当前窗口管理器,请尝试“--replace”

在 Kali Linux 中打开新的终端窗口时,我收到以下错误:

Another Window Manager (Xfwm4) is already running on screen :0.0
To replace the current window manager, try "--replace"

(xfwm4:11241): xfwm4-WARNING **: 21:04:22.977: Could not find a screen to manage, exiting

在此输入图像描述

我尝试过运行xfwm4 --replace,但这并不能解决问题。我也尝试过set -m,并重新启动lightdmdbus但到目前为止没有任何效果。

运行时发现如下错误sudo journalctl -u lightdm

Sep 09 11:52:55 kali systemd[1]: Starting Light Display Manager...
Sep 09 11:52:55 kali systemd[1]: Started Light Display Manager.
Sep 09 11:52:55 kali lightdm[811]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not >
Sep 09 11:52:57 kali lightdm[975]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not >
Sep 09 11:52:57 kali lightdm[975]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=132) by (uid=0)
Sep 09 11:54:35 kali lightdm[1168]: gkr-pam: unable to locate daemon control file
Sep 09 11:54:35 kali lightdm[1168]: gkr-pam: stashed password to try later in open session
Sep 09 11:54:35 kali lightdm[1168]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not>
Sep 09 11:54:35 kali lightdm[1168]: pam_unix(lightdm:session): session opened for user kali(uid=1000) by (uid=0)
Sep 09 11:54:35 kali lightdm[1168]: gkr-pam: unlocked login keyring
Sep 09 13:57:58 kali systemd[1]: Stopping Light Display Manager...
Sep 09 13:57:58 kali systemd[1]: lightdm.service: Deactivated successfully.
Sep 09 13:57:58 kali systemd[1]: Stopped Light Display Manager.
Sep 09 13:57:58 kali systemd[1]: lightdm.service: Consumed 22.821s CPU time.

我真的很好奇为什么会发生这种情况。任何帮助是极大的赞赏。

答案1

问题出在你的~/.bashrc(或者~/.zshrc如果你使用的是 zsh)。在该文件中有一行执行命令xfwm4。因此,每次打开新的终端会话时,都会执行此行。对此的快速解决方案是编辑文件并删除或注释掉该行。

相关内容