linuxmint / webapp-manager

GNU General Public License v3.0
681 stars 89 forks source link

Use chrome/chromium extensions #241

Open MGuerrera opened 1 year ago

MGuerrera commented 1 year ago

Distro: Ubuntu 22.04 Webapp-Manager 1.2.8

Issue:

Many Chrome/Chromium extensions do not automatically work after being installed and configured, and do not have a contextual menu item to access them.

They can only be activated by clicking the extension button on the address bar or in the dropdown menu of the puzzle icon that collects them in the same bar.

If you try to install a PWA natively in Chrome/Chromium, you will see that the puzzle icon is inserted in the title bar to allow access to the extensions.

Would it be possible to implement a similar mechanism here?

Screenshot-20230316122418-955x108

begin-theadventure commented 1 year ago

Workaround: Ctrl+T or N and it's also possible to set shortcuts for installed extensions chrome://extensions/shortcuts.

MGuerrera commented 1 year ago

Good workaround, thank you!

MGuerrera commented 1 year ago

I correct myself, I don't know if I'm doing something wrong, but the shortcuts for the extensions work without problems within the chrome browser, while they are not captured within the windows of the web apps created using chrome as the reference browser.

begin-theadventure commented 1 year ago

Oh, I didn't test the keyboard shortcuts.. Yeah, they don't work. I found another two workarounds:

  1. Edit the webapp-name shortcut under ~/.local/share/applications, remove -app= from it and then it will appear as a normal browser, but still be isolated.
  2. Open the webapp, Ctrl + T, open the site, Create a shortcut... -> Open as window -> Create. Now go to ~/Desktop and open the shortcut with a text editor, also go to ~/.local/share/applications, search for the shortcut webapp-name and open it as well. Remove --app= from the applications shortcut and add --app-id= to it from the Desktop shortcut. Overall Exec= should look like this: executable "site" --class=WebApp-name --user-data-dir=/.. --app-id=id This does what you showed in the screenshot.
MGuerrera commented 1 year ago

Thank you =)