-
Notifications
You must be signed in to change notification settings - Fork 307
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
feat: add compatibility button for Linux using flatpak-spawn #1925
Conversation
b2791f6
to
2d87d7a
Compare
Ready for review! Works on Fedora 39 / Ubuntu but not on Debian. Will ask you for a password when enabling / disabling as it's using The warning will NOT go away due to this issue: #1928 on Linux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried on fedora 37 but nothing happens apparently. Not sure if i'm expecting a different behavior or it doesn't work. I click on the compatibility button, it asks me to enable it. I authenticate. Everything seems went fine. Then if i re-click i would expect the disable workflow but it repeat the enablement.
d0c111a
to
a686e81
Compare
3bc8bc7
to
6b52398
Compare
Done, ready for another review. Using Keep in mind, that the warning will ALWAYS show due to bug: #1928 See video below: Screen.Recording.2023-04-05.at.11.09.47.AM.mov |
ea0adfd
to
7e1de3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried but i still don't see the disable part.
When i click on the action, the enablement (systemctl enable...
) works fine but then i read in the dialog i have to execute the command ln -s ...
. Can't this be performed automatically somehow?
If i click ok i don't see it anymore and i don't have any way to retrieve it. Even changing the icon on the bottom with a mark if the docker socket does not exists to remind me to do the linking would be helpful. Or atleast we could add a button copy command
in the dialog so it is more clear i have to do something. Even though i'd prefer to have it working without doing anything manually.
The other problem i have is that i cannot never disable it. If i click on the compatibility action it keeps enabling it. It would be great if it disable/delete the linking/socket
Unfortunately it's because of "Keep in mind, that the warning will ALWAYS show due to bug: #1928" I did automate the |
ab48e66
to
7bc5353
Compare
@lstocchi Figured it out! Was able to use NOTE: Still wont get rid of the warning due to #1928 but at least compatibility mode will work with CLI tools Ready for another review @lstocchi and @benoitf Screen.Recording.2023-04-12.at.11.11.36.AM.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested. LGTM. GJ!! 🚀
I can see the docker.sock created correctly and it works as expected.
My only concern is that we should fix #1928 before release with this patch otherwise it is confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapproving as i use the gh filter to see which PRs i need to review 😆
This was requested in the Discord recently with regards to the status of it. I"ve gone ahead and rebased it. Could use with another review / possible merge! |
### What does this PR do? * Uses flatpak-spawn * Adds a compatibility button that will enable / disable the systemd podman.socket that allows Docker compatibility * Refactors the runSudoHelperCommand function so that both macOS and Linux implementations can use it ### Screenshot/screencast of this PR <!-- Please include a screenshot or a screencast explaining what is doing this PR --> ### What issues does this PR fix or reference? <!-- Please include any related issue from Podman Desktop repository (or from another issue tracker). --> Closes the rest of podman-desktop#1447 ### How to test this PR? <!-- Please explain steps to reproduce --> 1. Use Linux 2. `yarn watch` 3. Click on the compatibility mode and follow the steps to enable / disable. Signed-off-by: Charlie Drage <charlie@charliedrage.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked still working on macOS
feat: add compatibility button for Linux using flatpak-spawn
What does this PR do?
podman.socket that allows Docker compatibility
Linux implementations can use it
Screenshot/screencast of this PR
What issues does this PR fix or reference?
Closes the rest of #1447
How to test this PR?
yarn watch
disable.
Signed-off-by: Charlie Drage charlie@charliedrage.com