On Tue, Jul 30, 2024 at 4:28 PM Will McDonald <wmcdon...@gmail.com> wrote:
> On Tue, 30 Jul 2024 at 20:32, Neal Becker <ndbeck...@gmail.com> wrote: > >> On Tue, Jul 30, 2024 at 10:44 AM Will McDonald <wmcdon...@gmail.com> >> wrote: >> >>> On Tue, 30 Jul 2024 at 15:38, Will McDonald <wmcdon...@gmail.com> wrote: >>> >>>> The default behaviour for the desktop application invocation will be >>>> in /usr/share/applications/google-chrome.desktop in the Exec definition if >>>> you don't mind hacking packaged files. >>>> >>>> There's probably a canonical mechanism to override that at a per-user >>>> level too. >>>> >>> >>> And, just for posterity: >>> https://forums.debian.net/viewtopic.php?t=154052 >>> >>> Note: Please don't modify .desktop files in /usr/share/applications as >>>> a) that would require root and b) your changes will be overwritten the next >>>> time the app is updated. If you want to modify a .desktop file copy the >>>> file to ~/.local/share/applications and edit it there. >>>> >>>> .desktop files in ~/.local/share/applications take precedence over >>>> .desktop files with the same name in /usr/share/applications and you can >>>> hack up the ones in your home directory all day long - worst that could >>>> happen is you'd do it wrong and have to start over but the original >>>> .desktop file is still on your system :) >>> >>> I tried copying /usr/share/applications/google-chrome.desktop to >> ~/.local/share/applications and then modifying to say: >> Exec=/usr/bin/google-chrome-stable ----enable-features=UseOzonePlatform >> --ozone-platform=wayland >> >> But I don't think it worked, because I don't see these options in ps. >> Also the original said: >> Exec=/usr/bin/google-chrome-stable --incognito >> >> And I don't think it was using incognito mode. >> >> How do I know if it actually used this desktop file and is there >> something else I need to do? >> > > Couple of things I'd check... > > 1. How are you launching Chrome? Are you running google-chrome[-stable] > from a terminal or just doing Win/Meta and typing in Chrome? If it's the > former, that could be the problem because... > > wmcdonald@fedora:~$ which google-chrome > /usr/bin/google-chrome > wmcdonald@fedora:~$ ls -l /usr/bin/google-chrome > lrwxrwxrwx. 1 root root 31 May 24 2022 /usr/bin/google-chrome -> > /etc/alternatives/google-chrome > wmcdonald@fedora:~$ ls -l /etc/alternatives/google-chrome > lrwxrwxrwx. 1 root root 29 May 24 2022 /etc/alternatives/google-chrome -> > /usr/bin/google-chrome-stable > wmcdonald@fedora:~$ ls -l /usr/bin/google-chrome-stable > lrwxrwxrwx. 1 root root 32 Jul 23 00:03 /usr/bin/google-chrome-stable -> > /opt/google/chrome/google-chrome > wmcdonald@fedora:~$ ls -l /opt/google/chrome/google-chrome > -rwxr-xr-x. 1 root root 1585 Jul 23 00:03 /opt/google/chrome/google-chrome > wmcdonald@fedora:~$ file /opt/google/chrome/google-chrome > /opt/google/chrome/google-chrome: Bourne-Again shell script, ASCII text > executable > > Or more briefly: > > wmcdonald@fedora:~$ realpath $(which google-chrome) > /opt/google/chrome/google-chrome > > 2. What does lsof say for the parent process/its child processes? (You > could try strace too, but not sure how you'd strace something initiated > from the window manager easily...) > > I'm launching by clicking on icon using kde. It seems editing desktop file did nothing. Right click on chrome icon and edit application, changing program args, and it had the desired effect. Now emacs proced shows the top-level chrome process running with the correct args.
-- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue