cat > /usr/share/xsessions/pcs.desktop <<-EOF
[Desktop Entry]
Name=chromium
Comment=This session logs you into chromium
Exec=chromium-browser
Icon=
Type=Application
EOF
这个name为chromium选项会在用户登陆界面右上角显示,用于选择登陆程序
/etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
indicators = ~host;~session;~clock;~language;~power
其中session对应就是pcs.desktop设置的session名称,如果不想关机等开关不在登陆界面显示直接将~power字段删除即可
谷歌浏览器全屏问题
在用户家目录下隐藏文件.config
/home/hc/.config/chromium/Preferences 这个文件中设置浏览器相关值
“browser”: {
“window_placement”: {
“bottom”: 1080,
“left”: 0,
“maximized”: true,
“right”: 1920,
“top”: 0,
“work_area_bottom”: 1080,
“work_area_left”: 0,
“work_area_right”: 1920,
“work_area_top”: 0
}
}
文件难以阅读cat Preferences | json_pp > Preferences.bak
修改完之后:mv Preferences.bak Preferences
参考自:https://blog.csdn.net/u013203733/article/details/76209116
禁用登陆界面的关机,重启等功能
/etc/polkit-1/50-local.d/disable-shutdown.pkla
[Disable Shutdown, etc.]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=no
ResultInactive=no
ResultActive=no
参考自:
https://askubuntu.com/questions/570963/
https://ubuntu.dovov.com/2332
网友评论