Skip to content

Powermenu commands don't run without absolute path #25

@ShadowThijs

Description

@ShadowThijs

For some reason when using the Powermenu I have to specify the absolute path of loginctl, systemctl and hyprctl because it won't work otherwise:

actions: [
        {
            icon: Icons.lock,
            tooltip: "Lock Session",
            command: "/usr/bin/loginctl lock-session" // was: command: "loginctl lock-session"
        },
        {
            icon: Icons.suspend,
            tooltip: "Suspend",
            command: "/usr/bin/systemctl suspend" // was: command: "systemctl suspend"
        },
        {
            icon: Icons.hibernate,
            tooltip: "Hibernate",
            command: "/usr/bin/systemctl hibernate" // was: command: "systemctl hibernate"
        },
        {
            icon: Icons.logout,
            tooltip: "Exit Hyprland",
            command: "/usr/bin/hyprctl dispatch exit" // was: command: "hyprctl dispatch exit"
        },
        {
            icon: Icons.reboot,
            tooltip: "Reboot",
            command: "/usr/bin/systemctl reboot" // was: command: "systemctl reboot"
        },
        {
            icon: Icons.shutdown,
            tooltip: "Power Off",
            command: "/usr/bin/systemctl poweroff" // was: command: "systemctl poweroff"
        }
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions