小编Har*_*ton的帖子

在启动时启动应用程序

任务:

\n\n

启动时启动 xfce4-clipman

\n\n

尝试过:

\n\n

我在正确的位置创建了一个具有正确权限的 sh 脚本:

\n\n
martin@martin:/etc/init.d$ ls -l start_clipman.sh \n-rwxrwxr-x 1 root root 26 \xd0\xbc\xd0\xb0\xd1\x80 12 09:05 start_clipman.sh\n
Run Code Online (Sandbox Code Playgroud)\n\n

sh文件内容:

\n\n
martin@martin:/etc/init.d$ cat start_clipman.sh \n#!/bin/bash\nxfce4-clipman\nmartin@martin:/etc/init.d$ \n
Run Code Online (Sandbox Code Playgroud)\n\n

我跑了

\n\n
martin@martin:/etc/init.d$ sudo update-rc.d start_clipman.sh \ndefaultsinsserv: warning: script 'K01mount_disk.sh' missing LSB tags and overrides\ninsserv: warning: script 'K01start_clipman.sh' missing LSB tags and overrides\ninsserv: warning: script 'start_clipman.sh' missing LSB tags and overrides\ninsserv: warning: script 'mount_disk.sh' missing LSB tags and overrides\n
Run Code Online (Sandbox Code Playgroud)\n\n

潜在问题:

\n\n

当我这样做时:

\n\n
martin@martin:~$ xfce4-clipman\n
Run Code Online (Sandbox Code Playgroud)\n\n …

linux systemd xfce4 xfce4-terminal

4
推荐指数
1
解决办法
8468
查看次数

标签 统计

linux ×1

systemd ×1

xfce4 ×1

xfce4-terminal ×1