psst icon indicating copy to clipboard operation
psst copied to clipboard

linux: Prepare for Flatpak

Open TheEvilSkeleton opened this issue 2 years ago • 13 comments

  • Use app ID
  • Add appstream file

Related to https://github.com/flathub/flathub/pull/4151 and https://github.com/jpochyla/psst/pull/141

TheEvilSkeleton avatar May 13 '23 18:05 TheEvilSkeleton

@TheEvilSkeleton What else is there to do to finalize the process, just add the mpris privileged?

jacksongoode avatar May 16 '23 04:05 jacksongoode

I think so. Although, per https://github.com/flathub/flathub/pull/4151#issuecomment-1548697783, they say it'd be better not to add any additional permission and have it done properly. To be frank, I know nothing about MPRIS. @A6GibKm can you help us out?

TheEvilSkeleton avatar May 18 '23 19:05 TheEvilSkeleton

If I am not mistaken

let mut media_controls = MediaControls::new(PlatformConfig {
            dbus_name: APP_ID,
            display_name: "Psst",
            hwnd,
        })?;

is the required change. Note that while this would be ideal, it is not strictly needed and one could add a sandbox hole for org.mpris.MediaPlayer2.Psst (Psst being the current dbus_name).

A6GibKm avatar May 18 '23 20:05 A6GibKm

@TheEvilSkeleton Do you think this change is reasonable?

jacksongoode avatar May 23 '23 21:05 jacksongoode

In my opinion, yes. I'm in favor of reducing permissions as much as possible. That being said, I'm not well versed in Rust, so I can't give my opinion on the code/implementation.

TheEvilSkeleton avatar May 25 '23 20:05 TheEvilSkeleton

@TheEvilSkeleton Has the been any movement on this since the Flatpak folks have talked?

jacksongoode avatar Jul 26 '23 20:07 jacksongoode

Unfortunately, no. I don't have much free time anymore.

TheEvilSkeleton avatar Jul 29 '23 20:07 TheEvilSkeleton

I will see if I can find some time to poke at this later.

orowith2os avatar Jul 29 '23 22:07 orowith2os

Yeah it would be good to finally release this thing officially.

jacksongoode avatar Jul 29 '23 22:07 jacksongoode

Most of the changes for this seem to not be flatpak-specific; maybe merging those separately would be good?

orowith2os avatar Jul 29 '23 23:07 orowith2os

@orowith2os @TheEvilSkeleton Any further interest in seeing if we can get this packaged?

jacksongoode avatar Oct 27 '23 20:10 jacksongoode

I can only help with packaging-related stuff, but nothing I can help with Rust code

TheEvilSkeleton avatar Oct 28 '23 22:10 TheEvilSkeleton