pongloongyeat / killswitch

One file to kill them all.
GNU General Public License v3.0
7 stars 2 forks source link

Bundle as flatpak for Vala release #5

Open pongloongyeat opened 3 years ago

pongloongyeat commented 3 years ago

From #4

Alright I've done the flatpak, but it obviously cannot kill any other apps by default - and it seems that flatpak blacklists /usr and /bin because it already exists in the sandbox and there isn't any sane way around it afaik. I've been looking in to how DBus works and it seems like the way to go for flatpak apps since it lets you communicate with other processes and possibly tell them to kill themselves(?). It probably won't be difficult as DBus looks like it's pretty easy to use Also if you want the io.elementary.Sdk and io.elementary.Platform flatpak packages I've put them on my Dropbox shared folder my Dropbox shared folder

pongloongyeat commented 3 years ago

I'm trying to bundle the app as a flatpak rn, I kinda wish that the flatpaked elementary app Sdk was officially out, because I'm going to have to specify the locally built one on every launch -_-

You should probably wait till after the SDK is officially out so it's not a pain.

Alright I've done the flatpak, but it obviously cannot kill any other apps by default - and it seems that flatpak blacklists /usr and /bin because it already exists in the sandbox and there isn't any sane way around it afaik.

Yeap, it looks into /usr/share/applications, mostly because

  1. I only wanted to kill user-installed Applications
  2. There are loads of processes launched by the System/User and I don't think it's too good of an idea to write a long blacklist of processes to not kill.

I've been looking in to how DBus works and it seems like the way to go for flatpak apps since it lets you communicate with other processes and possibly tell them to kill themselves(?)

I'm unfortunately not too familiar with DBus and have periodically avoided DBus due to the lack of some sort of a DBus inspector for eOS, though I don't mind taking a look into it.

hanaral commented 3 years ago

Just as a heads-up; if you want to build io.elementary.Sdk yourself I would highly recommend purging the build script of org.gnome.Sdk.Debug otherwise the build might take an entire night and produce well over 10GB of space with little to no benefit.