init repo

This commit is contained in:
Dmitry Isaenko 2024-10-16 23:08:29 +03:00
commit f0ee93ab71
10 changed files with 588 additions and 0 deletions

23
README.md Normal file
View file

@ -0,0 +1,23 @@
Chrome
Deveriative work of: https://github.com/flathub/com.google.Chrome
This application is in no way affiliated with Google or any of its partners.
#### Build
Go to repo dir first
```
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir com.google.Chrome79.yaml
```
#### Package
`flatpak build-bundle repo hello.flatpak com.google.Chrome79 --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo`
### Run
`flatpak run com.google.Chrome79`
### Remarks
Application doesn't use sandbox and executes with `--no-sandbox` option. If you know how to fix that and make it work along with sandbox feature please do not hesitate to send a PR. The goal it to provide perfect functionality as it were in old good times.

11
apply_extra.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/sh
set -e
bsdtar -Oxf chrome.deb data.tar.xz |
bsdtar -xf - \
--strip-components=4 \
--exclude='./opt/google/chrome/nacl*' \
./opt/google/chrome
rm chrome.deb
install -Dm 755 /app/bin/stub_sandbox chrome-sandbox

19
chrome.sh Normal file
View file

@ -0,0 +1,19 @@
#!/usr/bin/bash
# Merge the policies with the host ones.
policy_root=/etc/opt/chrome/policies
for policy_type in managed recommended enrollment; do
policy_dir="$policy_root/$policy_type"
mkdir -p "$policy_dir"
if [[ -d "/run/host/$policy_root/$policy_type" ]]; then
find "/run/host/$policy_root/$policy_type" -type f -name '*' \
-exec ln -sf '{}' "$policy_root/$policy_type" \;
fi
done
mkdir "${XDG_CONFIG_HOME}/google-chrome" 2> /dev/null
touch "${XDG_CONFIG_HOME}/google-chrome/WidevineCdm"
exec cobalt "--no-sandbox $@"

2
cobalt.ini Normal file
View file

@ -0,0 +1,2 @@
[Application]
EntryPoint=/app/extra/chrome

221
com.google.Chrome79.desktop Normal file
View file

@ -0,0 +1,221 @@
[Desktop Entry]
Version=1.0
Name=Google Chrome 79
# 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 duyt 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 cp Internet
Comment[zh_CN]=访
Comment[zh_HK]=
Comment[zh_TW]=
Exec=/app/bin/chrome %U
StartupNotify=true
Terminal=false
Icon=com.google.Chrome79
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]=Ca s Mi
Name[zh_CN]=
Name[zh_TW]=
Exec=/app/bin/chrome
[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]=Ca s n danh mi
Name[zh_CN]=
Name[zh_TW]=
Exec=/app/bin/chrome --incognito

View file

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 the Chromium authors, with modifications -->
<component type="desktop">
<id>com.google.Chrome79</id>
<launchable type="desktop-id">com.google.Chrome79.desktop</launchable>
<name>Google Chrome 79</name>
<developer id="com.google">
<name>Google</name>
</developer>
<summary>The browser built to be yours</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LicenseRef-proprietary</project_license>
<url type="homepage">https://chrome.google.com/</url>
<content_rating type="oars-1.1"/>
<update_contact>rymg19_at_gmail.com</update_contact>
<description>
<p>Google Chrome 79 is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.</p>
<p>NOTE: This wrapper is not verified by, affiliated with, or supported by Google.</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://www.google.com/chrome/static/images/dev-components/chrome-gallery-1.webp</image>
</screenshot>
<screenshot>
<image>https://www.google.com/chrome/static/images/dev-components/chrome-gallery-3.webp</image>
</screenshot>
<screenshot>
<image>https://www.google.com/chrome/static/images/dev-components/chrome-gallery-5.webp</image>
</screenshot>
</screenshots>
<releases>
<release version="129.0.6668.100-1" date="2024-10-08"/>
<release version="129.0.6668.89-1" date="2024-10-01"/>
<release date="2024-09-23" version="129.0.6668.70-1"/>
<release date="2024-09-16" version="129.0.6668.58-1"/>
<release date="2024-09-10" version="128.0.6613.137-1"/>
<release date="2024-08-30" version="128.0.6613.119-1"/>
<release date="2024-08-28" version="128.0.6613.113-1"/>
</releases>
</component>

119
com.google.Chrome79.svg Normal file
View file

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 48 48"
height="48"
width="48"
version="1.1"
id="svg9"
sodipodi:docname="com.google.Chrome79.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview9"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="15.320426"
inkscape:cx="9.7255784"
inkscape:cy="31.624448"
inkscape:window-width="2415"
inkscape:window-height="1643"
inkscape:window-x="105"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg9" />
<defs
id="defs6">
<linearGradient
id="a"
x1="3.2173"
y1="15"
x2="44.7812"
y2="15"
gradientUnits="userSpaceOnUse">
<stop
offset="0"
stop-color="#d93025"
id="stop1" />
<stop
offset="1"
stop-color="#ea4335"
id="stop2" />
</linearGradient>
<linearGradient
id="b"
x1="20.7219"
y1="47.6791"
x2="41.5039"
y2="11.6837"
gradientUnits="userSpaceOnUse">
<stop
offset="0"
stop-color="#fcc934"
id="stop3" />
<stop
offset="1"
stop-color="#fbbc04"
id="stop4" />
</linearGradient>
<linearGradient
id="c"
x1="26.5981"
y1="46.5015"
x2="5.8161"
y2="10.506"
gradientUnits="userSpaceOnUse">
<stop
offset="0"
stop-color="#1e8e3e"
id="stop5" />
<stop
offset="1"
stop-color="#34a853"
id="stop6" />
</linearGradient>
</defs>
<circle
cx="24"
cy="23.9947"
r="12"
style="fill:#fff"
id="circle6" />
<path
d="M3.2154,36A24,24,0,1,0,12,3.2154,24,24,0,0,0,3.2154,36ZM34.3923,18A12,12,0,1,1,18,13.6077,12,12,0,0,1,34.3923,18Z"
style="fill:none"
id="path6" />
<path
d="M24,12H44.7812a23.9939,23.9939,0,0,0-41.5639.0029L13.6079,30l.0093-.0024A11.9852,11.9852,0,0,1,24,12Z"
style="fill:url(#a)"
id="path7" />
<circle
cx="24"
cy="24"
r="9.5"
style="fill:#1a73e8"
id="circle7" />
<path
d="M34.3913,30.0029,24.0007,48A23.994,23.994,0,0,0,44.78,12.0031H23.9989l-.0025.0093A11.985,11.985,0,0,1,34.3913,30.0029Z"
style="fill:url(#b)"
id="path8" />
<path
d="M13.6086,30.0031,3.218,12.006A23.994,23.994,0,0,0,24.0025,48L34.3931,30.0029l-.0067-.0068a11.9852,11.9852,0,0,1-20.7778.007Z"
style="fill:url(#c)"
id="path9" />
<path
style="color:#000000;-inkscape-font-specification:'Droid Sans';fill:#323232;stroke-linejoin:round;-inkscape-stroke:none;paint-order:stroke fill markers"
d="m 37.742187,19.847656 c -1.28472,0 -2.517919,0.216584 -3.648437,0.679688 a 2.0002,2.0002 0 0 0 -0.0078,0.0039 c -1.110187,0.460322 -2.103536,1.151558 -2.904296,2.035156 a 2.0002,2.0002 0 0 0 -0.002,0.002 c -0.793777,0.877334 -1.387076,1.934866 -1.794921,3.107422 a 2.0002,2.0002 0 0 0 -0.0059,0.01172 c -0.405119,1.189221 -0.589844,2.478871 -0.589844,3.847656 0,1.286556 0.174924,2.498422 0.564454,3.613281 a 2.0002,2.0002 0 0 0 0.0098,0.02734 c 0.394159,1.077368 0.973642,2.052256 1.738281,2.859375 0.768433,0.811123 1.71948,1.437023 2.773438,1.847656 a 2.0002,2.0002 0 0 0 0.02148,0.0078 c 1.055968,0.397702 2.199488,0.582031 3.392578,0.582031 0.744534,0 1.459041,-0.08694 2.144532,-0.267578 -0.132689,0.327804 -0.210712,0.733848 -0.382813,1.007813 -0.349081,0.54599 -0.785297,0.956142 -1.416015,1.296875 -0.525636,0.283964 -1.343428,0.49414 -2.517579,0.49414 -0.354893,0 -0.717932,-0.02546 -1.089843,-0.07617 -0.337075,-0.04596 -0.606301,-0.114315 -0.808594,-0.189453 a 2.0002,2.0002 0 0 0 -2.695313,1.875 v 2.4375 a 2.0002,2.0002 0 0 0 1.435547,1.917969 c 0.297282,0.08744 0.594109,0.147425 0.902344,0.189453 0.234472,0.03198 0.473942,0.05595 0.714844,0.07813 0.296088,0.03862 0.593253,0.06519 0.890625,0.07813 0.263467,0.01146 0.511125,0.01758 0.74414,0.01758 1.555842,0 2.981971,-0.197091 4.273438,-0.640625 a 2.0002,2.0002 0 0 0 0.01758,-0.0059 c 1.228203,-0.434213 2.338072,-1.044745 3.28125,-1.841797 0.92002,-0.777481 1.689106,-1.712017 2.28125,-2.767578 a 2.0002,2.0002 0 0 0 0.0039,-0.0098 c 0.558258,-1.007291 0.99376,-2.085152 1.304688,-3.220703 0.3126,-1.103978 0.524045,-2.252185 0.638672,-3.439453 0.121103,-1.159219 0.183594,-2.320125 0.183593,-3.480469 0,-1.85803 -0.207079,-3.535502 -0.666015,-5.037109 -0.443054,-1.459292 -1.071537,-2.749577 -1.929688,-3.822266 -0.843789,-1.054737 -1.896564,-1.893422 -3.101562,-2.433594 -1.169863,-0.524421 -2.446352,-0.785156 -3.75586,-0.785156 z m -24.828124,0.328125 a 2.0002,2.0002 0 0 0 -2,2 v 2.59375 a 2.0002,2.0002 0 0 0 2,2 h 8.732421 l -7.582031,17.453125 a 2.0002,2.0002 0 0 0 1.833985,2.796875 h 3.031249 a 2.0002,2.0002 0 0 0 1.841797,-1.222656 L 29.443359,25.21875 a 2.0002,2.0002 0 0 0 0.158203,-0.777344 v -2.265625 a 2.0002,2.0002 0 0 0 -2,-2 z m 29.919921,4.808594 0.02539,0.03516 c -0.0041,-0.0062 -0.01148,-0.0094 -0.01563,-0.01563 -0.0041,-0.006 -0.0056,-0.01357 -0.0098,-0.01953 z m -5.060547,1.269531 c 0.459047,0 0.73253,0.08756 0.970704,0.230469 0.325298,0.195179 0.568563,0.426087 0.787109,0.753906 a 2.0002,2.0002 0 0 0 0.02344,0.03516 c 0.246124,0.352556 0.435666,0.756084 0.56836,1.25 a 2.0002,2.0002 0 0 0 0.0098,0.0332 c 0.148144,0.514604 0.21875,1.016529 0.21875,1.52539 0,0.194445 -0.03815,0.395565 -0.162109,0.666016 a 2.0002,2.0002 0 0 0 -0.01367,0.03125 c -0.112004,0.25601 -0.266381,0.478323 -0.492187,0.701172 -0.217702,0.204913 -0.496149,0.389842 -0.869141,0.554687 -0.299864,0.123409 -0.658421,0.203125 -1.134766,0.203125 -0.471755,0 -0.800325,-0.07391 -1.03125,-0.169922 -0.243213,-0.105297 -0.395818,-0.221692 -0.537109,-0.388672 -0.150097,-0.177387 -0.279413,-0.410035 -0.386719,-0.748046 -0.103169,-0.368777 -0.169922,-0.829177 -0.169922,-1.396485 0,-0.757337 0.08737,-1.345459 0.210938,-1.757812 0.142682,-0.451149 0.312871,-0.748154 0.478516,-0.941407 0.18344,-0.214013 0.34813,-0.326421 0.560546,-0.414062 0.263264,-0.104341 0.569237,-0.167969 0.96875,-0.167969 z m 6.203125,1.197266 0.0098,0.0332 c -0.0015,-0.0057 -0.0063,-0.0099 -0.0078,-0.01563 -0.0016,-0.0057 -3.06e-4,-0.01186 -0.002,-0.01758 z m -0.136718,4.93164 -0.01367,0.0332 c 0.0028,-0.0061 0.0011,-0.01345 0.0039,-0.01953 0.0023,-0.0052 0.0075,-0.0085 0.0098,-0.01367 z"
id="path1" />
<path
style="color:#000000;-inkscape-font-specification:'Droid Sans';fill:#ffffff;stroke-linejoin:round;-inkscape-stroke:none;paint-order:stroke fill markers"
d="m 15.897938,45.019398 8.796875,-20.25 h -11.78125 v -2.59375 h 14.6875 v 2.265625 l -8.671875,20.578125 z m 29.296875,-13.09375 q 0,1.640625 -0.171875,3.28125 -0.15625,1.625 -0.578125,3.109375 -0.40625,1.484375 -1.125,2.78125 -0.71875,1.28125 -1.828125,2.21875 -1.109375,0.9375 -2.65625,1.484375 -1.546875,0.53125 -3.625,0.53125 -0.296875,0 -0.65625,-0.01563 -0.359375,-0.01563 -0.71875,-0.0625 -0.359375,-0.03125 -0.703125,-0.07813 -0.34375,-0.04687 -0.609375,-0.125 v -2.4375 q 0.546875,0.203125 1.234375,0.296875 0.6875,0.09375 1.359375,0.09375 2.109375,0 3.46875,-0.734375 1.359375,-0.734375 2.15625,-1.984375 0.796875,-1.265625 1.125,-2.9375 0.34375,-1.671875 0.421875,-3.53125 h -0.203125 q -0.3125,0.5625 -0.75,1.046875 -0.4375,0.484375 -1.03125,0.84375 -0.59375,0.359375 -1.34375,0.5625 -0.75,0.203125 -1.671875,0.203125 -1.484375,0 -2.6875,-0.453125 -1.203125,-0.46875 -2.046875,-1.359375 -0.84375,-0.890625 -1.3125,-2.171875 -0.453125,-1.296875 -0.453125,-2.953125 0,-1.78125 0.484375,-3.203125 0.5,-1.4375 1.390625,-2.421875 0.90625,-1 2.1875,-1.53125 1.296875,-0.53125 2.890625,-0.53125 1.578125,0 2.9375,0.609375 1.359375,0.609375 2.359375,1.859375 1,1.25 1.578125,3.15625 0.578125,1.890625 0.578125,4.453125 z m -7.421875,-7.671875 q -0.9375,0 -1.71875,0.3125 -0.765625,0.3125 -1.328125,0.96875 -0.5625,0.65625 -0.875,1.65625 -0.296875,0.984375 -0.296875,2.34375 0,1.09375 0.25,1.96875 0.265625,0.859375 0.78125,1.46875 0.515625,0.609375 1.28125,0.9375 0.78125,0.328125 1.8125,0.328125 1.0625,0 1.921875,-0.359375 0.859375,-0.375 1.46875,-0.953125 0.609375,-0.59375 0.9375,-1.34375 0.34375,-0.75 0.34375,-1.5 0,-1.046875 -0.296875,-2.078125 -0.28125,-1.046875 -0.859375,-1.875 -0.5625,-0.84375 -1.421875,-1.359375 -0.859375,-0.515625 -2,-0.515625 z"
id="path2" />
</svg>

After

Width:  |  Height:  |  Size: 8.6 KiB

127
com.google.Chrome79.yaml Normal file
View file

@ -0,0 +1,127 @@
app-id: com.google.Chrome79
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.chromium.Chromium.BaseApp
base-version: '23.08'
command: chrome
separate-locales: false
build-options:
no-debuginfo: true
tags:
- proprietary
finish-args:
- --device=all
- --env=GTK_PATH=/app/lib/gtkmodules
- --share=ipc
- --share=network
- --socket=cups
- --socket=pcsc # FIDO2
- --socket=pulseaudio
- --socket=x11
- --socket=wayland
- --require-version=1.8.2
- --system-talk-name=org.bluez
- --system-talk-name=org.freedesktop.UPower
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.freedesktop.secrets
- --talk-name=org.gnome.SessionManager
- --talk-name=org.kde.StatusNotifierWatcher
- --system-talk-name=org.freedesktop.Avahi
- --own-name=org.mpris.MediaPlayer2.chromium.*
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --filesystem=host-etc
- --filesystem=xdg-run/pipewire-0
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-music
- --filesystem=xdg-videos
- --filesystem=xdg-pictures
# For GNOME proxy resolution
- --filesystem=xdg-run/dconf
- --filesystem=~/.config/dconf:ro
- --talk-name=ca.desrt.dconf
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
- --env=GIO_EXTRA_MODULES=/app/lib/gio/modules
- --env=GSETTINGS_BACKEND=dconf
# For KDE proxy resolution (KDE5 only)
- --filesystem=~/.config/kioslaverc
modules:
- name: dconf
buildsystem: meson
config-opts:
- -Dbash_completion=false
- -Dman=false
- -Dvapi=false
cleanup:
- /etc
- /include
- ca.desrt.dconf.service
- dconf.service
- dconf-service
- '*.pc'
sources:
- type: archive
url: https://download.gnome.org/sources/dconf/0.40/dconf-0.40.0.tar.xz
sha256: cf7f22a4c9200421d8d3325c5c1b8b93a36843650c9f95d6451e20f0bcb24533
x-checker-data:
type: gnome
name: dconf
stable-only: true
# From: https://src.fedoraproject.org/rpms/dconf
- type: patch
path: dconf-override.patch
- name: zypak
sources:
- type: git
url: https://github.com/refi64/zypak
tag: v2024.01.17
commit: ded79a2f8a509adc21834b95a9892073d4a91fdc
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- name: chrome
buildsystem: simple
build-commands:
- install -Dm 755 chrome.sh /app/bin/chrome
- install -Dm 755 apply_extra.sh /app/bin/apply_extra
- install -Dm 755 stub_sandbox.sh /app/bin/stub_sandbox
- install -Dm 644 -t /app/etc cobalt.ini
- install -Dm 644 -t /app/share/applications com.google.Chrome79.desktop
- install -Dm 644 -t /app/share/metainfo com.google.Chrome79.metainfo.xml
- install -Dm 644 com.google.Chrome79.svg /app/share/icons/hicolor/scalable/apps/com.google.Chrome79.svg
sources:
- type: extra-data
url: https://www.slimjet.com/chrome/download-chrome.php?file=files%2F79.0.3945.88%2Fgoogle-chrome-stable_current_amd64.deb
sha256: 9f2ec10cfc313de21ca7c7100b50e088df741cd20812e76890e3d840ac7584cc
size: 62181264
filename: chrome.deb
only-arches: [x86_64]
x-checker-data:
type: debian-repo
root: https://dl.google.com/linux/chrome/deb
dist: stable
component: main
package-name: google-chrome-stable
is-main-source: true
- type: script
dest-filename: stub_sandbox.sh
commands:
- 'echo "Stub sandbox ignoring command: $@"'
- exit 1
- type: file
path: chrome.sh
- type: file
path: apply_extra.sh
- type: file
path: cobalt.ini
- type: file
path: com.google.Chrome79.desktop
- type: file
path: com.google.Chrome79.metainfo.xml
- type: file
path: com.google.Chrome79.svg

23
dconf-override.patch Normal file
View file

@ -0,0 +1,23 @@
diff --git a/engine/dconf-engine-source-user.c b/engine/dconf-engine-source-user.c
index 1657875..e4f8786 100644
--- a/engine/dconf-engine-source-user.c
+++ b/engine/dconf-engine-source-user.c
@@ -39,11 +39,17 @@ dconf_engine_source_user_open_gvdb (const gchar *name)
{
GvdbTable *table;
gchar *filename;
+ const gchar *override;
+
+ override = g_getenv ("DCONF_USER_CONFIG_DIR");
+ if (override == NULL)
+ filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL);
+ else
+ filename = g_build_filename (g_get_home_dir (), override, name, NULL);
/* This can fail in the normal case of the user not having any
* settings. That's OK and it shouldn't be considered as an error.
*/
- filename = g_build_filename (g_get_user_config_dir (), "dconf", name, NULL);
table = gvdb_table_new (filename, FALSE, NULL);
g_free (filename);

3
flathub.json Normal file
View file

@ -0,0 +1,3 @@
{
"only-arches": ["x86_64"]
}