diff --git a/content/posts/2023/chromium-without-cache.md b/content/posts/2023/chromium-without-cache.md new file mode 100644 index 0000000..ad6b7fd --- /dev/null +++ b/content/posts/2023/chromium-without-cache.md @@ -0,0 +1,69 @@ +--- +title: "🧹 Запуск Chromium Π±Π΅Π· сохранСния кэша" +date: 2023-02-15T22:26:11+03:00 +draft: false +tags: [chromium, linux] +--- + +Команда для запуска Chromium Π±Π΅Π· сохранСния кэша Π½Π° дискС. + +`chromium-ungoogled` Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌΠΎ Π·Π°ΠΌΠ΅Π½ΠΈΡ‚ΡŒ Π½Π° `chrome` +ΠΈΠ»ΠΈ `chromium` Π² зависимости ΠΎΡ‚ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΠΎΠ³ΠΎ Π±Ρ€Π°ΡƒΠ·Π΅Ρ€Π°. + +Π’ Ρ†Π΅Π»ΠΎΠΌ Π°Π³Ρ€ΡƒΠΌΠ΅Π½Ρ‚Ρ‹ ΠΏΠΎΠ΄ΠΎΠΉΠ΄ΡƒΡ‚ для любого Chrome-like Π±Ρ€Π°ΡƒΠ·Π΅Ρ€Π°. + +```sh +/usr/bin/chromium-ungoogled \ + --disk-cache-size=1 \ + --media-cache-size=1 \ + --disk-cache-dir=/dev/null +``` + +## + +Π― создал `.desktop` Ρ„Π°ΠΉΠ» для \*nix систСм. + +```text +[Desktop Entry] +Version=1.0 +Name=Chromium Web Browser +GenericName=Web Browser +GenericName[ru]=Π’Π΅Π±-Π±Ρ€Π°ΡƒΠ·Π΅Ρ€ +Comment=Access the Internet +Comment[ru]=Доступ Π² Π˜Π½Ρ‚Π΅Ρ€Π½Π΅Ρ‚ +Exec=/usr/bin/chromium-ungoogled %U +StartupNotify=true +Terminal=false +Icon=internet-web-browser +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;without-cache; + +[Desktop Action new-window] +Name=New Window +Name[ru]=НовоС ΠΎΠΊΠ½ΠΎ +Exec=/usr/bin/chromium-ungoogled + +[Desktop Action new-private-window] +Name=New Incognito Window +Name[ru]=НовоС ΠΎΠΊΠ½ΠΎ Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ ΠΈΠ½ΠΊΠΎΠ³Π½ΠΈΡ‚ΠΎ +Exec=/usr/bin/chromium-ungoogled --incognito + +[Desktop Action without-cache] +Name=Run without cache +Name[ru]=Π—Π°ΠΏΡƒΡΡ‚ΠΈΡ‚ΡŒ Π±Π΅Π· сохранСния кэша +Exec=/usr/bin/chromium-ungoogled --disk-cache-size=1 --media-cache-size=1 --disk-cache-dir=/dev/null +``` + +Π‘ΠΊΠ°Ρ‡Π°Ρ‚ΡŒ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎ этой +[ссылкС](https://git.a2s.su/iiiypuk/config/raw/branch/main/~/Desktop%20Applications/chromium.desktop). + +Π§Ρ‚ΠΎΠ±Ρ‹ Π΄ΠΎΠ±Π°Π²ΠΈΡ‚ΡŒ Ρ„Π°ΠΉΠ» прилоТСния Π² мСню ΠΏΡ€ΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ DE, +Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌΠΎ Ρ€Π°Π·ΠΌΠ΅ΡΡ‚ΠΈΡ‚ΡŒ Π΅Π³ΠΎ Π² ΠΊΠ°Ρ‚Π°Π»ΠΎΠ³Π΅ `$HOME/.local/share/applications` + +ΠΈ Π²Ρ‹ΠΏΠΎΠ»Π½ΠΈΡ‚ΡŒ ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ: + +```sh +update-desktop-database $HOME/.local/share/applications/ +```