GithubHelp home page GithubHelp logo

com.google.chrome's People

Contributors

a6gibkm avatar andrunko avatar centzilius avatar chenzhiwei avatar cho2 avatar daquinons avatar etaash-mathamsetty avatar evan-a-a avatar flathubbot avatar frantisekz avatar gasinvein avatar natanael-b avatar refi64 avatar theevilskeleton avatar wjt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.google.chrome's Issues

Allow Bluetooth access

I'm trying to get Nearby Sharing working without much success. On one occasion chrome://nearby somehow listed some users but not my own device. edit: actually those were example devices appearing after some time.

Bluetooth is a precondition for testing this feature so it might be a good idea to enable this by adding:

- --allow=bluetooth
- --system-talk-name=org.bluez

I tested Chrome with the Web Bluetooth API sample here which needs the Experimental Web Platform features Chrome flag enabled.
The linked sample test code actually only needs the system-talk-name permission and doesn't work with just the allow permission, not sure what's going on there.

mouse cursor theme is wrong

It affects not only chrome but also chromium.
It seems that this spawn process thing, deletes a bunch of environment variables.

flatpak override provides CUPS access but printing does not work

I've used Flatseal to give access to CUPS to the Chrome Flatpak, and Chrome's printing UI does show my printers; however, going ahead with printing does not do anything, print queue on the host shows nothing.

In addition, Print using system dialog... does not show any of the printers, unlike the "native" Chrome UI.

Arm version fails to start

When starting the Chrome flatpak on Aarch64 it fails to start with the error:
Failed to fill defaults: Failed to infer sandbox filename: Could not locate sandbox file (looked for '/app/extra/chrome-sandbox', '/app/extra/chrome-dev-sandbox', and '/app/extra/chrome-sandbox')

Failing install due to missing runtime org.freedesktop.Platform/x86_64/21.08

~ flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo

➜  ~ flatpak install com.google.Chrome

Looking for matches…
Found similar ref(s) for ‘com.google.Chrome’ in remote ‘flathub-beta’ (system).
Use this remote? [Y/n]: Y
error: The application com.google.Chrome/x86_64/beta requires the runtime org.freedesktop.Platform/x86_64/21.08 which was not found

Can't enable Secure DNS

In Settings > Privacy and security > Security > Advanced, can't enable Secure DNS because it is disabled in managed browsers. Is it possible to enable it somehow?

com.google.Chrome.desktop - StartupWMClass

Hi

Is it possible to add "StartupWMClass=Google-chrome" to com.google.Chrome.desktop? Or is it left out for a good reason?

I have a problem with duplicate icons on my dock if I don't manually add this to my local file in ~/.local/share/applications/com.google.Chrome.desktop. Affacts Elementary OS 6.

Media controls not showing in notifications

When I play a video or audio from Chrome, media controls do not show in the notifications.

When running flatpak run --log-session-bus com.google.Chrome | grep -i error, I get:

[2:47:0501/200556.451723:ERROR:bus.cc(556)] Failed to get the ownership of org.mpris.MediaPlayer2.chromium.instance2: org.freedesktop.DBus.Error.ServiceUnknown

Chrome crashes on startup if flatpak-portal wasn't running before the app launched.

edit: System:
Arch Linux
Linux 4.19.134
Flatpak 1.8.1

I'm using a window manager (i3wm) and after reboot there nothing that is starting flatpak-portal before launching Chrome.
If I start flatpak-portal manually systemctl start --user flatpak-portal.service then before launching Chrome then Chrome will not crash.
If I don't do that then Chrome will crash on startup. My guess would be that there's some kind of a race between Chrome to flatpak-portal if the later started by dbus, but considering that even if Chrome is starting correctly I'm seeing in the log that the Chrome session caused a flatpak-portal core dump then I guess this is a more complex issue.

I don't have ATM the log when Chrome is crashing but this is how it looks when Chrome is starting correctly after manually starting flatpak-portal before launching Chrome.

