{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiaazok5qczqomvrcpimwfxhbrqqdr47xisgfrtofzrtruyrfhkyg4",
    "uri": "at://did:plc:yrn4rbgwenb6lfhhzjegbtnc/app.bsky.feed.post/3mlqolvayya72"
  },
  "path": "/t/libreoffice-flatpak-launch-command-needs-improvement/12175#post_4",
  "publishedAt": "2026-05-13T01:02:55.000Z",
  "site": "https://discourse.flathub.org",
  "tags": [
    "@u"
  ],
  "textContent": "I don’t think your issue is related to the command line. `--file-forwarding` allows file/URI arguments to be forwarded to the app via the document portal. With the LibreOffice flatpak’s broad file access (`--filesystem=host`), it isn’t needed, but this is a builtin feature that can’t be turned off, and it doesn’t do any harm anyway.\n\nAs per the Desktop Entry spec, the `%U` specifier must be removed by the launcher if the app is launched without any URIs, so the actual resulting command line would look like this:\n\n`flatpak run --branch=stable --arch=x86_64 --command=libreoffice --file-forwarding org.libreoffice.LibreOffice --calc @@u @@`\n\nWith `--file-forwarding`, flatpak consumes the `@@u` and `@@`, and forwards any URIs between them (none in this case). Inside the sandbox, the LibreOffice binary would only receive `--calc`.\n\nAs a result, `flatpak run org.libreoffice.LibreOffice --calc` would be practically equivalent to launching LibreOffice Calc from your desktop shell.\n\n* * *\n\nAre you using a Wayland or X11 session? It shouldn’t be trying to use X11 if you’re on Wayland, and by default would be unable to do so.",
  "title": "LibreOffice flatpak launch command needs improvement"
}