Comments (13)
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.
Yup
from distrobox.
[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.
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.
Doesn't work . :)
from distrobox.
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.
/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.
/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.
from distrobox.
@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.
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.
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.
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)
- Distrobox 1.7.1 fails to find and enter containers when using lilipod 0.0.2 HOT 1
- [Error] Can't delete distrobox installed ubuntu, but can enter it HOT 1
- [Error] distrobox-rm fails even if container is stopped HOT 3
- [Error] `distrobox enter` fails to enter after creating container Error: parsing HOT 7
- [Suggestion] `distrobox system-upgrade` HOT 2
- [Suggestion] Add the subcommands distrobox snapshot & distrobox restore HOT 1
- [Suggestion] Move subsubtopic "Upgrading" in README.md a level up HOT 1
- [Error] - Unable to Start Container Process: Error Mounting "proc" to Rootfs
- Distrobox : exporting container in distrobox with the custom home directory
- [Error] Unable to enter gentoo container with fish as login shell
- Debian 12 box, Wine, DualSense gamepad "Failed to get device that has changed" HOT 1
- Phantom container named NAME when performing operations with --all HOT 3
- [Error] No such file or directory when path contains "at" (@) character
- Arch Distrobox bricking itself on NixOS and won't compile Cargo packages [Error] HOT 2
- Installing basic packages... Error: An error occurred; ubuntu 23.10 (both host and distrobox image) HOT 1
- GUIs crash when conected to the Internet HOT 1
- Containers distros supports Slackware 15
- [Suggestion] Blackarch toolbox image
- [Error] Unable to start rootless container created by distrobox with podman and runc v1.2.0~rc1
- [Error] distrobox enter fails if Username has "\" in name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distrobox.