systemd[1318]: Starting flatpak portal...
dbus-daemon[1414]: [session uid=1000 pid=1414] Activating via systemd: service name='org.freedesktop.impl.portal.PermissionStore' unit='xdg-permission-store.service' requested by ':1.13' (uid=1000 pid=2785 comm="/usr/lib/flatpak-portal ")
systemd[1318]: Starting sandboxed app permission store...
dbus-daemon[1414]: [session uid=1000 pid=1414] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
systemd[1318]: Started sandboxed app permission store.
systemd[1318]: Started flatpak portal.
systemd-timesyncd[790]: Initial synchronization to time server 85.199.214.99:123 (1.arch.pool.ntp.org).
dbus-daemon[1414]: [session uid=1000 pid=1414] Activating via systemd: service name='org.freedesktop.Flatpak' unit='flatpak-session-helper.service' requested by ':1.24' (uid=1000 pid=2896 comm="/usr/bin/flatpak run --branch=master --arch=x86_64")
systemd[1318]: Starting flatpak session helper...
dbus-daemon[1414]: [session uid=1000 pid=1414] Successfully activated service 'org.freedesktop.Flatpak'
systemd[1318]: Started flatpak session helper.
dbus-daemon[1414]: [session uid=1000 pid=1414] Activating via systemd: service name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service' requested by ':1.24' (uid=1000 pid=2896 comm="/usr/bin/flatpak run --branch=master --arch=x86_64")
systemd[1318]: Starting flatpak document portal service...
dbus-daemon[1414]: [session uid=1000 pid=1414] Successfully activated service 'org.freedesktop.portal.Documents'
systemd[1318]: Started flatpak document portal service.
dbus-daemon[1414]: [session uid=1000 pid=1414] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.24' (uid=1000 pid=2896 comm="/usr/bin/flatpak run --branch=master --arch=x86_64")
systemd[1318]: Starting Accessibility services bus...
dbus-daemon[1414]: [session uid=1000 pid=1414] Successfully activated service 'org.a11y.Bus'
systemd[1318]: Started Accessibility services bus.
systemd[1318]: Started app-flatpak-com.google.chrome-2896.scope.
systemd[1318]: Started app-flatpak-com.google.chrome-2962.scope.
kernel: flatpak-portal[2785]: segfault at c ip 00005638a2044f50 sp 00007ffeebedb170 error 4 in flatpak-portal[5638a2043000+90000]
kernel: Code: 24 10 ff 15 ea 37 0c 00 45 85 ff 0f 84 17 01 00 00 48 8b 7c 24 38 48 85 ff 0f 84 be fd ff ff ff 15 05 3c 0c 00 e9 b3 fd ff ff <8b> 04 25 0c 00 00 00 0f 0b 0f 1f 80 00 00 00 00 31 c0 44 89 e1 48
systemd[1]: Created slice system-systemd\x2dcoredump.slice.
systemd[1]: Started Process Core Dump (PID 2969/UID 0).
systemd[1318]: flatpak-portal.service: Main process exited, code=dumped, status=11/SEGV
systemd[1318]: flatpak-portal.service: Failed with result 'core-dump'.
systemd-coredump[2973]: Process 2785 (flatpak-portal) of user 1000 dumped core.

                        Stack trace of thread 2785:
                        #0  0x00005638a2044f50 n/a (flatpak-portal + 0x1af50)
                        #1  0x00005638a20451a1 n/a (flatpak-portal + 0x1b1a1)
                        #2  0x00007f199caaa8cc n/a (libgio-2.0.so.0 + 0x6d8cc)
                        #3  0x00007f199cadb844 n/a (libgio-2.0.so.0 + 0x9e844)
                        #4  0x00007f199cadfb87 n/a (libgio-2.0.so.0 + 0xa2b87)
                        #5  0x00007f199cab01a4 n/a (libgio-2.0.so.0 + 0x731a4)
                        #6  0x00007f199cab02f9 n/a (libgio-2.0.so.0 + 0x732f9)
                        #7  0x00007f199c90c340 g_main_context_dispatch (libglib-2.0.so.0 + 0x52340)
                        #8  0x00007f199c95a1d9 n/a (libglib-2.0.so.0 + 0xa01d9)
                        #9  0x00007f199c90ac03 g_main_loop_run (libglib-2.0.so.0 + 0x50c03)
                        #10 0x00005638a20433f8 n/a (flatpak-portal + 0x193f8)
                        #11 0x00007f199c6f8002 __libc_start_main (libc.so.6 + 0x27002)
                        #12 0x00005638a204388e n/a (flatpak-portal + 0x1988e)

                        Stack trace of thread 2787:
                        #0  0x00007f199c7c605f __poll (libc.so.6 + 0xf505f)
                        #1  0x00007f199c95a168 n/a (libglib-2.0.so.0 + 0xa0168)
                        #2  0x00007f199c90ac03 g_main_loop_run (libglib-2.0.so.0 + 0x50c03)
                        #3  0x00007f199cb3d1a8 n/a (libgio-2.0.so.0 + 0x1001a8)
                        #4  0x00007f199c934511 n/a (libglib-2.0.so.0 + 0x7a511)
                        #5  0x00007f199c8a1422 start_thread (libpthread.so.0 + 0x9422)
                        #6  0x00007f199c7d0bf3 __clone (libc.so.6 + 0xffbf3)

                        Stack trace of thread 2786:
                        #0  0x00007f199c7c605f __poll (libc.so.6 + 0xf505f)
                        #1  0x00007f199c95a168 n/a (libglib-2.0.so.0 + 0xa0168)
                        #2  0x00007f199c90b221 g_main_context_iteration (libglib-2.0.so.0 + 0x51221)
                        #3  0x00007f199c90b272 n/a (libglib-2.0.so.0 + 0x51272)
                        #4  0x00007f199c934511 n/a (libglib-2.0.so.0 + 0x7a511)
                        #5  0x00007f199c8a1422 start_thread (libpthread.so.0 + 0x9422)
                        #6  0x00007f199c7d0bf3 __clone (libc.so.6 + 0xffbf3)

                        Stack trace of thread 2961:
                        #0  0x00007f199c7cb71d syscall (libc.so.6 + 0xfa71d)
                        #1  0x00007f199c954c9b g_cond_wait_until (libglib-2.0.so.0 + 0x9ac9b)
                        #2  0x00007f199c8dc803 n/a (libglib-2.0.so.0 + 0x22803)
                        #3  0x00007f199c8dc994 g_async_queue_timeout_pop (libglib-2.0.so.0 + 0x22994)
                        #4  0x00007f199c938caa n/a (libglib-2.0.so.0 + 0x7ecaa)
                        #5  0x00007f199c934511 n/a (libglib-2.0.so.0 + 0x7a511)
                        #6  0x00007f199c8a1422 start_thread (libpthread.so.0 + 0x9422)
                        #7  0x00007f199c7d0bf3 __clone (libc.so.6 + 0xffbf3)

Doesn't work out-of-the-box after latest update

> flatpak --version
Flatpak 1.11.2

> flatpak list
Name                 Application ID                            Version         Branch Origin       Installation
Google Chrome        com.google.Chrome                         92.0.4515.107-1 beta   flathub-beta system

This issue is possibly related to be237f3

My command has nothing out-of-the-ordinary

flatpak run com.google.Chrome "--user-data-dir=$dir" "$@"

Used to work as expected before the update, but now I get:

(cobalt:2): cobalt-DEBUG: 10:45:24.132: Loading config file '/app/etc/cobalt.ini'
(cobalt:2): cobalt-DEBUG: 10:45:24.133: Inferred application name 'chrome'
(cobalt:2): cobalt-DEBUG: 10:45:24.133: Inferred entry point '/app/extra/chrome'
(cobalt:2): cobalt-DEBUG: 10:45:24.137: Exec= line is: /app/bin/chrome %U
(cobalt:2): cobalt-DEBUG: 10:45:24.137: Zypak is available
(cobalt:2): cobalt-DEBUG: 10:45:24.137: Inferred ExposePids as 'recommended' because Zypak is being used
(cobalt:2): cobalt-DEBUG: 10:45:24.137: Flextop is available
(cobalt:2): cobalt-DEBUG: 10:45:24.137: Inferred sandbox filename 'chrome-sandbox'
Failed to get expose-pids state: Failed to read 'version'

Cursor briefly changes to Adwaita from preferred theme when clicking "three dot menu"

So, using the Google Chrome flatpak (I should note I also see this happening with the Chromium flatpak) on Fedora Kinoite (35/updates), when you click on the "three dot menu" or main menu at the top right, the cursor changes to the Adwaita cursor from my current cursor theme ("Breeze Light"). The flatpak seems to have access to the mouse cursor directory, as I have had issues with other apps not using custom cursors and done the override for ~/.icons and fixed it, but the cursor in Chrome is fine 99.9% of the time, but if you click on that menu it switches back to Adwaita. If you move the cursor after clicking, it swaps back to the Breeze Light cursor, same thing if you click again.

Not a huge dealbreaker, but perhaps this went unnoticed because I'd imagine many of those using Fedora for example and Flatpak in general might be on GNOME using the default cursor theme.

I've included a screenshot, because hey why not?

Screenshot_20220217_142942

Saved Passwords

