Skip to content

flatpak-vm: Add a vm to allow installing flatpaks using cosmic store#1502

Merged
brianmcgillion merged 2 commits intotiiuae:mainfrom
vunnyso:vs-flatpak
Nov 12, 2025
Merged

flatpak-vm: Add a vm to allow installing flatpaks using cosmic store#1502
brianmcgillion merged 2 commits intotiiuae:mainfrom
vunnyso:vs-flatpak

Conversation

@vunnyso
Copy link
Copy Markdown
Collaborator

@vunnyso vunnyso commented Oct 24, 2025

Description of Changes

  1. App store can be launched from Applications. (initial load may take time)

  2. Search the app to install
    image

  3. Apps can be installed, opened, and uninstalled without any issues.

  4. Installed applications will remain persistent even after rebooting.

  5. Applications specific to Xwayland are loading fine

Storage

Allocated 200GB for app storage.

Type of Change

  • New Feature
  • Bug Fix
  • Improvement / Refactor

Related Issues / Tickets

Checklist

  • Clear summary in PR description
  • Detailed and meaningful commit message(s)
  • Commits are logically organized and squashed if appropriate
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • Author has run make-checks and it passes
  • All automatic GitHub Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing Instructions

Applicable Targets

  • Orin AGX aarch64
  • Orin NX aarch64
  • Lenovo X1 x86_64
  • Dell Latitude x86_64
  • System 76 x86_64

Installation Method

  • Requires full re-installation (Better to use it)
  • Can be updated with nixos-rebuild ... switch
  • Other:

Test Steps To Verify:

  1. I have have tested installing and opening the following apps (basic testing)
    a. Firefox (YouTube playback tested)
    b. Telegram
    c. Meld (File browser used for loading and comparing files)
    d. Thunderbird
    e. Bottles
    f. Spotify
    g. Audacity
    h. Postman (x11)
    i. Discord (x11)
    j. Visual Studio Code (File browser tested for existing project and file saving)
    k. GNOME Chess (Can be played fine)

  2. Top Linux apps and frequently used apps can also be tested.

  3. Make sure app data is persistent across reboots.

Note: Please refer to Description of Changes section for more insights.

@vunnyso vunnyso requested review from mbssrc and nesteroff November 10, 2025 14:47
@vunnyso vunnyso marked this pull request as ready for review November 11, 2025 13:37
@vunnyso
Copy link
Copy Markdown
Collaborator Author

vunnyso commented Nov 11, 2025

@vunnyso we just need to increas the amount of storage for the vm. a few large apps and we are running out of space. it is only 10G by default

@brianmcgillion I have increased it to 30G for now.

@mbssrc
Copy link
Copy Markdown
Collaborator

mbssrc commented Nov 12, 2025

Nice!

- Added runAppCenter shell app to launch cosmic-store under Wayland
- Replaced GNOME Software with Cosmic App Store
- Introduced xwayland-satellite input and run-xwayland systemd user service
- Enabled Polkit rules and xdg-desktop-portal-cosmic for Flatpak apps
- Added vTPM and audio support for improved virtualization

Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
@milva-unikie
Copy link
Copy Markdown

Tested on Darter Pro (new installation)

I agree with Manuel, this is nice! Overall everything works great, this is an amazing addition to Ghaf.

Working

  • Once the app store opens it works very smoothly.
  • Apps can be installed and deleted.
  • App data is saved to persistent storage. Verified that Spotify login information was saved with the changes made an hour ago.
  • The flatpak-vm border color is now more distinguishable, it was changed to orange in the latest update.
image
  • Installed and uninstalled apps are logged to Grafana
1762945115869 2025-11-12T10:58:35.869Z system: Pulled app/org.telegram.desktop/x86_64/stable from /var/lib/flatpak/repo/tmp/flatpak-cache-H19RF3/repo-vZ33Xc
1762945115869 2025-11-12T10:58:35.869Z system: Installed app/org.telegram.desktop/x86_64/stable from flathub
1762946951532 2025-11-12T11:29:11.532Z system: Uninstalled app/org.telegram.desktop/x86_64/stable
  • I did not yet have time for detailed app testing, but I’m sure users (me included) will provide feedback about any features that are not working :)

Notes for future changes

  • For usability, it would be good to include flatpak-vm in Shares.
  • Opening links does not work from the apps, it would be nice to have some solution for that.

@milva-unikie milva-unikie added Tested on System76 and removed Needs Testing CI Team to pre-verify labels Nov 12, 2025
@brianmcgillion brianmcgillion merged commit e4255ca into tiiuae:main Nov 12, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants