cosmic-greeter icon indicating copy to clipboard operation
cosmic-greeter copied to clipboard

What is the correct flow to start COSMIC?

Open fulalas opened this issue 1 year ago • 9 comments

In your alpha ISO I see /etc/greetd/cosmic-greeter.toml like this:

[terminal]
vt = "1"

[general]
service = "login"

[default_session]
command = "cosmic-comp systemd-cat -t cosmic-greeter cosmic-greeter"
user = "cosmic-greeter"

For distros with no systemd, what is the recommended command to start COSMIC? Currently I'm using start-cosmic but lock screen is not working, and logout just restarts COSMIC.

I'm testing current master on PorteuX (Slackware based), which has no systemd.

fulalas avatar Aug 11 '24 22:08 fulalas

start-cosmic should work even without running the greeter. However as for this, you need to run `command = "cosmic-comp cosmic-greeter" and you either need a sysusers implementation, or to create a cosmic-greeter user yourself.

I did test on artix and simply running start-cosmic and locking did work fine.

Quackdoc avatar Aug 29 '24 14:08 Quackdoc

systemd is only relied upon by cosmic-greeter to start itself and greetd. You can do as above and run start-cosmic from a TTY.

mmstick avatar Aug 29 '24 14:08 mmstick

Thanks, guys.

I managed to make it work using this /etc/greetd/config.toml:

[terminal]
vt = 7

[general]
service = "login"

[default_session]
command = "start-cosmic"
user = "guest"

I just wonder if there's a way to start COSMIC without loging in automatically (i.e. showing the log in screen instead of the desktop).

fulalas avatar Aug 29 '24 18:08 fulalas

@fulalas as I said you need to use cosmic-comp cosmic-greeter, this is what I use on artix.

[terminal]
vt = "1"

[default_session]
command = "cosmic-comp cosmic-greeter"
user = "cosmic-greeter"

if you don't have a sysuser impl, create cosmic-greeter user yourself

Quackdoc avatar Aug 29 '24 19:08 Quackdoc

@Quackdoc, thanks! But, as I said, it's already working.

I just want to avoid auto login. That's all :)

fulalas avatar Aug 29 '24 20:08 fulalas

the greeter config I posted will show the login screen

Quackdoc avatar Aug 29 '24 20:08 Quackdoc

Hmmmm... I tried it, but I doesn't work for me:

greetd

I need:

[general]
service = "login"

But if I adapt using your command I only have the compositor loaded, and nothing else (i.e. grey full screen).

I'm not sure how cosmic-greeter handles greetd tty autologin but still presents the UI login screen. Maybe a parameter in the cosmic-session call?

fulalas avatar Aug 29 '24 20:08 fulalas

command="cosmic-comp logger -t cosmic-greeter -- cosmic-greeter"

I used this but got an error:check_children: greeter exited without creating a session

Since Slackware doesn't use systemd, you won't have systemd-cat available. Instead, you can use logger, which is the traditional syslog command in Linux for sending messages to the system logger. Here's how you could adapt the command for Slackware:

nater1983 avatar Oct 07 '24 03:10 nater1983

Sorry for bringing this again, but I have some questions.

I have this at the moment in my config.toml:

[terminal]
vt = "7"

[general]
service = "cosmic-greeter"

[default_session]
command = "cosmic-greeter-start"
user = "cosmic-greeter"

With this the user can see the greeter when they logout, which is great, but:

  1. Do I really need to create the user cosmic-greeter? I tried to change to user = guest (which is the default user of my distro), but it doesn't load the desktop properly, just the compositor with a gray screen.
  2. I couldn't find a way to autologin. This should be configurable.

fulalas avatar Sep 13 '25 23:09 fulalas