Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWAs close first time opening PWA - relative URL without a base #572

Open
spoorun opened this issue Oct 2, 2024 · 2 comments
Open

PWAs close first time opening PWA - relative URL without a base #572

spoorun opened this issue Oct 2, 2024 · 2 comments
Labels
bug Something isn't working could not reproduce This issue could not be reproduced

Comments

@spoorun
Copy link

spoorun commented Oct 2, 2024

Description

During any given session, I open a PWA and it momentarily opens than closes
If I open it a second time (from the menu or app icon but not the command line) it opens correctly
This happens whether the PWA is opened from the command line, the KDE menu, or clicking an icon

When opened from the command line, the following error is given:

/usr/bin/firefoxpwa site launch 01J96HRTE3XC6AW2AQBEFMI7MNMP --protocol %u
error: invalid value '%u' for '--protocol [<PROTOCOL>]': relative URL without a base For more information, try '--help'.

If I remove "%u" from the .desktop file the issue does not occur and the PWA opens correctly first time

Steps to Reproduce

  1. Create a PWA
  2. Restart the system (the error only occurs after a restart not when the PWA has just been installed)
  3. Launch the PWA from the menu or icon
    [It flashes up briefly then fails]
  4. Launch again
    [It launches correctly]

OR

  1. Create a PWA
  2. Restart the system (the error only occurs after a restart not when the PWA has just been installed)
  3. Launch the PWA from the command line
    [error is shown:[ (error: invalid value '%u' for '--protocol []': relative URL without a base) ]

Workaround

Remove "%U" from the .desktop file for the PWA
The app starts correctly from menu, icon or commandline

Affected Websites

All

Environment

First occurred at least 6 months ago

  • Operating system: Manjaro Linux
  • System architecture: 64
  • Desktop environment: KDE 6.0 - 6.1
  • Installation method: AUR
  • PWAsForFirefox extension version: 2.11 - 2.12.4
  • PWAsForFirefox native version: 2.11 - 2.12.5
  • PWAsForFirefox runtime version: 130.0.1 and earlier
  • Firefox version: 129 - 131
@spoorun spoorun added the bug Something isn't working label Oct 2, 2024
@filips123
Copy link
Owner

That may be a KDE bug. %u should be replaced with the URL when launching as a protocol handler, or be empty when launching normally. But I've tried to reproduce it on Manjaro with KDE in a VM and it works fine for me...

@filips123 filips123 added the could not reproduce This issue could not be reproduced label Oct 14, 2024
@wroyca
Copy link

wroyca commented Nov 13, 2024

I can confirm that this also happens with GNOME on Fedora 41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working could not reproduce This issue could not be reproduced
Projects
None yet
Development

No branches or pull requests

3 participants