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

Web Apps Not Showing in Application Menu in Linux Env #909

Closed
9 tasks done
p134c0d3 opened this issue Feb 19, 2024 · 10 comments
Closed
9 tasks done

Web Apps Not Showing in Application Menu in Linux Env #909

p134c0d3 opened this issue Feb 19, 2024 · 10 comments
Labels
bug Something isn't working P5 Developers do not respond, only patches are welcome unconfirmed Developer has not yet confirmed.

Comments

@p134c0d3
Copy link

Pre-Submission Checklist

  • I have checked the existing/closed issues to ensure this issue has not already been reported.
  • I am using the latest supported version of the browser.
  • I have tried disabling all browser extensions/add-ons to rule out interference from these.
  • I have tried clearing the browser cache and cookies.
  • I have tried to create a new profile and the issue still occurs.
  • I have provided detailed step-by-step instructions on how to reproduce the issue.
  • I have included relevant screenshots or console outputs.
  • I have checked this problem is not ocurring in the latest version of Firefox ESR.
  • This issue is specific to this browser and does not occur in other browsers.

Bug Summary

Hello, I know that Web App support is very experimental in Floorp right now, but submitting this so it can be looked at. 🙂
I'm using Linux as my main OS, and whenever I install a site as a web app (both from URL bar and web apps menu), the relevant .desktop file isn't being found in my applications folder, so I'm not able to find that web app among my applications. If I use the menu, then I'm able to open the web app, but I would expect to be able to open the web app from my applications menu. I have tested this both from the Gnome desktop and the Sway environment with the same result.
image
image

The below is showing the installed Google web app is not appearing at all in my applications
image

Reproduction Steps

  1. Install any site as a Web App
  2. Open application menu
  3. Search newly installed Web App

Expected Behavior

To be able to have the Web App that I installed to show up in the list of my applications

Actual Behavior

Installed web apps do not appear in my applications list, whether by searching or scrolling. I have to open the web app from the Floorp browser instead of being able to open it from my applications menu.

Screenshots

image
image
image Screencast from 2024-02-19 08-53-37.webm

Browser Version

11.10.0

Operating System

Garuda Linux (Arch based)

Additional Context

If the video did not attach correctly, let me know and I can send it another way.

@p134c0d3 p134c0d3 added the bug Something isn't working label Feb 19, 2024
@github-actions github-actions bot added P5 Developers do not respond, only patches are welcome unconfirmed Developer has not yet confirmed. labels Feb 19, 2024
@surapunoyousei surapunoyousei closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2024
@surapunoyousei
Copy link
Member

Not Bug

@p134c0d3
Copy link
Author

p134c0d3 commented Feb 19, 2024

@surapunoyousei May I ask how this is not a bug? When installing a web app, it is expected for it to show up in the normal applications menu as creating a Progressive Web Application is usually for that exact reason. To easily access the app without having to navigate to the browser. Brave and other Chromium browsers have this behavior, and for web app capability in a browser, is what anyone would expect.

@surapunoyousei
Copy link
Member

As mentioned in the release notes, this is because it is still experimental and has not yet been implemented on Linux and Mac.

We are not going to do it because we have not established the technology at this time.

PR is welcome.

@p134c0d3
Copy link
Author

That's fair, I figured it didn't have to be closed, maybe set on the backburner to later, that way others can see it's still an issue, and something to be worked on (either by contributor or anyone), so could potentially we reopen this as an enhancement/needs contributors? I'm still learning the technology as well, but as soon as I get to a point where I think I can tackle it, I'd be more than happy to.

@p134c0d3
Copy link
Author

@surapunoyousei if you can direct me to where the web app code is in the repo, I will take a look.

@surapunoyousei surapunoyousei pinned this issue Feb 19, 2024
@surapunoyousei
Copy link
Member

This issue is pinned

@p134c0d3
Copy link
Author

Thank you!

@TheChilledBuffalo
Copy link
Contributor

TheChilledBuffalo commented Mar 13, 2024

There is a workaround for this issue, but I must admit it is a bit tedious. You can manually write your .desktop files!

First go to Settings > Manage Profiles > Open Root Directory of the profile you use. The name of this directory, i.e., your profile name, is important. It should be something like, {randomLetters}.default-release.

Now open the ssb folder in that directory. You'll see an ssb.json file. Open it and use your editor's find feature and locate "id" (with double quotes).

image

There should be around two of those for each app. Copy the id with random letters (including the curly brackets). You can check which app's ID that is by checking the "name" right next to the "id".

image
Here the ID of my GitHub app is {118979dc-7e7b-4381-bd4d-041f6eee4559}.

Also download the website's icon from the internet.

Next fire up your favourite text editor and follow my example below. I'm using GitHub as an example. Replace the name and the ID with whatever you found out above.

[Desktop Entry]
Name=GitHub
Exec=floorp --start-ssb "{118979dc-7e7b-4381-bd4d-041f6eee4559}" --profile "path/to/your/profile/directory"
Terminal=false
Type=Application
Icon=/path/to/downloaded/icon

Note: If you are using the flatpak version, replace floorp in Exec with flatpak run one.ablaze.floorp.

Now save the file as /home/{User}/.local/share/applications/GitHub.desktop

If all goes well, you should be able to launch your Web App from your Applications menu now.

@TheChilledBuffalo
Copy link
Contributor

TheChilledBuffalo commented Mar 24, 2024

Ok so this issue has been fixed.

Floorp-Projects/Floorp-core#63

If all goes well, and we get flatpak permissions (link to PR), this feature should be a part of Floorp version 11.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P5 Developers do not respond, only patches are welcome unconfirmed Developer has not yet confirmed.
Projects
None yet
Development

No branches or pull requests

3 participants