终端启动图形化程序界面时报 No protocol specified

有时候也会报这个:Invalid MIT-MAGIC-COOKIE-1 key

我发现,当我用数据线把手机和电脑连一起,然后手机打开 usb 共享网络给电脑用时,启动图像界面的程序就会报Invalid MIT-MAGIC-COOKIE-1 key,取消 usb 共享网络后,就报No protocol specified

虽然是这样子,好像想都不影响使用!

顺便说说另外一个问题 :smile:
启动 qalculate-gtk,警告:AT-SPI: Could not obtain desktop path or name
下面是详细的打印信息

[cqs@localhost:~]$ qalculate-gtk 
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
** (qalculate-gtk:21854): WARNING **: 00:06:35.491: AT-SPI: Could not obtain desktop path or name


** (qalculate-gtk:21854): WARNING **: 00:06:35.510: atk-bridge: get_device_events_reply: unknown signature

** (qalculate-gtk:21854): WARNING **: 00:06:35.510: atk-bridge: get_device_events_reply: unknown signature

** (qalculate-gtk:21854): WARNING **: 00:06:35.510: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (qalculate-gtk:21854): WARNING **: 00:06:35.618: AT-SPI: Could not obtain desktop path or name


** (qalculate-gtk:21854): WARNING **: 00:06:35.645: AT-SPI: Could not obtain desktop path or name


** (qalculate-gtk:21854): WARNING **: 00:06:35.665: AT-SPI: Could not obtain desktop path or name


** (qalculate-gtk:21854): WARNING **: 00:06:35.674: AT-SPI: Could not obtain desktop path or name


** (qalculate-gtk:21854): WARNING **: 00:06:35.674: AT-SPI: Could not obtain desktop path or name


(qalculate-gtk:21854): Gtk-CRITICAL **: 00:06:35.675: gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed

(qalculate-gtk:21854): Gtk-CRITICAL **: 00:06:35.680: gtk_tree_view_scroll_to_cell: assertion 'tree_view->priv->tree != NULL' failed

这个问题解决啦,附上链接:https://blog.csdn.net/linuxchyu/article/details/9745369

当使用与图像显示或显卡有关的程序时,会出现 No protocol specified 提示,这是当前用户没有权限访问 xhost 的原因,将当前用户添加到 xhost 的权限列表就可以了。

添加权限的命令是:xhost SI:localuser:“username”

本主题在最后一个回复创建后60分钟后自动锁定。不再允许添加新回复。