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

[Error] Distrobox can't export app #1704

Open
FatngatirBilek opened this issue Mar 7, 2025 · 0 comments
Open

[Error] Distrobox can't export app #1704

FatngatirBilek opened this issue Mar 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@FatngatirBilek
Copy link

Please, before opening a bug:

  • make sure you've read the documentation.
  • Ensure there isn't already an open issue about this.
  • Ensure there isn't already a closed/resolved issue about this.

Describe the bug
I installed the app from the container then tried to export it but it won't work and it says Error: cannot find any desktop files

To Reproduce

  1. make a container using
    distrobox create --image quay.io/toolbx/arch-toolbox:latest --name archlinux

  2. enter the container
    distrobox enter archlinux

  3. install app with
    sudo pacman -S geany

  4. try to export geany using
    distrobox-export --app geany

it says

[fathirbimashabri@nixos ~]$ distrobox-export --app geany
find: ‘ /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications /usr/share/applications /home/fathirbimashabri/.local/share/applications’: No such file or directory
Error: cannot find any desktop files.
Error: trying to export a non-installed application.

Expected behavior
it will exported the app into the host

Logs

[fathirbimashabri@nixos ~]$ distrobox-export --app geany --verbose
+ '[' '!' -e /home/fathirbimashabri/.local/bin ']'
+ '[' '!' -f /run/.containerenv ']'
+ '[' '!' -f /.dockerenv ']'
+ grep -q rootless=0 /run/.containerenv
++ id -u
+ '[' 1000 -eq 0 ']'
+ '[' -n geany ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ container_command_suffix=''\'''\''  "$@"'
+ '[' 0 -ne 0 ']'
+ container_command_prefix='/run/current-system/sw/bin/distrobox-enter  -n archlinux  --  '
+ '[' -n '' ']'
+ '[' -z '' ']'
+ exported_app_label=' (on archlinux)'
+ case "${export_action}" in
+ export_application
+ canon_dirs=
+ '[' -e geany ']'
+ IFS=:
+ '[' -n /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share:/nix/store/f4ibz405hh39ln366g38hr96dvb85q84-gsettings-desktop-schemas-47.1/share/gsettings-schemas/gsettings-desktop-schemas-47.1:/nix/store/j9rcn0wz3p982laf27lb5mjnricsghgh-gtk4-4.16.12/share/gsettings-schemas/gtk4-4.16.12:/nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share:/nix/store/3ykhinr1b1ayc0935ishf5rvvr9vyadx-desktops/share:/home/fathirbimashabri/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/fathirbimashabri/.nix-profile/share:/nix/profile/share:/home/fathirbimashabri/.local/state/nix/profile/share:/etc/profiles/per-user/fathirbimashabri/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share:/nix/store/n5yyf3bi149wfdj9cn3s0ryi62nr31fl-gnome-shell-47.4/share/gsettings-schemas/gnome-shell-47.4:/nix/store/kmqihyq1h9drwyn95abwvwzljkvrgzj9-gnome-shell-extensions-47.4/share/gsettings-schemas/gnome-shell-extensions-47.4:/usr/local/share:/usr/share ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications ']'
+ canon_dirs=' /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/f4ibz405hh39ln366g38hr96dvb85q84-gsettings-desktop-schemas-47.1/share/gsettings-schemas/gsettings-desktop-schemas-47.1/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/j9rcn0wz3p982laf27lb5mjnricsghgh-gtk4-4.16.12/share/gsettings-schemas/gtk4-4.16.12/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications ']'
+ canon_dirs=' /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/3ykhinr1b1ayc0935ishf5rvvr9vyadx-desktops/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /home/fathirbimashabri/.local/share/flatpak/exports/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /var/lib/flatpak/exports/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /home/fathirbimashabri/.nix-profile/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/profile/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /home/fathirbimashabri/.local/state/nix/profile/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /etc/profiles/per-user/fathirbimashabri/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/var/nix/profiles/default/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /run/current-system/sw/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/n5yyf3bi149wfdj9cn3s0ryi62nr31fl-gnome-shell-47.4/share/gsettings-schemas/gnome-shell-47.4/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /nix/store/kmqihyq1h9drwyn95abwvwzljkvrgzj9-gnome-shell-extensions-47.4/share/gsettings-schemas/gnome-shell-extensions-47.4/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /usr/local/share/applications ']'
+ for xdg_data_dir in ${XDG_DATA_DIRS}
+ '[' -d /usr/share/applications ']'
+ canon_dirs=' /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications /usr/share/applications'
+ '[' -n /home/fathirbimashabri/.local/share ']'
+ '[' -d /home/fathirbimashabri/.local/share/applications ']'
+ canon_dirs=' /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications /usr/share/applications /home/fathirbimashabri/.local/share/applications'
+ unset IFS
++ find ' /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications /usr/share/applications /home/fathirbimashabri/.local/share/applications' -type f -print0 -o -type l -print0
++ xargs -0 '-I{}' grep -l -e 'Exec=.*geany.*' -e 'Name=.*geany.*' '{}'
++ xargs -0 '-I{}' grep -L -e 'Exec=.*/run/current-system/sw/bin/distrobox-enter.*' '{}'
++ xargs -0 '-I{}' printf %s@ '{}'
find: ‘ /nix/store/558c2y423fvi3xxj2gmhbqmx62b64ymz-ghostty-1.1.2/share/applications /nix/store/1wd8w6k4qbl7fy7ci3q1h8m2x9pswwbp-gnome-mimeapps/share/applications /usr/share/applications /home/fathirbimashabri/.local/share/applications’: No such file or directory
+ desktop_files=
+ '[' -z '' ']'
+ printf 'Error: cannot find any desktop files.\n'
Error: cannot find any desktop files.
+ printf 'Error: trying to export a non-installed application.\n'
Error: trying to export a non-installed application.
+ return 127

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? Docker
  • Which version or podman, docker or lilipod? Docker version 27.5.1, build v27.5.1
  • Which version of distrobox? distrobox: 1.8.0
  • Which host distribution? NixOS 25.05 (Warbler) x86_64
  • How did you install distrobox? Using nixpkgs

Additional context
Add any other context about the problem here.

@FatngatirBilek FatngatirBilek added the bug Something isn't working label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant