Title: The Snap package restricts `.desktop` file access for binaries that it invokes. · Issue #28439 · PowerShell/PowerShell · GitHub
Open Graph Title: The Snap package restricts `.desktop` file access for binaries that it invokes. · Issue #28439 · PowerShell/PowerShell
X Title: The Snap package restricts `.desktop` file access for binaries that it invokes. · Issue #28439 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/28439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The Snap package restricts `.desktop` file access for binaries that it invokes.","articleBody":"### Prerequisites\n\n- [x] Write a descriptive title.\n- [x] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [x] Search the existing issues.\n- [x] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [x] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nI first noticed, whilst debugging [`terrapkg/packages/issues/20269`](https://github.com/terrapkg/packages/issues/20269#issue-6430266204), that the Snap package causes problems regaring `.desktop` file access:\n\n\u003col>\u003cli>\n\n~~~pwsh\n#!/var/lib/snapd/snap/bin/pwsh-preview -File\nrun0 dnf5 install --refresh -y dbeaver-bin && `\ndbeaver-bin\n~~~\n\n\u003c/li>\u003cli>\u003cimg width=\"800\" height=\"412\" alt=\"Screenshot_20261116_134159\" src=\"https://github.com/user-attachments/assets/a5978edc-d487-4159-b8b2-94a54ae49d6a\" />\u003c/li>\u003c/ol>\n\n…which do not recur when an application is invoked via a `bash` `.rPM`.\n\n### Expected behavior\n\n```console\nbeedell.roke_julian_lockhart@host:~$ spectacle --help\nUsage: spectacle [options]\n```\n\n### Actual behavior\n\n```console\nPS /home/beedell.roke_julian_lockhart> spectacle --help \nCall to org.freedesktop.portal.Settings.ReadAll failed QDBusError(\"org.freedesktop.DBus.Error.AccessDenied\", \"Portal operation not allowed: Key file does not have key “DesktopFile” in group “Snap Info”\")\nUsage: spectacle [options]\n```\n\n### Error details\n\n```console\nPS /home/beedell.roke_julian_lockhart> $? \nTrue\n```\n\n### Environment data\n\n```YAML\nPS /home/beedell.roke_julian_lockhart> snap info powershell-preview | yq -P \nname: powershell-preview\npublisher: Canonical**\ncommands:\n - powershell-preview\nsnap-id: D0A7ph8R6LBXQ8rgs2ad06s8tjyeowsd\ntracking: latest/edge\nrefresh-date: 4 days ago, at 10:37 GMT\ninstalled: 7.7.0-rc.1 (241) 81.5MB classic\nPS /home/beedell.roke_julian_lockhart> $PSVersionTable | ConvertTo-JSON | yq -P\nPSCompatibleVersions:\n - Major: 1\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 2\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 3\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 4\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 5\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 5\n Minor: 1\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 6\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\n - Major: 7\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\nPSVersion:\n Major: 7\n Minor: 7\n Patch: 0\n PreReleaseLabel: rc.1\n BuildLabel: null\nPlatform: Unix\nOS: Fedora Linux 45 (KDE Plasma Desktop Edition)\nGitCommitId: 7.7.0-rc.1\nPSEdition: Core\nWSManStackVersion:\n Major: 3\n Minor: 0\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\nPSRemotingProtocolVersion:\n Major: 2\n Minor: 4\n Build: -1\n Revision: -1\n MajorRevision: -1\n MinorRevision: -1\nSerializationVersion:\n Major: 1\n Minor: 1\n Build: 0\n Revision: 1\n MajorRevision: 0\n MinorRevision: 1\n```\n\n### Visuals\n\n~~~JSON\n{\"version\":3,\"term\":{\"cols\":316,\"rows\":33,\"type\":\"xterm-256color\",\"version\":\"Konsole 26.08.3\",\"theme\":{\"fg\":\"#fcfcfc\",\"bg\":\"#232627\",\"palette\":\"#000000:#b21818:#18b218:#b26818:#1818b2:#b218b2:#18b2b2:#b2b2b2:#686868:#ff5454:#54ff54:#ffff54:#5454ff:#ff54ff:#54ffff:#ffffff\"}},\"timestamp\":1794928544,\"command\":\"pwsh\",\"env\":{\"SHELL\":\"/bin/bash\"}}\n[0.05,\"o\",\"\\u001b[?1h\\u001b=\"]\n[0.05,\"o\",\"PowerShell 7.7.0-rc.1\\r\\n\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"PS /home/beedell.roke_julian_lockhart> \"]\n[0.05,\"o\",\"\\u001b[?1h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\"]\n[0.05,\"o\",\"\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93ms\\u001b[0m\\u001b[97;2;3mudo dnf install asciinema\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;41H\"]\n[0.05,\"o\",\"\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\"]\n[0.05,\"o\",\"\\u001b[14;40H\\u001b[0m\\u001b[93msp\\u001b[0m\\u001b[97;2;3mectacle --help\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[39;49m\"]\n[0.05,\"o\",\" \\u001b[0m\\u001b[14;42H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspe\\u001b[0m\\u001b[97;2;3mctacle --help\\u001b[0m\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;43H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\"]\n[0.05,\"o\",\"\\u001b[14;40H\\u001b[0m\\u001b[93mspec\\u001b[0m\\u001b[97;2;3mtacle --help\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[39;49m\"]\n[0.05,\"o\",\"\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;44H\"]\n[0.05,\"o\",\"\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspect\\u001b[0m\\u001b[97;2;3macle --help\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;45H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspecta\\u001b[0m\\u001b[97;2;3mcle --help\\u001b[0m\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;46H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectac\\u001b[0m\\u001b[97;2;3mle --help\\u001b[0m\\u001b[39;49m\\u001b[0m\\u001b[14;47H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacl\\u001b[0m\\u001b[97;2;3me --help\\u001b[0m\\u001b[39;49m\"]\n[0.05,\"o\",\"\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;48H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[97;2;3m --help\\u001b[0m\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;49H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\"]\n[0.05,\"o\",\"\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[97;2;3m--help\\u001b[0m\\u001b[39;49m\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[14;50H\"]\n[0.05,\"o\",\"\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[37m-\\u001b[0m\\u001b[97;2;3m-help\\u001b[0m\\u001b[39;49m\\u001b[0m\\u001b[14;51H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\"]\n[0.05,\"o\",\"\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[90m--\\u001b[0m\\u001b[97;2;3mhelp\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;52H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\"]\n[0.05,\"o\",\"\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[90m--h\\u001b[0m\\u001b[97;2;3melp\\u001b[0m\\u001b[39;49m\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[14;53H\"]\n[0.05,\"o\",\"\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[90m--he\\u001b[0m\\u001b[97;2;3mlp\\u001b[0m\\u001b[39;49m\\u001b[0m\\u001b[14;54H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[6n\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[90m--hel\\u001b[0m\\u001b[97;2;3mp\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[39;49m\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;55H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\u001b[?25l\\u001b[14;40H\"]\n[0.05,\"o\",\"\\u001b[0m\\u001b[93mspectacle\\u001b[0m\\u001b[39;49m \\u001b[0m\\u001b[90m--help\"]\n[0.05,\"o\",\"\\u001b[39;49m\"]\n[0.05,\"o\",\"\\u001b[0m\"]\n[0.05,\"o\",\"\\u001b[14;56H\\u001b[?12l\\u001b[?25h\"]\n[0.05,\"o\",\"\\r\\n\"]\n[0.05,\"o\",\"\\u001b[?1l\"]\n[0.05,\"o\",\"Call to org.freedesktop.portal.Settings.ReadAll failed QDBusError(\\\"org.freedesktop.DBus.Error.AccessDenied\\\", \\\"Portal operation not allowed: Key file does not have key “DesktopFile” in group “Snap Info”\\\")\\r\\n\"]\n\n~~~","author":{"url":"https://github.com/beedell-roke","@type":"Person","name":"beedell-roke"},"datePublished":"2026-11-17T15:46:37Z","url":"https://github.com/PowerShell/PowerShell/issues/28439"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d017bd6f-b0a6-9820-d92c-3d774c109678 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E32C:2F6606:1C03F28:273DE93:6AFD1143 |
| html-safe-nonce | 4e53615a28ad2d3faa42f2b763251a6fe5adece4a7594791352ae6d6ccbeb7f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzJDOjJGNjYwNjoxQzAzRjI4OjI3M0RFOTM6NkFGRDExNDMiLCJ2aXNpdG9yX2lkIjoiNTQ4NTUxNzA0OTUzNjc3ODU2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 60f69ff0eea7a60bf921bffce262f190d7ca52af7f1d8a3e3f8a26a35b491f1f |
| hovercard-subject-tag | issue:6448349898 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/28439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/22de9ef65e09568ce90c243bbd5db7c8bb998e62aa4b077733d469389e248f47/PowerShell/PowerShell/issues/28439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/22de9ef65e09568ce90c243bbd5db7c8bb998e62aa4b077733d469389e248f47/PowerShell/PowerShell/issues/28439 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | beedell-roke |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width