What is the correct flow to start COSMIC?
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.
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.
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.
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 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, thanks! But, as I said, it's already working.
I just want to avoid auto login. That's all :)
the greeter config I posted will show the login screen
Hmmmm... I tried it, but I doesn't work for me:
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?
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:
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:
- Do I really need to create the user
cosmic-greeter? I tried to change touser = guest(which is the default user of my distro), but it doesn't load the desktop properly, just the compositor with a gray screen. - I couldn't find a way to autologin. This should be configurable.