89luca89 / 89luca89/distrobox

[BUG] Exported Godot Engine closes unexpectedly

未關閉
#1,474 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug good first issue help wanted wait-on-user
主要語言
Go
星號
13k
分支
541
平均合併
20 小時 47 分鐘
30 天內合併 PR
4

描述

## 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`.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。