New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pantheon Tweaks as an independent GTK app provided through Flatpak #187
Comments
Hey good plan man, I think it's a good idea to future proof it and it would have the side effect to also make it portable across other OSs without having to depend on Switchboard :) I was under the impressions that Flatpacks could not modify system settings though, but you got it working, was there a portal/permissions to allow that access? After this time, I trust that you know what is best for this project, and I will support you in this decision :) I'll setup a VM with elementary to give your branch a test spin, and when the time comes let me know and I can pull the plug to the PPA to avoid having broken builds |
Thank you for your comment. I'll begin to work on porting Tweaks to the flatpacked GTK app.
Yes, you're right. Porting Tweaks into just a normal GTK app also means it can be launched and may break preferences on other desktop environments accidentally, but I think the following things should prevent that:
Yes I was also wondering that. There does not seem to a portal exists here, but dconf-editor which also read/write system GSettings is available on Flathub and they do the following things to fulfill that:
Thank you. Regarding to the PPA, maybe we need to modify debian packaging to install the new flatpaked Tweaks app instead of the Plug like elementary did here in case if a user still attempts a PPA installation. I'll also implement this too. |
@Philip-Scott One thing I'd like to confirm, do we submit the flatpaked Tweaks to AppCenter or keep it self-hosted? I read elementary-tweaks/elementary-tweaks#48 (comment) and you're right. Tweaks still read/write system preferences even if it is sandboxed, thus might break system. (also I'm not sure if it's accepted to AppCenter since we need some file access permissions) Looks like we can create a repo on GitHub according to the doc in case of self-hosted. |
Yeah.... I don't think this will ever be accepted on AppCenter 😅 Danielle has always been pretty opposed to tweaks as it can lead to things breaking. I think just hosting on Flathub can be more than enough :) One thing that would be cool however is if we could get this to be installed on a clean elementary OS install without a user needing to open the terminal at all! Steam-deck-utilities and Emudeck do this by getting the user to download a .desktop file that when executed, downloads and runs a bash script. Just something to consider ;) I don't know if things could break for existing users if we were to update the PPA to download and install the flatpak... Maybe we can just pause it for now to make things easier and avoid any edge cases 🤔 What do you think? |
You're right. We can submit to Flathub instead.
elementary OS comes with a tool named Sideload that can install Flatpak apps, so it should work. Flathub provides
Indeed, just pausing the PPA would lessen risks of "it won't work" issue happening and our tasks. Before pausing PPA, maybe we may want to let users know about the migration to an independent app through the plug? For example, adding a infobar about migration like this, ship that change as the last update, then pause the PPA. |
@Philip-Scott I added the infobar to the Tweaks, triggers builds on Launchpad, and it succeeded. Could you pause the PPA? I guess changing "Build schedule" to "Build on request" in the following page should work. https://code.launchpad.net/~philip.scott/+recipe/pantheon-tweaks-git |
@Philip-Scott Letting you know that Pantheon Tweaks is now on Flathub: |
@Philip-Scott What do you think about making Pantheon Tweaks an independent GTK app instead of Switchboard plugin, and providing it using Flatpak instead of PPA? Or should we keep as it is?
Problem
I think the current Tweaks have some problems:
Fix
To resolve these issues above, I think we may want to:
I've created an experiment branch
research/as-independent-app
to confirm possibility of implementation. If possible, I'd like you to install and try this branch on elementary OS. I'll create a pull request from this branch with additional fix (e.g. README things) if you agree with changing to independent Flatpak app.The text was updated successfully, but these errors were encountered: