原文链接:UOS/KYLIN下浏览器如何实现开机全屏自启动02
hello,大家好啊,今天给大家带来第二篇在统信UOS及麒麟KYLINOS上如何实现浏览器开机自启动并且全屏显示的文章,今天先给大家演示在麒麟桌面操作系统谷歌浏览器实现本功能的文章,欢迎大家浏览分享转发。
案例二:以KYLIN上的谷歌浏览器为例,设置Google浏览器实现开机启动,并且页面为全屏显示
1、查看当前谷歌浏览器版本
pdsyw@kylin-XNC30:~/桌面$ apt policy google-chrome-stable
google-chrome-stable:
已安装:116.0.5845.96-1
候选: 116.0.5845.96-1
版本列表:
*** 116.0.5845.96-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
100 /var/lib/dpkg/status
108.0.5359.124-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
107.0.5304.68-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
105.0.5195.102-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
104.0.5112.101-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
104.0.5112.79-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
103.0.5060.114-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
102.0.5005.115-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
100.0.4896.127-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
91.0.4472.114-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
89.0.4389.72-1 500
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
500 http://archive2.kylinos.cn/deb/kylin/production/PART-V10-SP1/custom/partner/V10-SP1 default/all amd64 Packages
pdsyw@kylin-XNC30:~/桌面$
2、编辑/usr/share/applications/下google-chrome.desktop文件,分别在三处地方添加--start-fullscreen内容
pdsyw@kylin-XNC30:~/桌面$ sudo -i
[sudo] pdsyw 的密码:
root@kylin-XNC30:~# cd /usr/share/applications/
root@kylin-XNC30:/usr/share/applications# ls -lrt google-chrome.desktop
-rw-r--r-- 1 root root 8515 8月 12 05:15 google-chrome.desktop
root@kylin-XNC30:/usr/share/applications#
root@kylin-XNC30:/usr/share/applications#
root@kylin-XNC30:/usr/share/applications#
root@kylin-XNC30:/usr/share/applications#
root@kylin-XNC30:/usr/share/applications#
root@kylin-XNC30:/usr/share/applications# vi google-chrome.desktop
root@kylin-XNC30:/usr/share/applications#
root@kylin-XNC30:/usr/share/applications# grep start-fullscreen google-chrome.desktop
Exec=/usr/bin/google-chrome-stable --start-fullscreen %U
Exec=/usr/bin/google-chrome-stable --start-fullscreen
Exec=/usr/bin/google-chrome-stable --start-fullscreen --incognito
root@kylin-XNC30:/usr/share/applications#
3、修改完成后的google-chrome.desktop文件内容
[Desktop Entry]
Version=1.0
Name=Google Chrome
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
GenericName=Web Browser
GenericName[ar]=????? ??????
GenericName[bg]=Уеб браузър
GenericName[ca]=Navegador web
GenericName[cs]=WWW prohlí?e?
GenericName[da]=Browser
GenericName[de]=Web-Browser
GenericName[el]=Περιηγητ?? ιστο?
GenericName[en_GB]=Web Browser
GenericName[es]=Navegador web
GenericName[et]=Veebibrauser
GenericName[fi]=WWW-selain
GenericName[fr]=Navigateur Web
GenericName[gu]=??? ???????
GenericName[he]=????? ???????
GenericName[hi]=??? ????????
GenericName[hu]=Webb?ngész?
GenericName[it]=Browser Web
GenericName[ja]=ウェブブラウザ
GenericName[kn]=??? ??????
GenericName[ko]=? ????
GenericName[lt]=?iniatinklio nar?ykl?
GenericName[lv]=Tīmek?a pārlūks
GenericName[ml]=???? ????????
GenericName[mr]=??? ???????
GenericName[nb]=Nettleser
GenericName[nl]=Webbrowser
GenericName[pl]=Przegl?darka WWW
GenericName[pt]=Navegador Web
GenericName[pt_BR]=Navegador da Internet
GenericName[ro]=Navigator de Internet
GenericName[ru]=Веб-браузер
GenericName[sl]=Spletni brskalnik
GenericName[sv]=Webbl?sare
GenericName[ta]=???? ?????
GenericName[th]=???????????????
GenericName[tr]=Web Taray?c?
GenericName[uk]=Нав?гатор Тенет
GenericName[zh_CN]=网页浏览器
GenericName[zh_HK]=網頁瀏覽器
GenericName[zh_TW]=網頁瀏覽器
# Not translated in KDE, from Epiphany 2.26.1-0ubuntu1.
GenericName[bn]=???? ????????
GenericName[fil]=Web Browser
GenericName[hr]=Web preglednik
GenericName[id]=Browser Web
GenericName[or]=????? ???????
GenericName[sk]=WWW prehliada?
GenericName[sr]=Интернет прегледник
GenericName[te]=????? ???????
GenericName[vi]=B? duy?t Web
# Gnome and KDE 3 uses Comment.
Comment=Access the Internet
Comment[ar]=?????? ??? ????????
Comment[bg]=Достъп до интернет
Comment[bn]=??????????? ????????? ????
Comment[ca]=Accedeix a Internet
Comment[cs]=P?ístup k internetu
Comment[da]=F? adgang til internettet
Comment[de]=Internetzugriff
Comment[el]=Πρ?σβαση στο Διαδ?κτυο
Comment[en_GB]=Access the Internet
Comment[es]=Accede a Internet.
Comment[et]=P??s Internetti
Comment[fi]=K?yt? interneti?
Comment[fil]=I-access ang Internet
Comment[fr]=Accéder à Internet
Comment[gu]=??????? ?????? ???
Comment[he]=???? ?? ????????
Comment[hi]=??????? ?? ????? ??????? ????
Comment[hr]=Pristup Internetu
Comment[hu]=Internetelérés
Comment[id]=Akses Internet
Comment[it]=Accesso a Internet
Comment[ja]=インターネットにアクセス
Comment[kn]=????????? ????? ?????????
Comment[ko]=??? ??
Comment[lt]=Interneto prieiga
Comment[lv]=Piek?ūt internetam
Comment[ml]=?????????????? ??????? ???????
Comment[mr]=???????????? ?????? ???
Comment[nb]=G? til Internett
Comment[nl]=Verbinding maken met internet
Comment[or]=?????????? ?????? ??????
Comment[pl]=Skorzystaj z internetu
Comment[pt]=Aceder à Internet
Comment[pt_BR]=Acessar a internet
Comment[ro]=Accesa?i Internetul
Comment[ru]=Доступ в Интернет
Comment[sk]=Prístup do siete Internet
Comment[sl]=Dostop do interneta
Comment[sr]=Приступите Интернету
Comment[sv]=G? ut p? Internet
Comment[ta]=???????? ????????
Comment[te]=???????????? ??????? ????????
Comment[th]=???????????????????
Comment[tr]=?nternet'e eri?in
Comment[uk]=Доступ до ?нтернету
Comment[vi]=Truy c?p Internet
Comment[zh_CN]=访问互联网
Comment[zh_HK]=連線到網際網路
Comment[zh_TW]=連線到網際網路
Exec=/usr/bin/google-chrome-stable --start-fullscreen %U
StartupNotify=true
Terminal=false
Icon=google-chrome
Type=Application
Categories=Network;WebBrowser;
MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=New Window
Name[am]=??? ????
Name[ar]=????? ?????
Name[bg]=Нов прозорец
Name[bn]=???? ??????
Name[ca]=Finestra nova
Name[cs]=Nové okno
Name[da]=Nyt vindue
Name[de]=Neues Fenster
Name[el]=Ν?ο Παρ?θυρο
Name[en_GB]=New Window
Name[es]=Nueva ventana
Name[et]=Uus aken
Name[fa]=????? ????
Name[fi]=Uusi ikkuna
Name[fil]=New Window
Name[fr]=Nouvelle fenêtre
Name[gu]=??? ?????
Name[hi]=?? ?????
Name[hr]=Novi prozor
Name[hu]=új ablak
Name[id]=Jendela Baru
Name[it]=Nuova finestra
Name[iw]=???? ???
Name[ja]=新規ウインドウ
Name[kn]=??? ?????
Name[ko]=? ?
Name[lt]=Naujas langas
Name[lv]=Jauns logs
Name[ml]=????? ???????
Name[mr]=???? ?????
Name[nl]=Nieuw venster
Name[no]=Nytt vindu
Name[pl]=Nowe okno
Name[pt]=Nova janela
Name[pt_BR]=Nova janela
Name[ro]=Fereastr? nou?
Name[ru]=Новое окно
Name[sk]=Nové okno
Name[sl]=Novo okno
Name[sr]=Нови прозор
Name[sv]=Nytt f?nster
Name[sw]=Dirisha Jipya
Name[ta]=????? ??????
Name[te]=??????? ?????
Name[th]=????????????
Name[tr]=Yeni Pencere
Name[uk]=Нове в?кно
Name[vi]=C?a s? M?i
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
Exec=/usr/bin/google-chrome-stable --start-fullscreen
[Desktop Action new-private-window]
Name=New Incognito Window
Name[ar]=????? ????? ?????? ???????
Name[bg]=Нов прозорец ?инкогнито“
Name[bn]=???? ???????? ??????
Name[ca]=Finestra d'incògnit nova
Name[cs]=Nové anonymní okno
Name[da]=Nyt inkognitovindue
Name[de]=Neues Inkognito-Fenster
Name[el]=Ν?ο παρ?θυρο για αν?νυμη περι?γηση
Name[en_GB]=New Incognito window
Name[es]=Nueva ventana de incógnito
Name[et]=Uus inkognito aken
Name[fa]=????? ???? ???? ??????
Name[fi]=Uusi incognito-ikkuna
Name[fil]=Bagong Incognito window
Name[fr]=Nouvelle fenêtre de navigation privée
Name[gu]=??? ???? ?????
Name[hi]=?? ????? ?????
Name[hr]=Novi anoniman prozor
Name[hu]=új Inkognitóablak
Name[id]=Jendela Penyamaran baru
Name[it]=Nuova finestra di navigazione in incognito
Name[iw]=???? ??? ?????? ????
Name[ja]=新しいシークレット ウィンドウ
Name[kn]=??? ?????? ?????
Name[ko]=? ??? ?
Name[lt]=Naujas inkognito langas
Name[lv]=Jauns inkognito re?īma logs
Name[ml]=????? ??? ????????? ???????
Name[mr]=???? ????? ?????
Name[nl]=Nieuw incognitovenster
Name[no]=Nytt inkognitovindu
Name[pl]=Nowe okno incognito
Name[pt]=Nova janela de navega??o anónima
Name[pt_BR]=Nova janela an?nima
Name[ro]=Fereastr? nou? incognito
Name[ru]=Новое окно в режиме инкогнито
Name[sk]=Nové okno inkognito
Name[sl]=Novo okno brez bele?enja zgodovine
Name[sr]=Нови прозор за прегледа?е без архивира?а
Name[sv]=Nytt inkognitof?nster
Name[ta]=????? ????????? ??????
Name[te]=??????? ?????? ?????
Name[th]=???????????????????????????
Name[tr]=Yeni Gizli pencere
Name[uk]=Нове в?кно в режим? анон?много перегляду
Name[vi]=C?a s? ?n danh m?i
Name[zh_CN]=新建隐身窗口
Name[zh_TW]=新增無痕式視窗
Exec=/usr/bin/google-chrome-stable --start-fullscreen --incognito
4、点击开始菜单,打开谷歌浏览器
5、如图所示,已经是全屏显示模式
6、将谷歌浏览器添加到桌面快捷方式
7、拷贝桌面上的google-chrome.desktop 到 ~/.config/autostart/下,重启电脑查看是否开机自启动生效
pdsyw@kylin-XNC30:~/桌面$ ls -ltr
总用量 16
drwxrwxr-x 2 pdsyw pdsyw 4096 9月 13 17:07 截图
-rwxr-xr-x 1 pdsyw pdsyw 8572 9月 18 16:05 google-chrome.desktop
pdsyw@kylin-XNC30:~/桌面$ cp google-chrome.desktop ~/.config/autostart/
pdsyw@kylin-XNC30:~/桌面$ ls -tlr ~/.config/autostart/
总用量 12
-rwxr-xr-x 1 pdsyw pdsyw 8572 9月 18 16:05 google-chrome.desktop
pdsyw@kylin-XNC30:~/桌面$