前一篇记录了桌面起来之后隐藏鼠标的方法,结果发现,进桌面之前鼠标箭头就在了。
作为一款成品,本身没有鼠标接口却有鼠标图标是一件很不严谨的事情。
经过一番尝试,最终找到了解决方法。
使用的平台是瑞芯微rk3588 ubuntu系统,桌面为X之GDM3。
vi /usr/bin/X 在里面加入参数-nocursor
如果没有X文件,则在vi /usr/bin/Xorg里面加
最后内容如下:
#!/bin/sh
#
# Execute Xorg.wrap if it exists otherwise execute Xorg directly.
# This allows distros to put the suid wrapper in a separate package.
basedir=/usr/lib/xorg
if [ -x "$basedir"/Xorg.wrap ]; then
exec "$basedir"/Xorg.wrap "$@"
else
exec "$basedir"/Xorg "$@" -nocursor
fi
保存后重新启动即可。