pop-os / cosmic-epoch

Next generation Cosmic desktop environment
1.72k stars 55 forks source link

Panic when starting after `just install`, works with `just sysext` #211

Closed ywnkmn closed 3 months ago

ywnkmn commented 4 months ago

epoch works whenjust sysext, yet panics with sudo just install while starting with GDM, SDDM or from a TTY

`2024-02-23T05:53:21.753269Z INFO cosmic-notifications: cosmic_session::notifications: 2024-02-23T05:53:21.752116Z INFO i18n_embed::requester: Current Locale: [LanguageIdentifier { language: Language(Some("en")), script: None, region: Some(Region("US")), variants: None }]
2024-02-23T05:53:21.753375Z INFO cosmic_session::comp: sending 1 fds 2024-02-23T05:53:21.753409Z INFO launch_pad: starting process ' WAYLAND_DISPLAY=wayland-1 DISPLAY=:2 XDG_SESSION_TYPE=wayland WAYLAND_SOCKET=50 PORTAL_WAYLAND_SOCKET=44 /usr/libexec/xdg-desktop-portal-cosmic '

2024-02-23T05:53:21.761520Z ERROR panic: thread 'main' panicked at 'failed to start /usr/libexec/xdg-desktop-portal-cosmic': src/main.rs:405

0: ::default 1: log_panics::Config::install_panic_hook::{{closure}}`

However, term, settings and files just work under the GNOME session.

What am I missing here?

ryzendew commented 4 months ago

same issue under sddm and gdm on arch and fedora. where it was fine yesterday!

Drakulix commented 4 months ago

2024-02-23T05:53:21.761520Z ERROR panic: thread 'main' panicked at 'failed to start /usr/libexec/xdg-desktop-portal-cosmic': src/main.rs:405

cosmic-session can't start xdg-desktop-portal-cosmic for some reason. You could check what permissions /usr/libexec/xdg-desktop-portal-cosmic has, if the file was copied correctly (shasum) etc.

ywnkmn commented 4 months ago

2024-02-23T05:53:21.761520Z ERROR panic: thread 'main' panicked at 'failed to start /usr/libexec/xdg-desktop-portal-cosmic': src/main.rs:405

cosmic-session can't start xdg-desktop-portal-cosmic for some reason. You could check what permissions /usr/libexec/xdg-desktop-portal-cosmic has, if the file was copied correctly (shasum) etc.

We are both using it on Arch, did sudo just install

ryzendew commented 4 months ago

2024-02-23T05:53:21.761520Z ERROR panic: thread 'main' panicked at 'failed to start /usr/libexec/xdg-desktop-portal-cosmic': src/main.rs:405

cosmic-session can't start xdg-desktop-portal-cosmic for some reason. You could check what permissions /usr/libexec/xdg-desktop-portal-cosmic has, if the file was copied correctly (shasum) etc.

We are both using it on Arch, did sudo just install

Arch and Fedora and Ubuntu is my testing ground FYI

ywnkmn commented 4 months ago

BTW, simply did: sudo ln -s /usr/local/libexec/xdg-desktop-portal-cosmic /usr/libexec/xdg-desktop-portal-cosmic to resolve it for now

jokeyrhyme commented 4 months ago

There doesn't seem to be a mention of using sudo just install in the README yet

So maybe this isn't yet intended to work, but nice for someone to test it (once it does work, perhaps the README can be updated)

joshuamegnauth54 commented 3 months ago

Related issue: #87

It may be helpful to take a look at the AUR package, particularly the PKGBUILD which handles the issue raised here.

Drakulix commented 3 months ago

Install defaults to /usr/local as the prefix, which causes the panic by default. Setting that to /usr fixes this for most cases.

This needs better detection for the right directory for the portal, but isn't any worse than the previous justfile was. So I am closing this in favour of the portal-issue.