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)
- 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
- [QUESTION] How to run an entire desktop environment from distrobox
- shell prompt no longer differentiates when inside container HOT 1
- /home/USER/.local/bin/distrobox-create: 1: eval: tmpdir: parameter not set HOT 2
- [Error] Distrobox container created itβs own password, canβt use sudo. HOT 3
- [Discussion] Chrooting into arm/arm64 environment from distrobox
- Keyboard doesn't work in Ubuntu box
- [Discussion] Ubuntu 24.04 container - ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave HOT 1
- [Error] Cannot enter a void linux container from a void linux host
- Importing display for running mutter.
- Distrobox enter hangs indefinitely upon restarting image HOT 3
- [Error] XAUTHORITY is not set because host-spawn is not working. Move env setup to distrobox-enter HOT 2
- [Error] Can't install things in Ubuntu 22 container because directories are owned by nobody:nogroup
- [Suggestion] Allow changing linux capabilities
- [Error :: installing systemd (255.6-1) breaks dependency 'systemd=255.5' required by systemd-sysvcompat HOT 1
- [Error] dbus-broker-units: /usr/lib/systemd/system/dbus.service exists in filesystem (owned by dbus) HOT 1
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.