Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

PWA on Linux: Install and Use Progressive Web Apps

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install and use Progressive Web Apps (PWAs) on Linux. The easiest way is through a Chromium-based browser like Google Chrome or Microsoft Edge, which supports installing any website that meets PWA criteria as a standalone app. This guide covers the steps for both browsers, plus how to manage and troubleshoot your installed PWAs.

What You'll Need

  • A Linux distribution (Ubuntu, Fedora, etc.) with a desktop environment (GNOME, KDE, etc.)
  • Google Chrome or Microsoft Edge installed (both are available for Linux). You can also use Chromium, but the steps are nearly identical.
  • An internet connection to visit the website you want to install as a PWA.

Step-by-Step

  1. Open your browser (Chrome or Edge) and navigate to the website you want to install as a PWA. The site must support PWA features (e.g., it has a manifest file and service worker). Most modern web apps like Twitter, Spotify, and YouTube do.
  2. Look for the install icon in the address bar. In Chrome, it appears as a monitor with a downward arrow on the right side of the address bar. In Edge, it's a similar icon with a plus sign. If the icon is not visible, the site may not be a PWA, or the browser hasn't detected it yet.
  3. Click the install icon. A dialog will appear asking you to confirm the installation. Click Install (Chrome) or Install (Edge).
  4. Wait for the installation. The browser will download the necessary files and create a desktop entry. Once done, the PWA will open in its own window, separate from the browser.
  5. Launch the PWA from your application menu or desktop. Search for the site's name in your system's app launcher (e.g., GNOME Activities, KDE Kickoff). You can also pin it to your taskbar or dock.
  6. Use the PWA like a native app. It will have its own window, taskbar icon, and can run in the background (if the site supports it). Notifications and offline support depend on the site's implementation.
  7. To uninstall, go to your browser's settings, find the installed apps section (Chrome: chrome://apps; Edge: edge://apps), right-click the PWA, and select Remove from Chrome or Uninstall.

Note: Menu labels and icon positions can vary slightly by browser version and Linux desktop environment, but the core steps remain the same.

Common Mistakes

  • Using Firefox: Firefox on Linux does not support installing PWAs as standalone apps. You can only run them in a browser tab. If you want a standalone PWA, use Chrome or Edge.
  • Expecting every website to work: Only sites that meet PWA criteria (HTTPS, manifest, service worker) will show the install icon. A simple website won't.
  • Forgetting to update: PWAs update automatically in the background, but if you notice issues, check for browser updates first.
  • Confusing PWAs with bookmarks: A bookmark just opens a new tab. A PWA runs in its own window and can work offline (if the site supports it).

Tips

  • Use Chrome or Edge for the best PWA experience on Linux. Both are available from their official websites or your distro's package manager.
  • If the install icon doesn't appear, try refreshing the page or navigating to the site's home page. Sometimes the PWA detection is triggered only on the main page.
  • You can install a PWA even if it's not in the address bar by going to the browser menu (three dots) and selecting Install [site name] or Cast, Save, and Share > Install page as app (in Edge). This works for many sites that have a manifest.
  • To keep your PWA organized, create a separate folder in your app menu or use a dock that supports grouping.
  • Check the site's own help page for PWA-specific features like offline mode or push notifications.

Troubleshooting

If the install icon doesn't appear:

  1. Make sure you're using Chrome or Edge. Firefox doesn't support standalone PWAs on Linux.
  2. Check that the site is secure (HTTPS). PWAs require HTTPS.
  3. Try clearing the site's cache: go to the site, press Ctrl+Shift+Delete, select Cached images and files, and clear. Then reload.
  4. Restart your browser and try again.

If the PWA won't launch:

  1. Check if your browser is up to date. Go to chrome://settings/help or edge://settings/help and update if needed.
  2. Try launching it from the browser's app list (chrome://apps or edge://apps). If it works there, the desktop entry may be missing. Reinstall the PWA.
  3. If the PWA opens but is blank, the site may be down or your network is blocking it. Check the site in a normal browser tab.

If the PWA doesn't behave like a native app (e.g., no notifications):

  1. Check your system's notification settings. Some Linux desktops (like GNOME) require you to enable notifications for the browser or the PWA.
  2. Ensure the site itself supports notifications. Not all PWAs do.
  3. If you're using a VPN or firewall, it might block push services. Try disabling it temporarily.

If all else fails:

  1. Uninstall the PWA (as described in Step 7) and reinstall it.
  2. Reset your browser settings to default (this will remove extensions and other customizations, but not your bookmarks or passwords).
  3. As a last resort, reinstall the browser itself. Your PWAs will be removed, but you can reinstall them afterward.

Frequently Asked Questions

Can I install PWAs on Linux without Chrome or Edge?

Not as standalone apps. Firefox and other browsers don't support installing PWAs as separate windows on Linux. You can still use the website in a browser tab, but you won't get the app-like experience.

Where are installed PWAs stored on my system?

They are stored in your browser's profile directory. For Chrome, it's ~/.config/google-chrome/Default/; for Edge, it's ~/.config/microsoft-edge/Default/. The desktop entries are in ~/.local/share/applications/.

Do PWAs work offline on Linux?

Only if the website supports offline functionality. Many PWAs (like Twitter or Spotify) cache data for offline use, but it depends on the site's implementation. You can test by disconnecting from the internet and opening the PWA.

Can I move a PWA to another Linux machine?

Not directly. You'd need to reinstall the PWA on the new machine. However, your browser profile can be synced, which may restore some settings, but the PWA itself must be reinstalled.

Why does the install icon not show for some sites?

The site must meet PWA requirements: it must be served over HTTPS, have a manifest file, and register a service worker. If any of these are missing, the browser won't offer installation.

Is it safe to install PWAs?

Yes, PWAs are just websites packaged into an app shell. They run in a sandboxed browser environment, so they are as safe as visiting the website in a browser tab. However, always install from the official site to avoid malicious clones.