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
consider building a flatpak for linux #562
Comments
It is really more then trivial to compile native pwsafe package on all Linuxes, thus a need for flatpak is questionable. |
Flatpack has many benefits: |
I have created flatpak of Password Safe program. If somebody is interested, please test and report back if it is working for you. CAUTIONBefore using PasswordSafe package as flatpak I strongly suggest to make a copy of Password Safe password database file *.psafe3. I have performed some tests and haven't found any issue, but just in case if something goes wrong, you are using flatpak application at your own risk and you should have a backup. PREREQUISITESMake sure Flatpak is installed. On some Linux distributions Flatpak is installed by default. For example: Fedora, Linux Mint, OpenSuse, etc. But on some of Linux distributions e.g. Ubuntu, it must be installed manually. See setup instructions: https://www.flatpak.org/setup/ There are just few simple commands to execute. BUILD, INSTALL AND USE PASSWORD SAFE FLATPAKI created bash script to massively simplify download source code, build, install and run a Password Safe flatpak.
That is all. Now just wait e.g. 15 min that flatpak gets build and installed. After flatpak package is build and installed, first time it is also automatically started. If everything goes well, after few minutes you should see Password Safe GUI program. Next time you would like to start flatpak, you can do it from terminal "flatpak run com.github.pwsafe.pwsafe" or pressing Super key (also known as "Windows key") and type in: PasswordSafe and press Enter. FLATPAK BENEFITS
FLATPAK COMMUNITY HELPI have created Password Safe flatpak package in few days, despite starting from my zero knowleadge how flatpaks internals works. Community is very helpful, so progress is made very quickly. If you are interested the help I have got from Flathub community and the steps I took to get to the working flatpak. https://discourse.flathub.org/t/how-to-include-libraries-into-my-first-ever-flatpak/4950 LIMITATIONS
QUESTION TO PASSWORD SAFE DEVELOPERSIt would be awesome, if developers are interested on maintaining future flatpak releases. It shouldn't be too much additional work. Structure of manifest file should not get changed much. If I did it with zero application development expience, then anyone can. My question to developer is, are you willing to take where I finished, and do only few steps (after do some testing), to publish package on Flathub. Process should not be too complicated. Just follow Submission chapter https://docs.flathub.org/docs/for-app-authors/submission and then all the rest Flathub project people will tell you if something additional should be made. Maybe also take a lot at the Requirements site https://docs.flathub.org/docs/for-app-authors/requirements |
Thanks @igor2x ! |
I have now simplified manifest file. This should be much easier to manually update manifest file when new Password Safe version is released in future. Updated make.zip to generate manifest file. When new version of Password Safe is released do the following to build new manifest file:
Now move down in manifest file and search for "-name" for new library and do all of above steps. Repeat the process for all libraries and main Password Safe program. |
I have updated make.zip file. New version of Freedesktop SDK was released and I changed required flatpak's SDK version from 22.08 to 23.08. Freedesktop SDK is released once per year and is maintained for 2 years, this new version up to 2025/09. I have successfully build PasswordSafe v1.17 with this new version of Freedesktop, did some test and everything is working fine. In my humble opinion, when proceeding on releasing flatpak on Flathub, we should start with new Freedesktop, so we can use this runtime for two years without additional testing required. |
@ronys I have gone through the list of Requirements and I have created all of the files required by Flathub: flathub.zip Please do the following:
in above file change:
to your contact information.
I am willing to help if submission personal requires something additionally. Please update this thread, if/when you create pull request on Github for Flathub. |
Thanks for the update! |
Hi, |
@ronys, no worries... I am glad you have found some time to submit it to Flathub. From mergers comments and current Flathub documentation, it looks like Flathub submission has changed. I have collected required info like four months ago. Flathub is getting better and better, so changes are expected. |
@ronys, congratulations Password Safe is finally published on Flathub.org. Password Safe can be installed as flatpak to visit https://flathub.org/apps/org.pwsafe.pwsafe Password Safe can be installed from Gnome's Software (if flatpak is installed). @ronys, you can close down this issue. Thanks for cooperation to make excellent tool Password Safe available as flatpak. |
It would be great to have pwsafe as a flatpak. That way, installation would be easy for many distributions.
The text was updated successfully, but these errors were encountered: