![没有 sudo Eclipse 无法启动](https://linux22.com/image/72031/%E6%B2%A1%E6%9C%89%20sudo%20Eclipse%20%E6%97%A0%E6%B3%95%E5%90%AF%E5%8A%A8.png)
在我的 Fedora (Fedora 22 Workstation) 系统上,我最近安装了 Eclipse ( sudo dnf install eclipse-platform
)。但是,我无法在不使用sudo
.我宁愿不必使用sudo
Eclipse 来启动。我已经尝试过重新安装它。
如果我使用命令输出eclipse
:
(Eclipse:2709): GLib-GObject-WARNING **: The property GtkMisc:ypad is deprecated and shouldn't be used anymore. It will be removed in a future version.
如果我使用 则不会出现上述消息sudo eclipse
。
我也尝试gksu-polkit eclipse
并得到了这个输出:
/usr/bin/xauth: file /home/<my_username>/.Xauthority does not exist /usr/bin/xauth: file /home/<my_username>/.Xauthority does not exist Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
此外,当我运行 时gksu-polkit eclipse
,我会看到一个 Eclipse 错误窗口,其中显示:
The Eclipse executable launcher was unable to find its companion shared library.
答案1
我终于让它发挥作用了(某种程度上)。
我在 GNOME 桌面环境上运行 Fedora 机器,该环境使用 Wayland 窗口系统。当我切换到 X 时,它就成功了。