It seems saved passwords are sent to the void.

I still get asked to save passwords but they don't seem to be actually saved when okayed.

My saved passwords list at chrome://settings/passwords remains empty.

"Sync is paused"

Every time I re-open the browser, my google acount sync is "Paused".
I see this message: "Sync is paused".

This not happen with RPM Chromium.

  • My flatpak version: Flatpak 1.8.2
  • About the Chrome Flatpak:
$ flatpak info com.google.Chrome 

Google Chrome - The web browser from Google

          ID: com.google.Chrome
         Ref: app/com.google.Chrome/x86_64/beta
        Arch: x86_64
      Branch: beta
     Version: 85.0.4183.83
     License: LicenseRef-proprietary
      Origin: flathub-beta
  Collection: org.flathub.Beta
Installation: system
   Installed: 12,5 MB
     Runtime: org.freedesktop.Platform/x86_64/19.08
         Sdk: org.freedesktop.Sdk/x86_64/19.08

      Commit: 45520a18ba3b942a0ac9508900c5e64907033d0e4c603f02ab435d7c9db7c235
      Parent: 6d681ceefda3ecf4352c6fb27a060783a3e663ec20b51408a9f47cf886e8610b
     Subject: Update Chrome to 85.0.4183.102 (0a2ccf74)
        Date: 2020-09-08 21:24:44 +0000

Strange behaviour when using htaccess protection and LastPass

I have a dokuwiki which has htaccess protection (auth_basic) and also a login for the dokuwiki itself which I store in LastPass.

For LastPass I use the broswer extension (version 4.69.0).

My auth_basic config looks like this:

location /wiki {
    index doku.php;
    auth_basic "wiki";
    auth_basic_user_file /etc/nginx/password/wiki;
    try_files $uri $uri/ @wiki;
}

The problem is only about the htaccess (auth_basic). When I remove this from my nginx config everything works.

When I try to access my wiki with active htaccess protection after I login to LastPass this does still work after a restart of Chrome. When I restart Chrome then a second time it does not work anymore (this is not always the second time - it can be more attempts necessary to provoke this error). The browser is hanging and shows this error message:

"This site can’t be reached The webpage at https://www.frank-ansari.de/wiki/ might be temporarily down or it may have moved permanently to a new web address.
ERR_TOO_MANY_RETRIES"

In my nginx logs I find a bunch of these error messages:

2021/04/10 14:49:42 [error] 3#3: *122 user "fansari": password mismatch, client: 10.xx.xx.xx, server: www.frank-ansari.de, request: "GET /wiki/ HTTP/1.0", host: "www.frank-ansari.de"

As soon as I logout from LastPass I get the authentication box to enter user/pass for htaccess. I can then login again to LastPass and the site is still reachable (at least until the next browser restart).

Clearing the browser cache does not solve the issue. Only logout from LastPass helps.

Also I want to mention that the problem not only occurs when I entered credentials from LastPass for dokuwiki access (I mean the application login, not the htaccess protection). It is enough that I am logged into LastPass to provoke this error.

I raise this issue here because I have this strange behaviour only with the flatpak version of Google Chrome.

I have deinstalled this version and again installed the rpm version. The rpm version does not have this issue.

OS: Fedora 34 Silverblue (x86_64)
Chrome: Version 89.0.4389.114 (Official Build) unknown (64-bit)

flatpak_policy.json causes Chrome to be managed

This is by design of course, but it doesn't actually seem to make a difference.

The browser is currently set in managed mode because of the file, giving the user a warning about the browser being managed, which might raise a few eyebrows. This is because the policy file to set "DefaultBrowserSettingEnabled": false

This doesn't seem to actually make a difference to me though. I tested it out by simply deleting the file. Chrome still can't set the default browser either way, so I don't think it matters? Perhaps the flatpak policy can just be removed for now?

Chrome fails to start when $TMPDIR value length is too long

System:
Fedora 32
Flatpak 1.8.1

As the title says, Chrome doesn't load when the TMPDIR environment variable value is too long.
It just so happens that I have a long username for the home directory as my system is joined to a corporate Active Directory account.

Logs

