LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 568|回复: 2

[solved]有人用lxde吗?

[复制链接]
发表于 2009-8-26 11:10:17 | 显示全部楼层 |阅读模式
请把startlxde文件的内容贴一份。感谢

  1. cat `which startlxde`
复制代码
发表于 2009-8-26 12:22:44 | 显示全部楼层
#!/bin/sh

if [ -z "$XDG_CONFIG_HOME" ]; then
    export XDG_CONFIG_HOME="$HOME/.config"
fi

# Ensure the existance of pcmanfm config file
PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm"
if [ ! -f "$PCMANFM_CONF_DIR/main.lxde" ]; then
    mkdir -p "$PCMANFM_CONF_DIR"
    cp /usr/share/lxde/pcmanfm/main.lxde "$PCMANFM_CONF_DIR/main.lxde"
fi

# Ensure the existance of openbox config file
OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
    mkdir -p "$OPENBOX_CONF_DIR"
    cp /usr/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
fi

# Enable GTK+2 integration for OpenOffice.org, if available.
export SAL_USE_VCLPLUGIN=gtk

# Start the LXDE session
exec /usr/bin/lxsession -s LXDE
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-26 17:25:40 | 显示全部楼层
  1. [quote]Post by [i]FreemanZY;2020441[/i]
  2. #!/bin/sh

  3. if [ -z "$XDG_CONFIG_HOME" ]; then
  4.     export XDG_CONFIG_HOME="$HOME/.config"
  5. fi

  6. # Ensure the existance of pcmanfm config file
  7. PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm"
  8. if [ ! -f "$PCMANFM_CONF_DIR/main.lxde" ]; then
  9.     mkdir -p "$PCMANFM_CONF_DIR"
  10.     cp /usr/share/lxde/pcmanfm/main.lxde "$PCMANFM_CONF_DIR/main.lxde"
  11. fi

  12. # Ensure the existance of openbox config file
  13. OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
  14. if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
  15.     mkdir -p "$OPENBOX_CONF_DIR"
  16.     cp /usr/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
  17. fi

  18. # Enable GTK+2 integration for OpenOffice.org, if available.
  19. export SAL_USE_VCLPLUGIN=gtk

  20. # Start the LXDE session
  21. exec /usr/bin/lxsession -s LXDE [/quote]
复制代码
感谢;)wold patch
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表