pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
228 stars 45 forks source link

Not able to start flatpak VSCodium from launcher #78

Closed 610th closed 2 years ago

610th commented 2 years ago

When I try to launch flatpak VSCodium using SUPER + /, the app launches but the app window is completely black. If I start VSCodium from Applications Menu, everything works just fine. I'm using the Nvidia 20.04 version of Pop!_OS.

610th commented 2 years ago

Maybe this is more of a support case than an actual issue. Feel free to remove if so. I experienced the same problem with the snap version of VSCodium. I did not have this issue when I ran pop in a virtual machine on top of Windows. Now I'm running directly on an Nvidia machine. So maybe it is related to Nvidia graphics.

Haven't experimented with many other applications. I'm quite new to Pop.

leviport commented 2 years ago

How'd you install VSCodium? The flatpak installed from Pop Shop seems to be working fine for me.

610th commented 2 years ago

Both via Pop Shop and command line. Can't remember what I tried first. Unfortunately, it seems like my Pop Shop has broken. I only get "Abort due to failure" when I try to install something from flathub. My flatpak is now broken it seems.

I can see this in the syslog

Jan  6 21:24:42 pop io.elementary.a[5417]: FlatpakBackend.vala:917: Flatpak installation failed: While pulling app/com.vscodium.codium/x86_64/stable from remote flathub: open(O_TMPFILE): Permission denied (detail: 0)
Jan  6 21:24:42 pop io.elementary.a[5417]: Package.vala:573: Operation failed for package VSCodium - Aborted due to failure
leviport commented 2 years ago

Might be worth trying a flatpak repair --user and seeing if it works after that.

610th commented 2 years ago

Did not help, unfortunately. Strace + deleting locking files and/or upgrading flatpack might be a solution.

610th commented 2 years ago

I managed to fix my flatpak installation by doing sudo chmod 1777 /var/tmp. Found the fix here: https://github.com/flatpak/flatpak/issues/2808 . My guess is that a systemd generator that I was fiddling with broke the permissions.

I re-installed VSCodium via Pop Shop and now I experience the same behavior. When I start via launcher I get a black window and when I start via the applications menu everything works.