这是反复出现的问题,但我不能让一个程序(conky)在GNOME 3启动时自动启动。在~/.config/autostart中,我有以下文件:
cat ~/.config/autostart/conky.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=conky
Comment=A startup script for conky
Exec=~/bin/conky_startup
Terminal=true~/bin/conky_startup如下:
cat ~/bin/conky_startup
#!/usr/bin/env bash
/usr/bin/conky --pause 10 -c ~/conky/white_conky &当我执行~/bin/conky_startup时,conky就开始了,没有任何问题。但是,在启动时,脚本无法执行conky。为什么?
发布于 2018-07-25 19:52:37
我找到了工作的解决方案。
[Desktop Entry]
Name=Conky
GenericName=background monitor
Comment=Keep a background eye on your system
Exec=conky &
Terminal=false
Type=Application
Icon=conky
Categories=System;
StartupNotify=false
Name[en_US]=conkyhttps://unix.stackexchange.com/questions/458427
复制相似问题