89luca89 / 89luca89/distrobox

[BUG] Exported Godot Engine closes unexpectedly

Aberta
#1,474 2 comentários 0 reações 0 responsáveis Ver no GitHub
bug good first issue help wanted wait-on-user
Linguagem predominante
Go
Estrelas
13k
Forks
541
Merge médio
20h 47min
PRs com merge (30d)
4

Descrição

## Problem description

Exported Godot Engine app opens (for example, through GNOME's overview) to Project Manager but upon double clicking any project name, the Project Manager closes and no project is opened. All godot processes are gone as can be verified in the process manager (`ps`).

![image](https://github.com/user-attachments/assets/e230f321-8146-4641-a6ed-86905f5d4aa4)

However, everything works fine when godot is run from the distrobox terminal:
```
distrobox enter -n
godot
```
This issues was also noted 2 months ago on Reddit:
https://www.reddit.com/r/Fedora/comments/1cm6wy8/strange_behaviour_with_distrobox_exports/

## Possible solution
I haven't tested it thoroughly but setting `Terminal=true` in the exported `.desktop` files seems to do the trick.
```
[Desktop Entry]
Name=Godot Engine (on Arch)
GenericName=Libre game engine (on Arch)
GenericName[el]=Ελεύθερη μηχανή παιχνιδιού (on Arch)
GenericName[fr]=Moteur de jeu libre (on Arch)
GenericName[zh_CN]=自由的游戏引擎 (on Arch)
Comment=Multi-platform 2D and 3D game engine with a feature-rich editor
Comment[el]=2D και 3D μηχανή παιχνιδιού πολλαπλών πλατφορμών με επεξεργαστή πλούσιο σε χαρακτηριστικά
Comment[fr]=Moteur de jeu 2D et 3D multiplateforme avec un éditeur riche en fonctionnalités
Comment[zh_CN]=多平台 2D 和 3D 游戏引擎,带有功能丰富的编辑器
Exec=/usr/bin/distrobox-enter -n Arch -- godot %f
Icon=godot
Terminal=true
PrefersNonDefaultGPU=true
Type=Application
MimeType=application/x-godot-project;
Categories=Development;IDE;
StartupWMClass=Godot
```
Basically, it opens a terminal whenever Godot is run. Somehow this makes the Godot processes stay alive.
Upon double clicking any project name, the following notification is displayed in GNOME shell:
![image](https://github.com/user-attachments/assets/f1a09954-1bd1-44c3-b3f0-cc55f2d8161a)
But the project opens nonetheless so it doesn't bother me.

(I don't really know how to view the full notification yet. Maybe through `podman logs`? But there's a lot of junk there. Let me know if it's important and I'll help as much as I can)

## My specs
`podman` version 5.1.1
`distrobox`: 1.7.2.1
`godot`: 4.2.2.stable.arch_linux

Host OS: Archlinux
![image](https://github.com/user-attachments/assets/2a44767a-d375-4c83-aadb-bc27c56cd123)

Distrobox Arch container:
`quay.io/toolbx/arch-toolbox:latest`
I have renamed my container using `distrobox create` I think. Therefore `distrobox list` gives me the following:
![image](https://github.com/user-attachments/assets/654c7568-35a9-45ff-a0c6-d14bbbfddb48)
So I don't know what is the exact Arch image version. Unless `024-07-09` is the version, idk.

Distrobox was installed through `pacman`.
`godot` was installed in the Archlinux Distrobox container (yeah, I have both an Arch host OS and an Arch container) through `pacman`.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Examine a lógica de exportação do distrobox, provavelmente em scripts relacionados à criação de arquivos .desktop. A issue sugere que Terminal=true no arquivo .desktop impede o crash. Comece examinando como os aplicativos exportados são iniciados e por que os processos morrem sem um terminal. Teste alterações no template de exportação ou no launch wrapper.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
arch-linux, bash, godot, linux, shell
Domínio
cli, desktop, developer-experience
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.