Smart Systems for Home

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

Run Websites as Apps in Linux: Any Browser Guide

· 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

You can run any website as a standalone app in Linux using your existing browser—no extra software needed. The simplest way is to use your browser's built-in “Create Shortcut” or “Install Site” feature, which opens the site in its own window with its own taskbar icon. This guide covers Chrome, Firefox, Edge, and Opera, plus a universal method that works with any browser.

What You'll Need

  • A Linux distribution (Ubuntu, Fedora, etc.) with a desktop environment (GNOME, KDE, Xfce).
  • One of these browsers installed: Google Chrome, Chromium, Microsoft Edge, Mozilla Firefox, or Opera.
  • Optional: a text editor (like Gedit or Nano) if you want to create a custom launcher manually.

Step-by-Step

Method 1: Chrome / Chromium / Edge (Chromium-based)

  1. Open the website you want to turn into an app.
  2. Click the three-dot menu (top-right corner) and select “Cast, save, and share” (in newer versions) or “More tools” (in older versions). The exact wording may vary slightly by version.
  3. Choose “Install page as app…” or “Create shortcut…”.
  4. A dialog appears. If you see a checkbox for “Open as window” or “Create as app”, make sure it is checked. This ensures the site opens in its own window, not a browser tab.
  5. Click Install or Create. The site will open in a new window with a simplified browser interface (no address bar, tabs, or bookmarks).
  6. To launch it later, find it in your application menu (usually under the browser's name or “Installed Apps”) or search for the site name in your desktop's app launcher.

Method 2: Firefox

  1. Open the website.
  2. Click the three-line menu (hamburger icon, top-right) and select “Install” or “Install Site as App” (the exact wording depends on your Firefox version).
  3. Confirm the installation in the pop-up. The site will open in its own window with a clean interface.
  4. Find the app in your application menu under “Firefox Apps” or by searching its name.

Method 3: Opera

  1. Open the website.
  2. Click the Opera logo (top-left) and go to “More tools”.
  3. Select “Install as app…”.
  4. Click Install in the dialog. The site opens in its own window.
  5. Launch it later from your application menu under “Opera Apps”.

Method 4: Universal Method (Any Browser) – Manual .desktop Launcher

If your browser lacks the install feature, or you want more control (like a custom icon), create a desktop entry manually.

  1. Open a terminal and create a new file: nano ~/.local/share/applications/websitename.desktop (replace “websitename” with something like “gmail.desktop”).
  2. Paste the following, replacing the Exec line with your browser's command and the site URL:
    [Desktop Entry]
    Name=Gmail
    Comment=Open Gmail as an app
    Exec=google-chrome --app=https://mail.google.com
    Icon=web-browser
    Terminal=false
    Type=Application
    Categories=Network;WebBrowser;
    For Firefox, use Exec=firefox --new-window https://site.com. For Chromium, use chromium --app=https://site.com. For Edge, use microsoft-edge --app=https://site.com. For Opera, use opera --app=https://site.com.
  3. Save the file (Ctrl+O, then Enter, then Ctrl+X in nano).
  4. Make it executable: chmod +x ~/.local/share/applications/websitename.desktop.
  5. Log out and back in, or run update-desktop-database ~/.local/share/applications to refresh the menu.
  6. Now the site appears in your application menu with the name you gave it. Clicking it opens the site in its own window.

Common Mistakes

  • Not checking “Open as window”: If you skip this, the shortcut just opens a new tab in your regular browser, defeating the purpose.
  • Using the wrong browser command: In the manual method, using google-chrome when you have Chromium installed will fail. Check your browser's actual executable name with which google-chrome or which chromium.
  • Forgetting to make the .desktop file executable: Without chmod +x, the launcher won't appear in your menu.
  • Putting the .desktop file in the wrong directory: It must be in ~/.local/share/applications for your user, or /usr/share/applications for system-wide (requires root).

Tips

  • Use the --app= flag in Chrome/Chromium/Edge to hide the address bar and tabs, giving a more “native” feel.
  • To change the icon of a manually created launcher, edit the Icon= line in the .desktop file to point to an image file (e.g., Icon=/home/you/icons/gmail.png).
  • For sites that need login, the app window will remember your session just like a normal browser tab—so you won't have to log in every time.
  • If you want the app to open at startup, copy the .desktop file to ~/.config/autostart/.
  • You can create multiple shortcuts for different accounts (e.g., Gmail personal vs. work) by using different user profiles in the browser command (e.g., --user-data-dir=/tmp/gmail-work).

Troubleshooting

  • The app doesn't appear in my application menu after creating the .desktop file: Run update-desktop-database ~/.local/share/applications and log out/in. Also verify the file has the .desktop extension and is executable.
  • Clicking the launcher does nothing: Open a terminal and run the Exec command manually to see any error messages. Common issues: wrong browser name, missing URL, or missing executable permissions.
  • The site opens in a normal browser tab instead of a separate window: In the manual method, ensure you used the --app= flag for Chromium-based browsers, or --new-window for Firefox. In the built-in method, reinstall the shortcut and check the “Open as window” box.
  • The app window is too small or too large: Some browsers remember the window size. Resize it manually, and it should persist next time. For Chrome, you can also add --window-size=width,height to the Exec line.
  • Notifications don't work in the app window: Ensure the site has permission to send notifications in your browser's settings. The app window uses the same permissions as the browser.

Frequently Asked Questions

Can I run a website as an app without installing anything?

Yes, if your browser has the built-in “Install” feature (Chrome, Edge, Firefox, Opera). If not, you can use the manual .desktop method, which only requires a text editor.

Will the app work offline?

Only if the website itself supports offline functionality (like Google Docs offline mode). The browser app window does not cache sites by default.

Can I have multiple app windows for the same site?

Yes, you can create multiple .desktop files with different names and URLs. For Chromium-based browsers, use separate --user-data-dir folders to keep sessions separate.

Does this work on Wayland or X11?

Yes, both. The browser handles the window creation, so it works on any display server.

Can I uninstall a website app?

Yes. For built-in installs, right-click the app icon in your application menu and select “Uninstall” or remove it via your package manager. For manual .desktop files, simply delete the .desktop file from ~/.local/share/applications.

Will this consume more memory than a regular browser tab?

Each app window runs as a separate browser process, so it uses roughly the same memory as a single tab. If you run many, it adds up, but it's usually fine for a few.