teejee2008 / aptik

Command-line tool for migrating system settings and data for distributions based on Debian, Arch and Fedora. Can backup and restore software repositories, packages, icons, themes, fonts, users, groups, home data, dconf settings, fstab/crypttab entries, and cron tasks.
GNU Lesser General Public License v3.0
141 stars 26 forks source link

Somewhat confusing authentication system #23

Closed ghost closed 5 years ago

ghost commented 6 years ago

Upon running aptik, the main window appears and then, after - immediately after - that, an authentication window pops-up, asking for authentication for . . /bin/bash.

It would be better if an authentication window appeared before the main window, and for that authentication window to say, somewhere, that it is asking for permissions for aptik.

teejee2008 commented 6 years ago

The GUI runs as a normal user, so it doesn't display authentication prompt before startup. After starting, it needs root access to run the aptik command in terminal. The "aptik" command runs as root and does the actual work of backup and restore.

Instead of prompting the user every time on clicking Backup/Restore button, it prompts once on startup.

The authentication window prompts for /bin/bash because that's what the authentication is for. The "Terminal" page in the sidebar is the rooted bash terminal that runs the aptik command.

Note: The GUI cannot run as root because it won't run on Wayland. Wayland doesn't allow GUI applications to run as root.

ghost commented 6 years ago

What you have provided is a technical explanation for why the user must she something s/he will find odd . .

teejee2008 commented 6 years ago

I'm explaining why this is implemented in this manner. I know that it might be confusing but I don't have a better way of implementing this. If you can think of a better way then please share your ideas.