[16:22:56] ~ $> flatpak run com.google.Chrome
[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/chrome --type=zygote
LaunchProcess: failed to execvp:
/app/extra/nacl_helper
[13:13:0804/162301.491880:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Stub sandbox ignoring command: /app/extra/nacl_helper
[1:2:0804/162301.588953:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Gtk-Message: 16:23:01.927: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:23:01.927: Failed to load module "canberra-gtk-module"
[2:31:0804/162301.937616:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:28:0804/162301.941497:ERROR:address_tracker_linux.cc(201)] Could not bind NETLINK socket: Address already in use (98)
[15 zypak-sandbox] src/sandbox/spawn_strategy/spawn_launcher_delegate.cc:93(Spawn): Assertion failed: kZypakSupervisorExitReply == reinterpret_cast<char*>(reply.data())
[13:13:0100/000000.538585:ERROR:zygote_linux.cc(614)] Zygote could not fork: process_type gpu-process numfds 4 child_pid -1
[13:13:0100/000000.538784:ERROR:zygote_linux.cc(646)] write: Broken pipe (32)

How to replicate:
Test 1. TMPDIR=/tmp/. Chrome starts ok

[15:51:53] ~ $> TMPDIR=/tmp/ zypak-wrapper.sh /app/extra/chrome
[81 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/chrome --type=zygote
LaunchProcess: failed to execvp:
/app/extra/nacl_helper
[87:87:0804/155201.911083:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Stub sandbox ignoring command: /app/extra/nacl_helper
[1:2:0804/155201.981477:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Gtk-Message: 15:52:02.259: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:52:02.259: Failed to load module "canberra-gtk-module"
[81:105:0804/155202.267363:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[81:101:0804/155202.299130:ERROR:nacl_browser.cc(309)] Failed to open NaCl IRT file "/app/extra/nacl_irt_x86_64.nexe": -4
[117:117:0804/155202.319718:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[81:201:0804/155202.393052:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[81:201:0804/155202.393160:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[81:201:0804/155202.393298:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[81:201:0804/155202.393655:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[81:201:0804/155202.393754:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

Test 2. TMPDIR=/tmp/teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest. Chrome fails to start.

[15:53:31] ~ $> mkdir /tmp/teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest
[15:53:43] ~ $> TMPDIR=/tmp/teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest zypak-wrapper.sh /app/extra/chrome
[319 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/chrome --type=zygote
LaunchProcess: failed to execvp:
/app/extra/nacl_helper
[325:325:0804/155345.875522:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Stub sandbox ignoring command: /app/extra/nacl_helper
[1:2:0804/155345.971617:ERROR:nacl_fork_delegate_linux.cc(323)] Bad NaCl helper startup ack (0 bytes)
Gtk-Message: 15:53:46.265: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:53:46.266: Failed to load module "canberra-gtk-module"
[319:343:0804/155346.275031:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[327 zypak-sandbox] src/sandbox/spawn_strategy/spawn_launcher_delegate.cc:93(Spawn): Assertion failed: kZypakSupervisorExitReply == reinterpret_cast<char*>(reply.data())
Trace/breakpoint trap (core dumped)
[15:53:46] ~ $> [325:325:0100/000000.739644:ERROR:zygote_linux.cc(614)] Zygote could not fork: process_type gpu-process numfds 4 child_pid -1
[325:325:0100/000000.739787:ERROR:zygote_linux.cc(646)] write: Broken pipe (32)

After some digging I found that this a legitimate issue with Chrome, which was marked as won't fix a long time ago.
More details can be found here: https://bugs.chromium.org/p/chromium/issues/detail?id=441414

Maybe we can use a different location for setting this tmpdir value?
Also Chrome does start without setting the tmpdir environment variable.

There a good discussion about which would be the best way to set the TMPDIR on this flatpak issue: flatpak/flatpak#3438

Missing the google-chrome deb

Hello!

Seems the deb is missing from the google repo, causing an install of this to fail:
Error: While downloading https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_89.0.4389.72_amd64.deb: Server returned status 404: Not Found error: Failed to install com.google.Chrome: While downloading https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_89.0.4389.72_amd64.deb: Server returned status 404: Not Found

Cookies are being cleared on closing.

Fresh install of 87.0.4280.88 and Chrome is clearing all signin cookies on reopening the app, checked the Chrome setting for this is disabled and everything is default setting.

Support desktop file creation

It would be nice to be able to generate desktop files for web apps.

If we put aside security concerns (if any) and having the user manually append ~/.var/app/APP-ID/data to XDG_DATA_DIR for the host, these are the requirements:

  • Add desktop-file-utils.
  • From xdg-utils add xdg-desktop-icon, xdg-desktop-menu, and xdg-icon-resource. We want to patch xdg-desktop-menu so the generated Exec value will use flatpak run and take into account FLATPAK_ID.

I thought I'll give this a look the other day but I'll probably get to it much later so I'm at least reporting this.

Optional Wayland support?

Would it be possible for this package to enable wayland support if X11 is not available and Wayland is?

We've been doing the same for Slack and Zoom and it seems to work fairly well.

slow start up, NaCl errors

Since a long time, I noticed that Chrome took a long time to start up.
Today I launched it from the terminal to see what's happening and I see some NaCl errors:

$ flatpak run com.google.Chrome 
[2 preload-host-spawn-strategy] Running: /app/bin/zypak-helper child - /app/extra/chrome --type=zygote --enable-crashpad --crashpad-handler-pid=19 --enable-crash-reporter=,unknown --change-stack-guard-on-fork=enable
Stub sandbox ignoring command: /app/extra/nacl_helper
[2:2:1118/101759.185058:ERROR:nacl_fork_delegate_linux.cc(329)] Bad NaCl helper startup ack (0 bytes)
Gtk-Message: 10:18:01.682: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:18:01.682: Failed to load module "canberra-gtk-module"
[54:54:1118/101802.301761:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[2:2:1118/101802.627453:ERROR:nacl_browser.cc(312)] Failed to open NaCl IRT file "/app/extra/nacl_irt_x86_64.nexe": -4
[2:81:1118/101825.769329:ERROR:chrome_browser_main_extra_parts_metrics.cc(230)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
[2:81:1118/101825.769405:ERROR:chrome_browser_main_extra_parts_metrics.cc(233)] crbug.com/1216328: Checking Bluetooth availability ended.
[2:81:1118/101825.769418:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[2:81:1118/101825.778612:ERROR:chrome_browser_main_extra_parts_metrics.cc(240)] crbug.com/1216328: Checking default browser status ended.
[1118/101832.302740:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
[117:29:1118/101844.095711:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[117:12:1118/101844.095967:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[113:11:1118/101844.105093:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[2:2:1118/101844.105684:ERROR:gpu_process_host.cc(979)] GPU process exited unexpectedly: exit_code=512
[203:203:1118/101844.194736:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.

It takes Chrome too much time to open links given by external application due to slow Flatpak session setup

  1. Launch Chrome Flatpak app so we would have a running Chrome session (with accessible Chrome singleton socket).
$ com.google.Chrome
  1. Now simulate a request from an external application to open a link in Chrome
$ time com.google.Chrome 'http://google.com`
Opening in existing browser session.

real	0m1.469s
user	0m0.042s
sys	0m0.011s
  1. Let's do the same with a non-Flatpak Chromium session in install on the host system
$ time chromium 'http://google.com'
Opening in existing browser session.

real	0m0.243s
user	0m0.121s
sys	0m0.049s

This becomes more apparent when the app making the request introducing its own delay (e.g. Neovim with Markdown plugin).

extensions.gnome.org doesn't work

This message is shown at the top of the page:

Although GNOME Shell integration extension is running, native host connector is not detected.

Add dev branch

is it possible to add chrome-dev (google-chrome-unstable) builds too?

i wanted to test out ozone-wayland in chrome-dev, tried it using this repo by changing some urls and after some renaming (flatpak is amazing!!) it worked!!

is it possible to add another branch (like dev) and use flathub directly?

Create shortcuts not working even with extra permissions

I just moved from Fedora Worstation 34 to Fedora Silverblue 35 Beta. Installed Chrome from flathub-beta, added the write acces permissions but still get this when trying to create shortcuts for apps:

This Flatpak does not have write access to ~/.local/share/applications and ~/.local/share/icons, so it cannot install or uninstall PWAs.

I tried adding the overrides using this command:

flatpak override --user --filesystem=~/.local/share/applications --filesystem=~/.local/share/icons com.google.Chrome and also using flatseal, see screenshot:

chrome

Gamepad not recognized

Hi, the non-flatpak version is able to detect the gamepad, but the flatpak version is not.
Tested both with USB and bluetooth.

Basic page for testing is https://gamepad-tester.com

I guess it's a permissions issue, but not familiar enough with flatpak to know how to test workarounds.

My use case is cloud gaming, specially playing GeforceNOW at play.geforcenow.com, which I'm able to do with the non-flatpak version.

Please let me know if there's any info I can provide, though should be reproducible as long as there's access to a gamepad.

Thanks!

Adding GTK4 IM modules to support IME frameworks in Wayland

This should be fixed ​in the runtime, but a proof-of-concept, I created an extension that adds the IM modules to test this new feature.

You would need first to build and install the base app, as the extension need to be mounted somewhere during build time.
And then you can build the extension.
Only Fcitx5 modules were added. Maybe I'll try adding IBus later.

Changes needed to the app:

  • Create a mount point at /app/immodules
  • Set --env=GTK_PATH=/app/lib/gtkmodules:/app/immodules in the finish-args array
  • Add the extension
add-extensions:
  org.freedesktop.Platform.IMModules:
    directory: immodules
    version: '21.08'
    add-ld-path: lib
    no-autodownload: true
    autodelete: false

Chrome should be started with the flag --gtk-version=4

VAAPI hardware acceleration not working.

I can use video decode using native Google Chrome binary file. But flatpak doesn't work. I have available drivers installed already. These are the flags I have used

$ flatpak run com.google.Chrome --use-gl=desktop --enable-features=VaapiVideoDecoder

chrome://flags/

#ignore-gpu-blocklist
#enable-gpu-rasterization
#enable-zero-copy
#canvas-oop-rasterization

all of these flags are enabled in both flatpak and native. But Native video decoding works and Flatpak Google chrome doesn't work

These are relevant flatpak installed in my system

Brave Browser	com.brave.Browser	1.32.115	beta	flathub-beta	system
ungoogled-chromium	com.github.Eloston.UngoogledChromium	96.0.4664.93	stable	flathub	system
Codecs	com.github.Eloston.UngoogledChromium.Codecs		stable	flathub	system
Google Chrome	com.google.Chrome	96.0.4664.93-1	beta	flathub-beta	system
Chromium Web Browser	org.chromium.Chromium	96.0.4664.93	stable	flathub	system
Codecs	org.chromium.Chromium.Codecs		stable	flathub	system
Fedora Platform	org.fedoraproject.Platform	35	f35	fedora	system
LSP	org.freedesktop.LinuxAudio.Plugins.LSP	1.1.30	20.08	flathub	system
ZamPlugins	org.freedesktop.LinuxAudio.Plugins.ZamPlugins	3.14	20.08	flathub	system
Freedesktop Platform	org.freedesktop.Platform	20.08.16	20.08	flathub	system
Freedesktop Platform	org.freedesktop.Platform	21.08.5	21.08	flathub	system
i386	org.freedesktop.Platform.Compat.i386		20.08	flathub	system
i386	org.freedesktop.Platform.Compat.i386		21.08	flathub	system
default	org.freedesktop.Platform.GL.default		19.08	flathub	system
Mesa	org.freedesktop.Platform.GL.default	21.1.8	20.08	flathub	system
Mesa	org.freedesktop.Platform.GL.default	21.2.5	21.08	flathub	system
nvidia-495-44	org.freedesktop.Platform.GL.nvidia-495-44		1.4	flathub	system
default	org.freedesktop.Platform.GL32.default		20.08	flathub	system
default	org.freedesktop.Platform.GL32.default		21.08	flathub	system
nvidia-495-44	org.freedesktop.Platform.GL32.nvidia-495-44		1.4	flathub	system
gstreamer-vaapi	org.freedesktop.Platform.GStreamer.gstreamer-vaapi		21.08	flathub	system
Intel	org.freedesktop.Platform.VAAPI.Intel		18.08	flathub	system
Intel	org.freedesktop.Platform.VAAPI.Intel		19.08	flathub	system
Intel	org.freedesktop.Platform.VAAPI.Intel		20.08	flathub	system
Intel	org.freedesktop.Platform.VAAPI.Intel		21.08	flathub	system
i386	org.freedesktop.Platform.VAAPI.Intel.i386		21.08	flathub	system
MangoHud	org.freedesktop.Platform.VulkanLayer.MangoHud	0.6.6-1	21.08	flathub	system
ffmpeg-full	org.freedesktop.Platform.ffmpeg-full		20.08	flathub	system
ffmpeg-full	org.freedesktop.Platform.ffmpeg-full		21.08	flathub	system
html5-codecs	org.freedesktop.Platform.html5-codecs		18.08	flathub	system
openh264	org.freedesktop.Platform.openh264		19.08	flathub	system
openh264	org.freedesktop.Platform.openh264	2.1.0	2.0	flathub	system
Freedesktop SDK	org.freedesktop.Sdk	21.08.5	21.08	flathub	system
GNOME Application Platform version 40	org.gnome.Platform		40	flathub	system
GNOME Application Platform version 41	org.gnome.Platform		41	flathub	system
Adwaita theme	org.kde.KStyle.Adwaita		5.12	flathub	system
Adwaita theme	org.kde.KStyle.Adwaita		5.14	flathub	system
Adwaita theme	org.kde.KStyle.Adwaita		5.15-21.08	flathub	system
KDE Application Platform	org.kde.Platform		5.12	flathub	system
KDE Application Platform	org.kde.Platform		5.14	flathub	system
KDE Application Platform	org.kde.Platform		5.15-21.08	flathub	system
Firefox	org.mozilla.firefox	95.0	stable	flathub	system


Restart doesn't work

chrome://restart generates the following error bwrap: execvp /app/bin/../lib/zypak-helper: No such file or directory.
I'm doing nothing special, just running Chrome 84.0.4147.105 with a new and empty profile, no Chrome flags or extensions.

CHROME_EXECUTABLE is not set

Hey, for Flutter for Web development I need the CHROME_EXECUTABLE to be set but this doesnt seem to be the case with this Flatpak. Any way how I can set it manually?

Sort out "Add to desktop" side effects

Right now, if --filesystem=home is enabled, checking "Add to desktop" when installing a PWA will create a broken shortcut on the desktop, or do nothing if the filesystem access isn't given.

Sync is not working

Chrome Sync is not working. In dual-window screenshots, left is from flatpak beta, right is rpm straight from Google.
Screenshot from 2022-01-22 12-36-09
Screenshot from 2022-01-22 12-37-09
Screenshot from 2022-01-22 12-39-13

First attempt with starting app always fails

Every first cold start Chrome fails. App start itself, but all tabs spinning and can't load any old or new web page. After restarting Chrome it works fine.

Also almost every time need to re-authorize in Google account, but maybe we should handle this in separate issue?

Please tell how i can provide more info and details about such issues to help with debugging?

Edit: not every first cold start, i would say this happens randomly.

Distro: Fedora 32
Flatpak: 1.8.2
xdg-desktop-portal: 1.7.2

PWAs and shortcuts are associated with the main browser window

Hi!

After granting chrome access to ~/.local/share/applications and ~/.local/share/icons, adding shortcuts to PWAs and other websites they are still associated with the launcher to chrome, meaning they are all grouped under the main window:

Skärmbild från 2021-03-04 11-09-05

Checking the WM_CLASSes, they seem to be the set correctly compared to the "regular" version of chrome and are the same for both:
Browser: WM_CLASS(STRING) = "google-chrome", "Google-chrome"
YouTube PWA: WM_CLASS(STRING) = "crx_agimnkijcaahngcdmfeangaknmldooml", "Google-chrome"

Comparing the desktop files, nothing really stands out.
Flatpak:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=YouTube
Exec='flatpak' 'run' '--branch=beta' '--arch=x86_64' '--command=/app/bin/chrome' 'com.google.Chrome' '--profile-directory=Default' '--app-id=agimnkijcaahngcdmfeangaknmldooml'
Icon=flatpak-com-google-Chrome-chrome-agimnkijcaahngcdmfeangaknmldooml-Default
StartupWMClass=crx_agimnkijcaahngcdmfeangaknmldooml

Regular chrome:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=YouTube
Exec=/usr/bin/google-chrome-stable --profile-directory=Default --app-id=agimnkijcaahngcdmfeangaknmldooml
Icon=chrome-agimnkijcaahngcdmfeangaknmldooml-Default
StartupWMClass=crx_agimnkijcaahngcdmfeangaknmldooml

The icons also doesn't show up properly in the launcher:
Skärmbild från 2021-03-04 11-05-59

Subpixel hinting is worse than RPM Chrome

image
This is actually a bit hard to see but this is the same page opened in RPM (above) and Flatpak (below).
Flatpak fonts are slightly less readable than RPM.
Not sure if this is relevant, but: Fedora 33, KDE Plasma, Xorg.

Mouse Cursor isn't obeying system cursor theme after Oct 7th update

As you can see in my screenshot below, Chrome is making use of some 'fallback' mouse cursor after today's update. I am using GNOME 3.38 and up until today Chrome has respected the normal mouse cursor used in GNOME and GTK apps, but today it switched to the one you see below. (It's next to the "Preview" tab header in the screenshot)

Other than the wrong theme, functionality wise it seems to work just fine.

Screenshot from 2020-10-07 09-04-16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.