steam-rom-manager icon indicating copy to clipboard operation
steam-rom-manager copied to clipboard

[BUG] CLI is broken on Flatpak and AppImage

Open XargonWan opened this issue 1 year ago • 2 comments

Greetings, I am trying to run CLI commands from Flatpak but I got this output:

steam-rom-manager add
[4496 zypak-helper] Wait found events, but sd-event found none
[4496:0905/222301.155138:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
App starting...
[4496:0905/222301.321480:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
[4496:0905/222301.321524:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
22:23:01.914 › APPIMAGE env is not defined, current application is not an AppImage

Then instead of adding the games to Steam it's opening the GUI, trough the GUI everything is working, but how can I make it work via CLI?

I have tried even with zypak-wrapper but itś not working too.

zypak-wrapper.sh steam-rom-manager add
[4631 preload-host-spawn-strategy] Warning: waitpid override ignores groups
[4641 preload-host-spawn-strategy] Warning: waitpid override ignores groups
[4641 preload-host-spawn-strategy] Warning: waitpid override ignores groups
[4638 preload-host-spawn-strategy] Warning: waitpid override ignores groups
[4638 preload-host-spawn-strategy] Warning: waitpid override ignores groups
[4638 zypak-helper] Using spawn strategy test 1 as set by environment
[4638:0905/222632.990245:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /app/srm/chrome-sandbox is owned by root and has mode 4755.
/app/bin/steam-rom-manager: riga 2:  4638 Rilevato trace/breakpoint (core dump creato) /app/bin/zypak-wrapper.sh /app/srm/steam-rom-manager
[4631 preload-host-spawn-strategy] Warning: waitpid override ignores groups

Happens on AppImage as well:

chmod +x Steam-ROM-Manager-2.5.22.AppImage 
./Steam-ROM-Manager-2.5.22.AppImage list
[3381343:0906/143307.444175:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_Steam-OHy6LS/chrome-sandbox is owned by root and has mode 4755.

Thanks in advance and congratulations for this great software you're offering 🙂

XargonWan avatar Sep 06 '24 11:09 XargonWan

I don't think that this will fix it as when I tested I entered directly inside the Flatpak with --command=sh so the parameters were passed correctly by me directly. Moreover I think that Flatpak is already passing the parameters without the need to expose $@ as in RetroDECK we don't have it and the CLI is working even from outside the Flatpak.

XargonWan avatar Sep 07 '24 09:09 XargonWan

I tested the following:

CLI run from host: not working

flatpak run com.steamgriddb.steam-rom-manager
[3:0907/190202.980111:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
App starting...
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[3:0907/190203.295204:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[3:0907/190203.295224:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[0907/190203.298444:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
/app/bin/steam-rom-manager: riga 2:     3 Errore di segmentazione (core dump creato) /app/bin/zypak-wrapper.sh /app/srm/steam-rom-manager

CLI run from host with arguments: not working

flatpak run com.steamgriddb.steam-rom-manager list
[3:0907/190405.632927:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
App starting...
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[3:0907/190405.994046:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[3:0907/190405.994070:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[0907/190405.997426:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

steam-rom-manager from inside Flatpak: not working

steam-rom-manager
[41:0907/190529.937003:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
App starting...
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[41:0907/190530.221642:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[41:0907/190530.221663:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[0907/190530.225116:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

zypak-wrapper /app/srm/steam-rom-manager list from inside Flatpak: not working

zypak-wrapper /app/srm/steam-rom-manager list
[76:0907/190632.086794:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
Fetching parsers...

Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[76:0907/190632.388412:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[76:0907/190632.388447:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[0907/190632.392989:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

zypak-wrapper /app/srm/steam-rom-manager add from inside Flatpak: not working

zypak-wrapper /app/srm/steam-rom-manager add
[111:0907/190643.697659:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: File o directory non esistente
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: deb
[111:0907/190643.996683:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[111:0907/190643.996713:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[0907/190644.001033:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

XargonWan avatar Sep 07 '24 10:09 XargonWan