pop-os / cosmic-greeter

libcosmic greeter for greetd, which can be run inside cosmic-comp
GNU General Public License v3.0
60 stars 33 forks source link

What is the correct flow to start COSMIC? #95

Open fulalas opened 2 months ago

fulalas commented 2 months ago

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.

Quackdoc commented 2 months ago

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.

mmstick commented 2 months ago

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.

fulalas commented 2 months ago

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).

Quackdoc commented 2 months ago

@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

fulalas commented 2 months ago

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

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

Quackdoc commented 2 months ago

the greeter config I posted will show the login screen

fulalas commented 2 months ago

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?

nater1983 commented 4 weeks ago

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: