我正在尝试使用以下命令更改远程计算机上的 Unity Launcher 图标:
gsettings set com.canonical.Unity.Launcher favorites ...
Run Code Online (Sandbox Code Playgroud)
它完美地工作
但是当我这样做时
ssh 127.0.0.1
gsettings set com.canonical.Unity.Launcher favorites ...
Run Code Online (Sandbox Code Playgroud)
我明白了:
(process:9616): dconf-WARNING **: failed to commit changes to dconf: Error spawning
command line `dbus-launch --autolaunch=aaa5bb6eaa7cd50f2af1f10000000004 --binary-syntax
--close-stderr': Child process exited with code 1
Run Code Online (Sandbox Code Playgroud)
这适用于来自 ssh 的任何 gsettings 调用。
问题出在哪儿?
我读过在 Wayland 下,即使是截图也可能是一个问题。但是我在 Sway 中对其进行了测试,效果很好 ( grim -g "$(slurp)" - | wl-copy)。
唯一的问题是Skype。我无法显示我的屏幕。我找到的唯一解决方案是切换到 Xorg。
是Wayland的问题吗?或者 Wayland 没问题,只是没有应用程序可以做到这一点?
我想使用命令行,但不知道此配置的外观以及保存位置。
我有一台 FreeBSD 机器,它有一个/usr/sbin/daemon可以在后台运行我的程序的命令。
问题是如何在 Ubuntu 中做类似的事情?我想要一些可以放在启动脚本中的东西。
我的意思是我的程序在启动时不能将自己置于后台。
我试过:
start-stop-daemon --start --quiet --pidfile $PIDSPATH/$PIDFILE --exec $DAEMON
Run Code Online (Sandbox Code Playgroud)
但它只是启动程序,我必须等待它完成。