Skip to content
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

check for flatpak when calling command from exec #1567

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

RobotSail
Copy link
Contributor

What does this PR do?

Fixes issue where commands cannot be executed on system when running within a Flatpak.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

When running commands within an extension, they all are spawned on the system the same way.
However, running the same commands when Podman desktop is running as a Flatpak will cause the extension to break with the following error message:

Command failed: undefined

Flatpak

Running as Flatpak

Non-Flatpak

Running as non-Flatpak

How to test this PR?

Try running the FetchIt Desktop extension from within a Flatpak environment and then outside of Flatpak.

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
@RobotSail
Copy link
Contributor Author

I'm not sure if this is the best approach; I'm simply following what's happening in the Podman extension extensions/podman/src/util.ts

@benoitf benoitf enabled auto-merge (rebase) February 28, 2023 07:43
@benoitf benoitf merged commit 74783ca into containers:main Feb 28, 2023
@podman-desktop-bot podman-desktop-bot added this to the 0.13.0 milestone Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants