Open WernerHermann68 opened 6 months ago
I knew I was not the only one. https://github.com/ungoogled-software/ungoogled-chromium-windows/pull/352#issuecomment-2125705178
You need to set the permissions on the unpacked files: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-reports-sandbox-errors-on-windows
i needed a short while to understand it ... but your hint got me on the right path. and ... if there is another dummy like me finding this place ... the icacls.exe ist localized !
so for me ... a kraut-german-bastard it has to be ... open a cmd.exe with admin -privilege in the unpacked folder an execute: icacls . /grant "ALLE ANWENDUNGSPAKETE":(OI)(CI)RX /T
or icacls "path to unpacked folder" /grant "ALLE ANWENDUNGSPAKETE":(OI)(CI)RX /T
so "ALLE ANWENDUNGSPAKETE" ist german translation of "ALL APPLICATION PACKAGES"
your link lead me to icacls $HOME/.cache/puppeteer/chrome /grant "ALL APPLICATION PACKAGES:(OI)(CI)(RX)" .... but i am not sure if the second quotation mark ist in the right place.
so thanks a lot for your help ! printing is working with the unpacked version v125.xx !
is there a simple explanation ( for users - not programmers ) why the unpacked version v123/v124 ist working without this extra manual-icacls-step ?
--disable-features=PrintCompositorLPAC
https://issues.chromium.org/issues/339994760
https://github.com/ungoogled-software/ungoogled-chromium-windows/pull/352
thanks for the comment.
but i guess i will try this solution next ( instead of the command-line argument ) https://issues.chromium.org/issues/339994760#comment33
so a batch
0-fix-print-preview.cmd
icacls %~dp0 /grant *S-1-15-3-1024-3424233489-972189580-2057154623-747635277-1604371224-316187997-3786583170-1043257646:(OI)(CI)(RX)
icacls %~dp0 /grant *S-1-15-3-1024-2302894289-466761758-1166120688-1039016420-2430351297-4240214049-4028510897-3317428798:(OI)(CI)(RX)
does the job ...better
"%~dp0" is replaced with the local path where the batch file is executed ( so the batch should be placed in the same path as chrome.exe ) you dont need admin rights you dont need a localized version of the command i.e. "ALL APPLICATION PACKAGES:" less file permissions are changes ( 2x 1 file compared to all (?) files in the directory when used something like "ALL APPLICATION PACKAGES" )
thanks to all willing to helped ! you helped me a lot !
hi guys ! i am back with another weird error.
i am using your project on different win10/11 systems as installed version or as portable ( my own build ) this problem does not exist in v124,v123,v122 .... ( Windows 10/11 x64 )
first i removed my profile from C:\users\me\appdata
usually i have your project installed like ungoogled-chromium_125.0.6422.76-1.1_installer_x64.exe --install --silent --system-level ...so its is installed unter c:\program files.
when i start this installed version with a emty/new profile ... and one of my first actions is ctrl+p ( printing ) everything is fine ... i can print.
then i unzip ungoogled-chromium_125.0.6422.76-1.1_windows_x64.zip in a random directory. when i start the chrome.exe inside it is not a "real" portable version but uses my empty profile under C:\users\me\appdata ....
when i try to print form this unpacked version ( ctrl+p) i get "print preview failed" on the left ... everything is greyed out .... no printing possible .
when i unpack the ungoogled-chromium_124.0.6367.207-1.1_windows and start chrome.exe ..everything is fine ...with the same empty profile underC:\users\me\appdata
So this printing problem with Win 10/11 ist NOT there -- with an installed version ( 125,124,123 and older ) -- with an unpacked version v124,v123 or older
But i can not print with the unpacked version ungoogled-chromium_125.0.6422.76-1.1_windows_x64.zip ( ..or 060 ).
Btw ... just in the case it help ... this other project we dont like :D https://github.com/macchrome/winchrome/releases/tag/v125.6422.81-M125.0.6422.81-r1287751-Win64 has the same problem. ( i did not tried the installer ... just unpacked the 7z and started chrome.exe with my empty profile )
i hope my description ist understandable/useful ... i am not native english.
so can anybody do me a favor and try to print form the latest unpacked windows version v125.x ?