You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
make a container using distrobox create --image quay.io/toolbx/arch-toolbox:latest --name archlinux
enter the container distrobox enter archlinux
install app with sudo pacman -S geany
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.
The text was updated successfully, but these errors were encountered:
Please, before opening a bug:
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
make a container using
distrobox create --image quay.io/toolbx/arch-toolbox:latest --name archlinux
enter the container
distrobox enter archlinux
install app with
sudo pacman -S geany
try to export geany using
distrobox-export --app geany
it says
Expected behavior
it will exported the app into the host
Logs
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: