Comments (3)
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.
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.
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)
- Copy,Cut,Paste on Extend HOT 4
- Ext + Q not registering as Escape HOT 6
- Option to change original XKB files location HOT 4
- Changing the arrangement in geometry/pc does has no effect. HOT 1
- Suggestion: Left Alt as Extend HOT 2
- Applications seeing a mix of symbols through the extend layer, and of the original keypress, triggering unwanted keybindings HOT 3
- equal symbol is not working HOT 3
- setxkb.sh disables most F1 - F12 keys in all apps, but any modifier(s) + (F1 - F12) keys are working fine HOT 3
- Problems with Super+letter shortcuts HOT 4
- Help Image in Linux HOT 1
- DH mod for Portuguese (Brazil) Layout HOT 4
- How to Restore to Original Layout? HOT 7
- Ok for me to manually Implement Angle Mod? HOT 1
- Broken xkb/rules/evdev.xml HOT 1
- No more menu entry for Wayland in Gnome login screen after installing new files in /usr/share/X11/xkb HOT 1
- Extend and backspace issues with Linux in most applications HOT 10
- How to set "u" and "o" keys to toggle over word instead of beginning/end of line. (and assign N and "." the functionality of original "u" and "o") HOT 3
- Convert EPKL layout to XKB HOT 1
- The installation script broke my layouts HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigbagkbdtrixxkb.