LuLu icon indicating copy to clipboard operation
LuLu copied to clipboard

Rules get reset during each LuLu upgrade?

Open xanoni opened this issue 3 years ago • 9 comments

Is this normal? I've been testing LuLu for the last 3 releases and every time it is updated all my carefully tweaked RegEx rules are wiped.

This creates a ton of unnecessary work and there's no rule "export" function to allow for backups before the upgrade.

How to work around or fix this?

xanoni avatar Oct 22 '21 19:10 xanoni

Same here.... very annoying :( I installed and upgrade Lulu via homebrew.

karl007 avatar Oct 25 '21 13:10 karl007

Yes very annoying. I had to create a little script to overcome this issue. However, really is very very simple to add the back up rules to LuLu. I dont understand why is not implemented such a useful action.

Thanks for the great app and support anyway.

gcpmusic avatar Oct 25 '21 14:10 gcpmusic

I had to create a little script to overcome this issue.

How does it work? Make a copy of some file and then restore it after the upgrade? Which file(s)? Thank you.

xanoni avatar Oct 26 '21 23:10 xanoni

Same here… would be very helpful to know or have that script too. I'll try to get deep into it.

applebait avatar Nov 02 '21 15:11 applebait

You have to backup the contents of the folder "/Library/Objective-See/LuLu/". This is where the preferences and the rules are stored.

simphide avatar Nov 04 '21 21:11 simphide

Ahh nice..... I tried to find the files in lsof but they were never open when I checked. Now I can finally upgrade ;)

xanoni avatar Nov 05 '21 02:11 xanoni

Worked perfectly! So easy yet saved me so much pain.

  1. Quit LuLu
  2. sudo cp -a /Library/Objective-See/LuLu/ /tmp/
  3. Upgrade LuLu and close it if it opens
  4. sudo mv /Library/Objective-See/LuLu/ /Library/Objective-See/LuLu-bak
  5. sudo cp -a /tmp/LuLu /Library/Objective-See/
  6. Start LuLu

Curious if there's a good reason why it's overwritten by default. Sure, there could be a format change, but how often does that happen?

xanoni avatar Nov 05 '21 02:11 xanoni

@xanoni I'm utterly aghast learning about this script right after I lost all my Lulu filters, I even spent two days refining it! 😭

kwvg avatar Nov 23 '21 13:11 kwvg

@xanoni I'm utterly aghast learning about this script right after I lost all my Lulu filters, I even spent two days refining it! 😭

the good thing is that now that you know how to back up and keep your complex rules, you will make them even more powerful going forward :D

xanoni avatar Nov 24 '21 03:11 xanoni