0 Members and 3 Guests are viewing this topic.
[...] It does that cause you're copying/pasting something from a web page.
Thank you firenice03 for that link.I edited the command in Luckybackup (superuser) and put in sudo -H luckybackupThen I checked the box 'Run in terminal'.Now when I click on the Luckybackup (superuser) icon, the terminal opens,I enter my sudo password and LuckyBackup starts.I created a task and backed up my Documents folder to the external drive, works fine.Of course, I have to mount the external drive first or Luckybackup won't see it.
Ok, I did as you said above and put the original command (/usr/bin/luckybackup-pkexec) back in andunchecked the 'Run in terminal' box and yes, it starts and runs ok now without having to use the terminal.Thank you very much.
Quote from: arky217 on August 10, 2020, 05:47:55 PMQuote from: Moltke on August 10, 2020, 05:16:04 PMI think I've found a solution or at least a "better" workaround; open a terminal and type Code: [Select]pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackup a window should pop up for you to type in your password and LBSU should launch/start and if it does, open a terminal and type Code: [Select]sudo nano /usr/bin/luckybackup-pkexec comment the lines in the file, copy/paste the pkexec command above, hit Ctrl + o to save changes and then Ctrl + x to close nano. Now, click on menu, search for luckybackup and click on LBSU, a window should pop up for you to type in your password, hit enter and LBSU should start without a problem, at least It did here. Moltke, the procedure I did in post #8 works fine for me, but I did start to do what you mentioned above.But when I copied pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackupand pasted it in the terminal, I got a Warning- Unsafe Paste with the options to quit or paste.Wasn't sure if I was about to mess something up, so I chose quit.Did you get any warning when you entered that in the terminal ?No, I didn't get any but I didn't use xfce4-terminal but konsole and I do know xfce4-terminal does that, so it's safe to paste the command, however, if it makes you feel a bit safer, copy/paste to a text editor first then copy from that one and paste it to the terminal, it shouldn't trigger any warnings now. It does that cause you're copying/pasting something from a web page.
Quote from: Moltke on August 10, 2020, 05:16:04 PMI think I've found a solution or at least a "better" workaround; open a terminal and type Code: [Select]pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackup a window should pop up for you to type in your password and LBSU should launch/start and if it does, open a terminal and type Code: [Select]sudo nano /usr/bin/luckybackup-pkexec comment the lines in the file, copy/paste the pkexec command above, hit Ctrl + o to save changes and then Ctrl + x to close nano. Now, click on menu, search for luckybackup and click on LBSU, a window should pop up for you to type in your password, hit enter and LBSU should start without a problem, at least It did here. Moltke, the procedure I did in post #8 works fine for me, but I did start to do what you mentioned above.But when I copied pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackupand pasted it in the terminal, I got a Warning- Unsafe Paste with the options to quit or paste.Wasn't sure if I was about to mess something up, so I chose quit.Did you get any warning when you entered that in the terminal ?
I think I've found a solution or at least a "better" workaround; open a terminal and type Code: [Select]pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackup a window should pop up for you to type in your password and LBSU should launch/start and if it does, open a terminal and type Code: [Select]sudo nano /usr/bin/luckybackup-pkexec comment the lines in the file, copy/paste the pkexec command above, hit Ctrl + o to save changes and then Ctrl + x to close nano. Now, click on menu, search for luckybackup and click on LBSU, a window should pop up for you to type in your password, hit enter and LBSU should start without a problem, at least It did here.
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY luckybackup
sudo nano /usr/bin/luckybackup-pkexec
There is a difference between being a root user and trying to copy a common file and copying a system locked file. You need to issue a special command to unlock the file, which will then conflict with systemd, for one.
Quote from: Moltke on August 10, 2020, 04:45:30 PM[...] the problem it's not working as expected when superuser mode; See all previous posts. I explained there what happens.As a matter of fact, if you read all the docs of rsync, you'll understand.LuckyBackup is only a GUI for rsync. Good luck!
[...] the problem it's not working as expected when superuser mode;
@arky217 I would say it maybe something with LuckyBackup and Ubuntu 20.04 (LL5.0 Base)... I did a quick google search and there does appear to be a bug - https://bugs.launchpad.net/ubuntu/+source/luckybackup/+bug/1887279You would want to follow up with those devs...
I tested it for the sake of convenience:Below, there is a screenshot:https://imgur.com/a/IRGsEEB
[...] Like your regular user for backing up your /home folder it woks fine but if you want to backup the whole system you need to run it as root/superuser as it's not working. It's a bug.
Well, the superuser LuckyBackup always worked just fine
sudo luckybackup
I use it as Root, only in exceptional situations.