GithubHelp home page GithubHelp logo

Comments (13)

89luca89 avatar 89luca89 commented on May 12, 2024

Hey @pseudofakee thanks forma the big reporter, can you post the desktop file generated? to check if there are some errors in the file generation

Thanks!

from distrobox.

pseudofakee avatar pseudofakee commented on May 12, 2024

Yup

from distrobox.

pseudofakee avatar pseudofakee commented on May 12, 2024
[Desktop Entry]
Name=Atom
Comment=A hackable text editor for the 21st Century
GenericName=Text Editor
Exec=/usr/local/bin/distrobox-enter --name Arch -e  env ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false /usr/bin/atom %F
Icon=atom
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;TextEditor;Development;
MimeType=text/plain;
StartupWMClass=atom


from distrobox.

89luca89 avatar 89luca89 commented on May 12, 2024

Thanks

Executing directly from your host's terminal:

/usr/local/bin/distrobox-enter -v --name Arch -e env ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false /usr/bin/atom

Does it work? If not can you try pasting the output? Thanks!

from distrobox.

pseudofakee avatar pseudofakee commented on May 12, 2024

Doesn't work . :)

atom_error.txt

from distrobox.

89luca89 avatar 89luca89 commented on May 12, 2024

Mmmh can you try executing without the

env ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false

Could be because it's not handling well multiple commands passed to the container

from distrobox.

pseudofakee avatar pseudofakee commented on May 12, 2024
/usr/local/bin/distrobox-enter -v --name Arch -e /usr/bin/atom

Returns
atom_error_2.txt

dropping the -e gets me into the container (without the ability to find /usr/bin/atom so it fails there )

from distrobox.

89luca89 avatar 89luca89 commented on May 12, 2024
/usr/local/bin/distrobox-enter -v --name Arch -e /usr/bin/atom

Returns atom_error_2.txt

dropping the -e gets me into the container (without the ability to find /usr/bin/atom so it fails there )

And doesn't work still right? any other error? I mean after the + '[' 0 -ne 0 ']' on the terminal?

from distrobox.

pseudofakee avatar pseudofakee commented on May 12, 2024

atom_error_3.txt

from distrobox.

89luca89 avatar 89luca89 commented on May 12, 2024

@pseudofakee Had to install atom to dig into this 😃

Not really sure how distrobox should handle this, but the problem here is that atom is not really... well atom

/usr/bin/atom is a script that launcher electron9 to then launch node and so on, so it launches, forks and exits
this works if you're inside the container and launch atom because your environment is still up and running (you're inside it)

if you launch directly with distrobox-enter --name Arch -e /usr/bin/atom the main PID (the script) exits before electron can do his thing, so the container exits
That is why I didn't see any error from distrobox, podman nor atom itsef 😄

the solution here is to launch /usr/bin/atom -f so in foreground then it works both using the desktop file and directly launching the command with distrobox-enter
the env part works also at that point so it's not a problem on distrobox not supporting multiple commands

from distrobox.

pseudofakee avatar pseudofakee commented on May 12, 2024

Awesome, you got it ;)

It makes sense, I was also having that issue when trying to call the synth 'Aeronaut' which is also electron based.

Thanks for the work !

from distrobox.

89luca89 avatar 89luca89 commented on May 12, 2024

I'll close this issue then @pseudofakee if you have any idea on how to improve distrobox to handle these cases don't hesitate to open an issue for a feature request 😄

from distrobox.

89luca89 avatar 89luca89 commented on May 12, 2024

Created a feature request to add extra flags to exported apps and services to fix situation like this one
Thanks @pseudofakee for bringing up this type of problem 😄

from distrobox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.