chore: fix flatpak permissions

This commit is contained in:
Fabio Lenherr / DashieTM 2023-11-16 01:50:23 +01:00
parent b160e755f9
commit b6f447b11c
3 changed files with 18 additions and 8 deletions

View file

@ -10,3 +10,8 @@
### instructions for installation:
`flatpak install --user reset.flatpak`
### permissions
currently ReSet uses permission on all devices, for some reason otherwise it can't access sound settings like volume changes etc.
This can likely be fixed by implementing portal integration later.

View file

@ -1042,14 +1042,14 @@
{
"type": "archive",
"archive-type": "tar-gzip",
"url": "https://static.crates.io/crates/reset_daemon/reset_daemon-0.1.6.crate",
"sha256": "a0f96caf82e3281d951d112167384cf5e44bab6f5e5dbc073b845e47154dc512",
"dest": "cargo/vendor/reset_daemon-0.1.6"
"url": "https://static.crates.io/crates/reset_daemon/reset_daemon-0.1.7.crate",
"sha256": "f7b48ba0698bdb4ead119140a557346907b40ae17cac324687a032b4d6ea9851",
"dest": "cargo/vendor/reset_daemon-0.1.7"
},
{
"type": "inline",
"contents": "{\"package\": \"a0f96caf82e3281d951d112167384cf5e44bab6f5e5dbc073b845e47154dc512\", \"files\": {}}",
"dest": "cargo/vendor/reset_daemon-0.1.6",
"contents": "{\"package\": \"f7b48ba0698bdb4ead119140a557346907b40ae17cac324687a032b4d6ea9851\", \"files\": {}}",
"dest": "cargo/vendor/reset_daemon-0.1.7",
"dest-filename": ".cargo-checksum.json"
},
{

View file

@ -3,15 +3,20 @@
"runtime": "org.gnome.Platform",
"runtime-version": "45",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.rust-stable"],
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"command": "reset",
"finish-args": [
"--socket=session-bus",
"--socket=system-bus",
"--socket=pulseaudio",
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri"
"--device=dri",
"--device=all",
"--allow=bluetooth"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin"
@ -29,7 +34,7 @@
"cargo --offline fetch --manifest-path Cargo.toml --verbose",
"cargo --offline build --release --verbose",
"install -Dm755 ./target/release/reset -t /app/bin/",
"install -Dm644 ./src/resources/icons/ReSet.svg /app/share/icons/hicolor/scalable/apps/org.xetibo.ReSet.svg",
"install -Dm644 ./src/resources/icons/ReSet.svg /app/share/icons/hicolor/scalable/apps/org.xetibo.ReSet.svg",
"install -Dm644 ./flatpak/org.xetibo.ReSet.desktop /app/share/applications/org.xetibo.ReSet.desktop"
],
"sources": [