Skip to content
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

What is the correct flow to start COSMIC? #95

Open
fulalas opened this issue Aug 11, 2024 · 8 comments
Open

What is the correct flow to start COSMIC? #95

fulalas opened this issue Aug 11, 2024 · 8 comments

Comments

@fulalas
Copy link

fulalas commented Aug 11, 2024

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
Copy link

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
Copy link
Member

mmstick commented Aug 29, 2024

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
Copy link
Author

fulalas commented Aug 29, 2024

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
Copy link

@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
Copy link
Author

fulalas commented Aug 29, 2024

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

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

@Quackdoc
Copy link

the greeter config I posted will show the login screen

@fulalas
Copy link
Author

fulalas commented Aug 29, 2024

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
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants