Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Can't start timeshift (Read 1981 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Can't start timeshift

using artix, openrc, wayland, timeshift (mint maintained). Trying timeshift-gtk prompts me with 'admin access required', running it with sudo outputs:
Code: [Select]
Invalid MIT-MAGIC-COOKIE-1 key

(timeshift-gtk:28457): Gtk-WARNING **: 01:27:39.600: cannot open display: :0

Running timeshift-launcher as normal user:
Code: [Select]
localuser:root being added to access control list
==== AUTHENTICATING FOR in.teejeetech.pkexec.timeshift-gtk ====
Timeshift
Authenticating as: myuser
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.
localuser:root being removed from access control list
access control enabled, only authorized clients can connect
SI:localuser:essence

Running as root:
Code: [Select]
Invalid MIT-MAGIC-COOKIE-1 key

(timeshift-gtk:28913): Gtk-WARNING **: 01:29:07.247: cannot open display: :0

What am i missing? Any logs  i can provide? Can't backup my system, will be grateful for any help.

Re: Can't start timeshift

Reply #1
The reason running the command with sudo won't work is because timeshift is being executed under a different user ( root in this case ) and does not have access to the Xorg server running under your normal user.

As for why timeshift-launcher gives this error under a normal user I do not know.

Re: Can't start timeshift

Reply #2
Quote
What am i missing? Any logs  i can provide? Can't backup my system, will be grateful for any help.

Yes. You can  ;)

What DE are you using?

Its seems you missing polkit. https://wiki.archlinux.org/title/Polkit

Re: Can't start timeshift

Reply #3
Im am using hyprland. And i have polkit installed, but i guess have it configured wrong maybe? if it might be polkit

Re: Can't start timeshift

Reply #4
Wich polkit?

Anyway, if you dont use KDE/Gnome, or other big DE's like cinnamon or xfce, its mostly needed to start polkit by your self.

The link to the arch wiki helps you with that.

Or you go to https://github.com/hyprwm/Hyprland and ask them how to accomplish this.

Re: Can't start timeshift

Reply #5
I had only just 'polkit' installed, no particulara agent. So i installed polkit-kde-agent and added it to my compositor startup script /usr/lib/polkit-kde-authentication-agent-1 &. Now timeshift-gtk still doesn't work, but timeshift-launcher does. Thank you a lot. Marked as solved.

Re: Can't start timeshift

Reply #6
I had only just 'polkit' installed, no particulara agent. So i installed polkit-kde-agent and added it to my compositor startup script /usr/lib/polkit-kde-authentication-agent-1 &. Now timeshift-gtk still doesn't work, but timeshift-launcher does. Thank you a lot. Marked as solved.

It depends what config files your choosen polkit agent delivers. Could be that KDE only delivers one for timeshift-launcher, wich maybe handles that. Dont know, im not using timeshift :-)