Hacker News

mathix
Show HN: FTWA – Turn any website into an app ftwa.mathix.dev

sigh_again20 hours ago

Pretty good! Just a few observations:

* The Firefox (BETA) entry does not work on default Ubuntu installs, where Firefox is a Snap. Yes, snap bad, bla bla bla, but it still remains one of the most likely way Firefox will be installed on Ubuntu. This comes from the fact that your script attempts to locate the profile folder in ~/.mozilla/firefox, whereas snaps stores them in ~/snap/firefox/common/.mozilla/firefox/.

* New profiles unfortunately don't share logins on Firefox, which means your app is disconnected at first. Not a big deal, but could maybe be changed by copying some things from the default profile ?

* Firefox does not display _any_ titlebar when ran in this way.

Love the idea. There's many times where I'd like something to have a bit more "privilege" on my toolbar than what a regular tab (even pinned) gets.

usr110628 minutes ago

Since Mozilla has started to provide an official Debian-style repository there is no reason to use snap on Ubuntu any more. Well, except if some users don't know or don't care to switch.

mathixop18 hours ago

Thanks!

- Yes I could create a second firefox preset for snap installs - I would prefer not to touch such sensible files, but will give instructions on how to do it manually

powersnail15 hours ago

I had written a similar program (but very barebone compared with what you've made), with Firefox only. The way I dealt with profile, is to specify the full path of the profile, rather than a name. This way, I don't have to know where Firefox is searching for profiles, and I can keep all the additional profiles in a separate directory, so they don't mix with normal profiles and don't clog up profile manager.

mathixop14 hours ago

Yes I saw this option as well, but it seems that it's not possible for macOS

harryvedercia day ago

Cool stuff!

@mathix maybe you can make it clear on the website that this doesn't create app/play store apps, as most people probably think about them when they read "turn any website into an app".

From the github readme[0]:

> FTWA uses the --app='https://app.example' parameter with Chromium-based browsers to launch a website in "app mode".

> [...]

> When choosing linux as target OS, FTWA generate a shell script that will create a .desktop file and it's icons.

[0]: https://github.com/mathix420/free-the-web-apps?tab=readme-ov...

mathixopa day ago

Thanks! Yes I didn't realized I don't speak about this on the website, good advice!

hackernudes15 hours ago

I just switched to Firefox and struggled with this exact functionality. The posted site ships a script for curl|sh that creates a new firefox profile with a custom userChrome.css.

There is an official thread here with people discussing how the single-page-as-an-app functionality should work: https://connect.mozilla.org/t5/discussions/how-can-firefox-c...

I ended up writing a firefox extension to open up URLs in a new "popup" window[1]: https://addons.mozilla.org/en-US/firefox/addon/web-app-maker.... I just checked it on Windows (usually using linux) and the popup window type does not allow the maximize button to work. Oh well...

[1]https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

Zetaphor14 hours ago

There's an excellent extension that makes this pretty simple to manage. Additionally the windows it creates have some pwa specific settings, like how links should be handled.

https://github.com/filips123/PWAsForFirefox/

prasoondsan hour ago

This is really cool! Any chance of adding support for the Arc browser? Right now, Chrome allows for some websites (WhatsApp, Spotify, YouTube Music) to be made into "apps" already via PWAs. Arc - which is based on chromium, for some mysterious reason, chooses to not support PWAs so this would be extremely useful for Arc!

gingersnap2 hours ago

I would like to have the complete opposite. Turn any app into a website so that I don't need to download them, and can just access them through my browser.

mathixopan hour ago

With FTWA apps are still websites, it's just another way of opening them without distractions of the browser frame.

chakintosh20 hours ago

So I did this, turned out it's not only just Firefox without the browser UI, but it also bricked my actual Firefox browser and now it doesn't connect to the internet.

mathixop18 hours ago

Oh pretty strange, could you please raise on issue on GitHub so I can have any chance of debugging this?

low_tech_punk3 hours ago

How's this different from chrome browser's PWA install? https://support.google.com/chrome/answer/9658361?sjid=105106...

I believe the PWAs will correctly show up in the OS native app launchers.

mathixop3 hours ago

It's different in the fact that PWAs needs to be setup by the website's developer.

albert_e5 hours ago

Possibly Offtopic ...

I wanted Udemy app to be available for smart TV platforms like FireTV stick or SamsungTV.

Udemy makes an android and ios app but not for TVs.

Teachable is another online learning platform that ignores Android altogether and makes only an ios app.

LMS vendors like Docebo that have become very popular (AWS Skill Builder, Databricks academy, etc) have very poor mobile support.

Wonder if there is a way to make it work using tools like these. Any pointers in that direction would be appreciated.

yamrzou2 hours ago

I thought this would generate a mobile app APK containing a webview for the website

mathixopan hour ago

No that's exactly what I wanted to avoid, this would be similar to what electron does.

EffrafaxOfWuga day ago

If you are interested in using this then I can also highly recommend webapp manager.

https://github.com/linuxmint/webapp-manager

doubleorseven15 hours ago

Kinda off topic but this is a "Linux First" UI application(?) and I love it.

marban2 hours ago

This has been done a hundred times over.

mathixopan hour ago

This was just a side project, I was using .desktop files to launch some websites and thought it was still pretty unknown by most people. So I created this website.

frizlab14 hours ago

Is this the “Add to Dock…” feature of Safari?

hn-front (c) 2024 voximity
source