bit-team / backintime

Back In Time - An easy-to-use backup tool for GNU Linux using rsync in the back
https://backintime.readthedocs.io
GNU General Public License v2.0
2.04k stars 202 forks source link

GUI: Set a default user-callback script if none exists (containing how-to instructions) #1331

Open aryoda opened 1 year ago

aryoda commented 1 year ago

If you are a first time contributor...

Welcome to the project, if you pick up this Issue because of the "GOOD FIRST USE" label. You will be mentored through the process if you want. This issue is quit old and may lack some details important for new contributors. Just raise your hand and we will provide more details. Please do not hesitate to ask questions. Your solution don't need to be perfect.

The Problem

This is a feature request taken from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985257

Actual behaviour:

If no user-callback script exists and a user clicks on

settings > general > Edit user-callback

an empty user-callback editor windows is shown.

Impact

A normal user cannot understand what to do here and where to find documentation to learn more.

Expected behavior:

If no user-callback script file exists a default script (that does nothing!) should be shown.

The script should include the relevant documentation and links for an easy start.

BTW: There are already some user-callback scripts in the BiT repo that could be used: https://github.com/bit-team/user-callback

Possible extension (gold standard ;-)

A button could be added to the "user-callback" editor window which offers a choice of different default user-callback scripts for different purposes.

Make sure that the existing user-callback is not overwritten without explicitly asking the user and making a backup!

buhtz commented 7 months ago

Do you have an idea about how to integrate "documentation" into this workflow?

Maybe create an extra markdown file in the repo and offer a link in the edit-user-callback-dialog? Or is this too lazy? ;) Or we really create a section in the user manual (see #1659) we can then link to?

aryoda commented 7 months ago

Do you have an idea about how to integrate "documentation" into this workflow?

Perhaps add a "help" button

Also adding enough comments to our default user-callback scripts could help (and mention there man backintime).

buhtz commented 7 months ago

Sounds good to me.

emtiu commented 7 months ago

My instinct would be a much simpler solution: Display an empty dummy-callback script with commented-out example code, and a few URLs to further help :)

Or maybe paths to local files with documentation, if we want to keep it offline.

buhtz commented 1 week ago

Related to #1659 and #1838

buhtz commented 1 week ago

https://mail.python.org/archives/list/bit-dev@python.org/message/JDU4EYFYKFA6YZZD2WP2WKPE4QA5UIBA/