Git Product home page Git Product logo

Comments (3)

antoine-gallix avatar antoine-gallix commented on June 7, 2024 1

I think I haven't been precise enough in my original post. In a more systematic form, what I see as an issue is the following.

state 0: I have my original xkb data files

state 1: after installing the bag of trick with the script, I can see a backup, and new files in the xkb-data directory. new options are available in the menu.

I was expecting that running the script with the restore option would put me back in state 0. Apparently it does not, because I can still see the newly installed files after the restore, in the xkb data dir.

I was also expecting that reinstalling the xkb system package would also perform the same task of reseting the xkb data dir, but eventhough the installation is successful, the files installed by the bag of trick script are still there.

I'm not well versed enough in bash incantations to fully understand the script code but it definitely seems more complicated than replacing the xkb dir by it's last backup dir. I seems to do something file by file.

I solve the problem by deleting the xkb data dir and copying the backup in its place. But the operation is a bit frightening and I would have expected the install script to deinstall itself cleanly. In amy case, there is a problem or with my expectation of the effect of restore, or with the restore script.

from bigbagkbdtrixxkb.

DreymaR avatar DreymaR commented on June 7, 2024

The restore # option of the install-dreymar-xmod.sh script can get back a previous set of files from a backup that was generated earlier (unless you installed with the -n option to force no backup). It does not remove the backups.

What do you mean that the files are still there? Are you sure that you gave the -r option a numerical argument like -r 1?

Reinstalling xkb will not delete any files not used by xkb. My backup isn't generated by xkb so it won't be removed. If you want to lose the backup, delete it manually (probably needs sudo privileges).

If you mean that the actual xkb-data files changed by the BigBag script aren't restored, then I'm not sure why. If reinstalling xkb doesn't overwrite those you probably have a file privilege problem, trying to do something as non-root after doing something else as root. I don't think you should need to run my script as root, as it should sort that bit out itself.

from bigbagkbdtrixxkb.

DreymaR avatar DreymaR commented on June 7, 2024

It seems we have different goals then.

What I do is overwrite some files in the xkb dir. I keep a backup of the files I overwrite, and with the restore option I can reinstate the original files.

Neither I nor the xkb install is concerned with whatever else may be in that dir, as people may have their own files (like my symbols/extend file). I would not want to overwrite anything except the files I have changed, when restoring.

So basically, if you want to delete the backup dir then do so manually. The xkb install will only write what it needs, and so will my install. None of us want to replace the whole directory because that might ruin someone else's files.

Meanwhile, I don't see how the backup dir(s) my script made could possibly be a problem. It's a very small directory, it does no harm that I can see.

What you're asking me is to create a purge option to remove everything. Sure, that's possible but I don't have the time for it now.

from bigbagkbdtrixxkb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.