{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibns52nvajffvuhan4hygq6vk6lf4mr4epd2ntmvudtiqhbf2favm",
    "uri": "at://did:plc:yrn4rbgwenb6lfhhzjegbtnc/app.bsky.feed.post/3mh4mu4omdic2"
  },
  "path": "/t/system-wide-dri-prime-environment-variable-for-all-flatpaks-is-there-a-solution/11852#post_1",
  "publishedAt": "2026-03-15T03:38:13.000Z",
  "site": "https://discourse.flathub.org",
  "textContent": "Hello everyone,\n\nI’m running Arch Linux with GNOME on a laptop with hybrid graphics:\n\n  * **Device 0:** AMD Radeon 890M (integrated GPU)\n  * **Device 1:** AMD Radeon RX 7700S (discrete GPU via PCIe Gen 4)\n\n\n\n**The Problem:**\n\nMany of my Flatpak applications (Bitwarden, etc.) are being assigned to the discrete GPU (Device 1) by GNOME/Mutter, even though they don’t use any GPU acceleration and just waste resources. This seems to happen automatically, and I haven’t found a clear pattern for why certain apps get assigned to which GPU.\n\nI want to **force all Flatpak applications to use the integrated GPU (DRI_PRIME=0)** by default to save power and system resources.\n\n**What I’ve tried:**\n\n  1. Using Flatseal to set `DRI_PRIME=0` per application — this works but requires manual configuration for every single app\n\n\n\n**My Questions:**\n\n  1. Is there a way to set environment variables system-wide for all Flatpaks without configuring each app individually?\n  2. Are there other approaches to control GPU assignment for Flatpak applications?\n\n\n\n**Additional context:**\n\n  * Flatpak version: 1.16.3\n\n\n\nAny insights or workarounds would be greatly appreciated!\n\n**Thanks in advance!**",
  "title": "System-wide DRI_PRIME environment variable for all Flatpaks - is there a solution?"
}