lots of cleanup in dirnotes-gui; eliminate cursor; only open the database once; use the QFileDialog as a dir-picker; implement fileCopy; add a dir-picker to dirnotes-tui; add a desktop icon and .destop file

This commit is contained in:
2022-10-10 22:16:25 -04:00
parent f7dc54cd2f
commit b63ec7ebc5
6 changed files with 164 additions and 134 deletions
+4 -1
View File
@@ -54,7 +54,7 @@ By default, the file **~/.dirnotes.conf** will be used to load the user's config
This is a JSON file, with three attributes that are important:
> * xattr_tag (default: <code>usr.xdg.comment</code>)
> * database (default: <code>~/.dirnotes.db</code>)
> * database (default: <code>~/.dirnotes.db</code>, sensible alt: <code>/var/lib/dirnotes.db</code>)
> * start_mode (_xattr_ or _db_ priority)
The _config_file_ should be auto-generated the first time one of the **dirnotes** apps is run.
@@ -87,6 +87,8 @@ If you want to copy files to a remote machine and include the _xattr_ comments,
Some editing apps (like _vim_) will create a new file when saving the data, which orphans the _xattr_ comments. For these apps, use the _database_ system.
Removable disk devices (usb sticks) which are formatted with a Linux-based filesystem (ext2/3/4, btrfs, xfs, zfs) will carry the _xattr_ comments embedded in the filesystem metadata, and are portable to anther computer.
## database
Comments stored in the database work for all filesystem types (including vfat/exfat/sshfs)
@@ -100,6 +102,7 @@ mounted in a consistent way, so that the complete path name is reproducable.
Comments stored in the database do not travel with the files when
they are moved or copied, unless using the **dirnotes** family of tools.
The _database_ comments that are stored in <code>~/.dirnotes.db</code> are inherently associated with a single user. If the _database_ is located in <code>/var/lib/dirnotes.db</code>, it is shared by all the users in the system. The comment with the 'most recent timestamp' wins.
## PROGRAMMER NOTES