How to create a system backup?

To back up the system when it is turned off, I use:

But I have a problem with Timeshift, I can’t run it through the shortcut.
It can only run be done in the terminal via the command: sudo timeshift-gtk

Does anyone know how I should edited the shortcut?

this change does not work (the program does not start) and without sudo it says that I do not have the necessary permissions.

No experience with KDE but this thread suggests pkexec

no wok for me :frowning:

timeshift-launcher is the command for the GUI. It should ask for polkit access, so no sudo needed.

obrazek

this command was there initially, but after entering the password, nothing happens

Have you tried timeshift-launcher from terminal? If there are errors it will print in the terminal.
It seems a bit the application is not correctly reported to polkit.
Please click on Podrobnosti to see which application requests access.

obrazek

Check what your timeshift-launcher file says:

 cat /bin/timeshift-launcher  

Are you running it as root user?

Also check existing polkit policy:

ls /usr/share/polkit-1/actions/ | grep timeshift 

cat /bin/timeshift-launcher

#!/bin/bash

app_command='timeshift-gtk'

if [ "$(id -u)" -eq 0 ]; then
        # user is admin
        ${app_command}
else
        # user is not admin
        if echo $- | grep "i" >/dev/null 2>&1; then
                # script is running in interactive mode
                su - -c "${app_command}"
        else
                # script is running in non-interactive mode
                if [ "$XDG_SESSION_TYPE" = "wayland" ] ; then
                        xhost +SI:localuser:root
                        pkexec ${app_command}
                        xhost -SI:localuser:root
                        xhost
                elif command -v pkexec >/dev/null 2>&1; then
                        pkexec ${app_command}
                elif command -v sudo >/dev/null 2>&1; then
                        x-terminal-emulator -e "sudo ${app_command}"
                elif command -v su >/dev/null 2>&1; then
                        x-terminal-emulator -e "su - -c '${app_command}'"
                else
                        x-terminal-emulator -e "echo 'Command must be run as root user: ${app_command}'"
                fi
        fi
fi

ls /usr/share/polkit-1/actions/ | grep timeshift

in.teejeetech.pkexec.timeshift.policy

My name user: voboda

As @raguse already pointed out, it should be timeshift-launcher. This is also how it is by default, so you had to change it to sudo timeshift-gtk yourself.

yes I changed it because this doesn’t work, do you understand me?

timeshift-launcher = GUI not wok

sudo timeshift-gtk = GUI not wok

timeshift-launcher = Terminal not wok

sudo timeshift-gtk = Terminal wok

Ah, this is ARM. Does timeshift even work on ARM? - I don’t know. :man_shrugging: Last time i played with it on archlinuxarm it didn’t work IIRC.

EDIT: I just use borg with borgmatic now.

sudo timeshift-gtk = Terminal wok

I want to use a shortcut, but it doesn’t work and I don’t know why.

This looks all ok.

timeshift-gtk works because you are bypassing polkit with it.

Yes, it does. You posted a screenshot of it above.

Is there any output in the terminal after running that command?

Never run GUI applications with sudo. See Running GUI applications as root - ArchWiki

Please post the output of:

pacman -Qs polkit

Yes.

1 Like
[voboda@manjaro ~]$ timeshift-launcher

(timeshift-gtk:13524): Gtk-WARNING **: 20:39:06.425: cannot open display: 
[voboda@manjaro ~]$
 [voboda@manjaro ~]$ pacman -Qs polkit
local/polkit 121-1
    Application development toolkit for controlling system-wide privileges
local/polkit-kde-agent 5.25.4-1 (plasma)
    Daemon providing a polkit authentication UI for KDE
local/polkit-qt5 0.114.0-1
    A library that allows developers to access PolicyKit API with a nice Qt-style API
[voboda@manjaro ~]$

This github issue mentions that the package might be missing a dependency for wayland support.

Try installing xorg-xhost with:
sudo pacman -S xorg-xhost

EDIT: Sorry, it’s already a dependency.

The x86 timeshift package depends on xorg-xhost, why doesn’t the ARM package?