`
ggsonic
  • 浏览: 266727 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

config linux start up with only one app - firefox

阅读更多
修改/etc/X11/xinit/Xclients 启动Firefox桌面
# now if we can reach here, either no desktop file was present,
# or the desktop requested is not installed.

#if [ -n "$GSESSION" ]; then
    # by default, we run GNOME.
    #exec "$GSESSION"
#elif [ -n "$STARTKDE" ]; then
    # if GNOME isn't installed, try KDE.
    #exec "$STARTKDE"
#fi

# Failsafe.

# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0

# Argh! Nothing good is installed. Fall back to twm
{
    # gosh, neither fvwm95 nor fvwm2 is available;
    # fall back to failsafe settings
    [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'

#    if [ -x /usr/bin/xclock ] ; then
#       /usr/bin/xclock -geometry 100x100-5+5 &
#    elif [ -x /usr/bin/xclock ] ; then
#       /usr/bin/xclock -geometry 100x100-5+5 &
#    fi
#    if [ -x /usr/bin/xterm ] ; then
#        /usr/bin/xterm -geometry 1024x768-0+0 &
#    fi
    if [ -x /usr/bin/firefox -a -f /usr/share/doc/HTML/index.html ]; then
        /usr/bin/firefox -chrome http://192.168.0.113:5791 -width 1024 -height 768
    fi
    #if [ -x /usr/bin/twm ] ; then
#       exec /usr/bin/twm
#    fi
}

Firefox 的设置
RestoreSession / StartNewSession
url:  about:config
false browser.sessionstore.enabled
install flash-plugin.rpm for firefox

可以修改/etc/X11/xorg.conf 禁用ctrl+alt+backspace
Section "ServerFlags"
        Option  "DontZap"       "1"
EndSection

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics