p-e-w / plotinus

A searchable command palette in every modern GTK+ application
1.02k stars 22 forks source link

Submit to distro repos #20

Open rugk opened 7 years ago

rugk commented 7 years ago

It would be nice to have this application in distro's repos. Or maybe offer a flatpak/snap if that is possible.

p-e-w commented 7 years ago

The biggest issue with any sort of automatic installation is getting the environment variable right.

We would need to set GTK3_MODULES globally, while respecting existing modules already found in it, then remove it again when uninstalling.

If you have any suggestions how to do that reliably, I'm all ears.

bmeznarsic commented 7 years ago

Hey there! I issued a packaging request on the Solus Project's issue tracker and got shot down for a couple of reasons. https://dev.solus-project.com/T3294 One of the reasons was that you don't provide any release tarballs or git tags. There's no immutable point from which they could build a package. Could you please provide a tarball or at least a git tag? In regards to the gtk modules variable:. [18:22] <@ikey> the GTKMODULES thing we could work out with a /usr/share/defaults/etc/profile.d file on solus [18:22] <@ikey> so that you reboot and boom its working [18:23] <@ikey> newer systemd versions support environment.d files [18:23] <@ikey> so up or down there is a solution :] [18:23] <blaz> Is that the stateless location? [18:23] <@ikey> yeah [18:24] <@ikey> upstream would likely default to /etc/profile.d [18:24] <@ikey> the cost of being different [18:24] <@ikey> lol [18:24] :)

p-e-w commented 7 years ago

@bmeznarsic: Thank you for your effort! You can now find both a tarball and a Git tag here.

bmeznarsic commented 7 years ago

@p-e-w
https://dev.solus-project.com/source/plotinus/

tmp_12772-screenshot_2017-05-09-16-44-38365344529

JoshStrobl commented 7 years ago

Just an update, adding the profile.d file in the Solus package currently so it'll work automagically after reboot.

JoshStrobl commented 7 years ago

Landed in rel 2: https://dev.solus-project.com/R3392:ff7d3f8ba1873e83a3537e56b139aa094ebd8f3f

p-e-w commented 7 years ago

@JoshStrobl: Cool! 😎

You should use GTK3_MODULES instead of GTK_MODULES to avoid problems with GTK+ 2 applications. The accessibility issue mentioned in the packaging thread is a good example of how hard it is to get global environment variables right on Linux.

rugk commented 7 years ago

What about other distro's such as Debian or Fedora?

deikatsuo commented 6 years ago

@p-e-w How to make Plotinus working on Flatpak apps? screenshot from 2017-12-18 07-19-03

samdroid-apps commented 6 years ago

In NixOS, I just added a package and system module: https://github.com/NixOS/nixpkgs/commit/16fa6f59f77fd635665ba719e278bc673ceb1d9e

So users can add one line to their system configuration; and the appropriate environment vars are set. Then just Ctrl-Shift-P and :smile:.

I can submit a patch to document it in the readme is @p-e-w would be receptive to that?

lf-araujo commented 6 years ago

It would be nice to also be able to use it within flatpak apps. Did anyone find a way of doing this?