-
Notifications
You must be signed in to change notification settings - Fork 430
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
[Error] xargs parsing error at exporting app #1097
Comments
Found out what the problem was: This issue can still be open to add a chage where it parses program that contains single quotes in the names. |
I still get this issue and it prevents me from exporting apps |
I ran into an issue when exporting. I mentioned it here: 89luca89#1097 (comment) I have reworked a small part of the code to utilize the `-0` option of `xargs`
Describe the bug
distrobox-export --app emacs
isn´t working as expected.it throws the output:
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option Error: cannot find any desktop files. Error: trying to export a non-installed application.
Trying to debugging it by setting only the folder
/usr/share/applications
it works properly.So probably the bug is in one of the queries to find an
emacs
installation.To Reproduce
Install emacs
(ubuntu:latest)
:sudo apt-get install emacs
and export it:
distrobox-export --app emacs
Expected behavior
Emacs exported to my local user.
Logs
(I've added the
-t
verbose tag toxargs
to extend the grep command)podman_log.log
Desktop (please complete the following information):
podman
podman version 4.5.1
distrobox: 1.6.0.1
SteamOS 3.5
curl + prefix=.local/
Additional context
Context:
I have previously created a
debian
container and exported another application:VScode
.I had deleted the container (instead of removing the application first) - and the distrobox asked me to
--force
the deletion of thedebian
container.This is the only correlation of cause that happened to this behaviour happen.
~/.local/share/applications
, searched for any dead symbolic link to any shortcut forcode.desktop
.export
program, and it seems that it gets itself lost at some directory.distrobox
andpodman
-- no success/etc/containers
folder and re-downloaded the registries - no success/usr/share/applications
and it works properly. So my main idea is that during the search it finds an broken shortcut that returns a bad string that breaksxargs
- probably a bad-link generated by the container that got deleted.The text was updated successfully, but these errors were encountered: