Hey all, I have been playing with Solus for about a week now and I am happy to say it will be my distribution of choice for a long time. Very nice work! I am running the Budgie version and am wondering how to shutdown the computer without the prompt that says "Are you sure you want to end this session?" I have poked around the web and my computer and I can't figure it out. Also a note to the Mods. If this is the wrong place for this post by all means please move it.

Thanks,
Trevor

I think, the prompt is by design. You can only surpress the prompt by modifying Budgie. Or maybe make desktop file for running poweroff

The prompt is useful. It prevents accidently shutting down your PC when you didn't intend to; been there, done that. 😉

For most applications I understand the benefit, but in my case I am using it as a car PC and it will be automated. The car PC power supply I will be using has the fallibility to interface to the power switch header and shutdown the PC, but it cant send a second pulse to get past the "Are you sure you want to end this session?" prompt. Does anyone know where the file that I need to edit is to suppress this function?

    trevor Solus really isn't designed for a car PC. Are there not distributions dedicated to this?

    So here is my whole application. I am using software call Tuner Studio. It controls an ECU called Mega squirt, The car PC is auto loading Tuner Studio and it will be my instrument cluster Data logger and a backup computer for troubleshooting the car in case I don't have my tuning laptop with me. It's not going to be a media player. So on my search for distributions I was looking for fast boot times. Solus definitely fit the bill! The computer will start booting as soon as I open the drivers door and it will stay booted if the ignition switch is on. If not it will shutdown properly and await the next power on event.

    So when the ignition is turned off it's shutting down or is it popping up with the Budgie shutdown dialog?

    Its popping up the budgie screen. So is this just in the budgie version of Solus then? If so I could use mate or gnome.

    dbarron For my understanding the PSU simulates pressing the power button, so the only way would be to set the power button to do nothing, and then create a shortcut for power button that executes this command. I wonder if it's possible.

    dbarron

    Can it just be configured to run a command aka 'init 0' or 'shutdown -f -h now'?

    No. User Indicator functions for logout, hibernate, shutdown, etc. perform different operations and will almost always prompt a confirmation dialog:

    • Hibernate: This calls our Lock Screen function then calls logind_interface.hibernate, which is a dbus call to /org/freedesktop/login1 and is provided by logind.
    • Lock Screen: This calls saver.lock, which is a dbus call to /org/gnome/ScreenSaver
    • Logout: This calls session.Logout, which is a dbus call to /org/gnome/SessionManager
    • Reboot: This performs an async session.Reboot call. See dbus call info for Logout.
    • Shutdown: This performs an async session.Shutdown call. See dbus call info for Logout.
    • Suspend: This calls our Lock Screen function then calls logind_interface.shutdown, which is a dbus call to /org/freedesktop/login1 and is provided by logind.

    So no, it can't be configured to do that, even if I wanted it to. Which I don't. Your best option is to write your own daemon that handles all of this and doesn't even rely on Budgie.

    Thanks for the help all. Back to the drawing board.

    I use a desktop file that runs the command:
    shutdown -r now
    The command has other options that might fit your needs.
    Mike