Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage/Experiences when using Cosmic on OpenRC #29

Closed
simonvanderveldt opened this issue Nov 10, 2024 · 2 comments
Closed

Usage/Experiences when using Cosmic on OpenRC #29

simonvanderveldt opened this issue Nov 10, 2024 · 2 comments

Comments

@simonvanderveldt
Copy link
Contributor

I just wanted to create a place to share experiences/suggestions/fixes/etc for running Cosmic on a system that's running OpenRC. Thanks to the fixes in #11 emerging/compilation is working fine and Cosmic starts/runs as well 🎉

But things like pipewire, notifications, power settings don't work unless a service is running for them. I was wondering how people are handling this? Autostart isn't supported yet on Cosmic (pop-os/cosmic-session#67) and OpenRC doesn't have support for user-services yet (OpenRC/openrc#723).
I assume Cosmic on systemd uses user-services for all these components?

P.S. A discussion instead of a issue would've probably been better for this, but since discussions have been disabled hope this is OK for you :)

@fsvm88
Copy link
Owner

fsvm88 commented Nov 10, 2024

Have enabled discussions =) It's a feature I never used, and it was disabled by default with project creation =)

Feel free to move there.

Regarding user services: this is mostly automatically handled by systemd and/or Cosmic, I'm not doing anything special with it. IIRC cosmic-settings-daemon and cosmic-notifications are spawned automatically by Cosmic after first login (not sure which component, I'd guess cosmic-session).

I recall with the transition to pipewire I had to manually enable some services for the user, but that was a year ago now, I'm not sure what's the default state on a newly-created user. See Gentoo Wiki page.

Although I ran with it for a good decade, I am not using OpenRC anymore because pretty much every DE is heavily relying on systemd nowadays, and I really like not having to think about service restarts on servers.

@simonvanderveldt
Copy link
Contributor Author

Have enabled discussions =) It's a feature I never used, and it was disabled by default with project creation =)

Feel free to move there.

Thanks! 👍 It's just semantics I guess in the end, issue vs discussion. I don't think I can move it, AFAIK only repo owners/with relevant repo permissions can do so.

Regarding user services: this is mostly automatically handled by systemd and/or Cosmic, I'm not doing anything special with it. IIRC cosmic-settings-daemon and cosmic-notifications are spawned automatically by Cosmic after first login (not sure which component, I'd guess cosmic-session).

Thanks for the pointer, I thought that this was all being handled by xdg-desktop-autostart.target but that doesn't seem to be the case. Booted the Cosmic alpha 3 ISO and this is the process tree
screenshot-2024-11-10-14-37-03
So greetd starts cosmic-session, which starts pretty much all cosmic components including cosmic-notifcations.
Interestingly enough cosmic-notifcations is missing for me on my gentoo system

root      3227     1  0 12:07 ?        00:00:00 /usr/sbin/gdm
root      4188  3227  0 12:08 ?        00:00:00  \_ gdm-session-worker [pam/gdm-password]
simon     4212  4188  0 12:08 tty8     00:00:00      \_ /usr/libexec/gdm-wayland-session --register-session /us
simon     4215  4212  0 12:08 tty8     00:00:00          \_ dbus-daemon --print-address 3 --session
simon     4217  4212  0 12:08 tty8     00:00:00          \_ /usr/bin/cosmic-session
simon     4225  4217 52 12:08 tty8     01:49:45              \_ cosmic-comp
simon     4279  4225  0 12:08 tty8     00:01:36              |   \_ Xwayland :0 -verbose -rootless -terminate -
simon     4305  4217  0 12:08 tty8     00:00:00              \_ cosmic-settings-daemon
simon     4314  4305  0 12:08 tty8     00:00:00              |   \_ /usr/libexec/geoclue-2.0/demos/agent
simon     4312  4217  0 12:08 tty8     00:00:51              \_ cosmic-panel
simon     4652  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-applet-status-area
simon     4654  4312  0 12:08 tty8     00:00:03              |   \_ cosmic-applet-time
simon     4655  4312  0 12:08 tty8     00:00:38              |   \_ cosmic-applet-audio
simon     4659  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-applet-power
simon     4664  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-applet-battery
simon     4674  4312  0 12:08 tty8     00:00:03              |   \_ cosmic-applet-workspaces
simon     4676  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-applet-tiling
simon     4678  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-panel-button com.system76.CosmicWork
simon     4680  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-applet-bluetooth
simon     4682  4312  0 12:08 tty8     00:00:00              |   \_ cosmic-applet-network
simon     4683  4312  0 12:08 tty8     00:00:04              |   \_ cosmic-app-list
simon     4313  4217  0 12:08 tty8     00:00:00              \_ cosmic-app-library
simon     4316  4217  0 12:08 tty8     00:00:22              \_ cosmic-launcher
simon    25512  4316  0 15:36 tty8     00:00:00              |   \_ pop-launcher
simon    25521 25512  0 15:36 tty8     00:00:00              |       \_ /usr/lib/pop-launcher/plugins/cosmic_to
simon    25522 25512  0 15:36 tty8     00:00:00              |       \_ /usr/lib/pop-launcher/plugins/pop_shell
simon     4325  4217  0 12:08 tty8     00:00:09              \_ cosmic-workspaces
simon     4332  4217  0 12:08 tty8     00:00:18              \_ cosmic-osd
simon     4340  4217  0 12:08 tty8     00:00:01              \_ cosmic-bg
simon     4348  4217  0 12:08 tty8     00:00:07              \_ cosmic-greeter
simon     4359  4217  0 12:08 tty8     00:00:02              \_ cosmic-files-applet
simon     4368  4217  0 12:08 tty8     00:00:00              \_ cosmic-idle
simon     4377  4217  0 12:08 tty8     00:00:15              \_ /usr/libexec/xdg-desktop-portal-cosmic

(it's still using GDM since I'm coming from GNOME, but I doubt that's the reason it isn't working).

I'll see if I can figure out why cosmic-notifications isn't being started and create a PR if there's anything to fix in any of the ebuilds.

Repository owner locked and limited conversation to collaborators Nov 10, 2024
@fsvm88 fsvm88 converted this issue into discussion #30 Nov 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants