Lubuntu如何让其自动开机启动?
发表于 : 2012-07-04 15:33
如题,如何操作。想让Thunderbird随机自动启动。
主菜单里面有个“桌面会话设置”的吧,你到那里勾选一下。Eiffi 写了:没有autostart这个目录,我就建立了一个,然后把文件复制过去了,但是重新启动测试,并没有成功。那里的问题?
leafpad .config/openbox/autostartEiffi 写了:第一个有“桌面会话设置”,在首选项里面。但是没有我想选中的程序。
.config/openbox/autostart没有这个目录或者文件。需要自己创建一下?是目录还是文件?
@是什么意思engrossment 写了:通过
1
sudo leafpad /etc/xdg/lxsession/Lubuntu/autostart
添加
1
@/home/realy/.dropbox-dist/dropbox
参考:http://www.zhouwenyi.com/node/7859
对于 LXSession,加上 @ 后 崩溃或意外退出后会自动重启sluding 写了: @是什么意思
参考 http://wiki.lxde.org/en/LXSessionIf a line begins with @, the command following the @ will be automatically re-executed if it crashes.
"@"是lxsession自己定义的符号还是在什么其它标准环境也能使用?vickycq 写了:对于 LXSession,加上 @ 后 崩溃或意外退出后会自动重启sluding 写了: @是什么意思参考 http://wiki.lxde.org/en/LXSessionIf a line begins with @, the command following the @ will be automatically re-executed if it crashes.
是 LXSession 自己定义的。参见 LXSession 源代码中解析配置文件部分:科学之子 写了: "@"是lxsession自己定义的符号还是在什么其它标准环境也能使用?
我这里lxterminal,bash提示@是无效的.
代码: 全选
while ((line = dis.read_line (null)) != null)
{
string first = line[0:1];
switch (first)
{
case ("@"):
var builder = new StringBuilder ();
builder.append(line);
builder.erase(0,1);
string[] command = builder.str.split_set(" ",0);
AppType app = { command[0], command, true, "" };
app_list.add (app);
break;
case ("#"):
/* Commented, skip */
break;
default:
string[] command = line.split_set(" ",0);
AppType app = { command[0], command, false, "" };
app_list.add (app);
break;
}
}