Hi,
I’m an happy user of paperwork for my personal stuff.
I’m recently working as a beekeeper and I want to use another working dir or instance to manage my professional documents. I know that the paperwork goal is to have everything in only one place but I would like keep perso and pro documents separated.
A solution could be the ability to pass the working directory as a startup parameter.
Is there any workaround ? perhaps using paperwork-shell.
The only workaround that I know of at the moment is by setting the environment variables XDG_CONFIG_HOME and XDG_DATA_HOME to use 2 different configurations. For example, in a Linux terminal:
export XDG_CONFIG_HOME=~/some_config_dir # default is ~/.config
export XDG_DATA_HOME=~/some_data_dir # default is ~/.local/share
paperwork
Or if you use Flatpak:
# both paths must be in your home directory
flatpak run \
--env=XDG_CONFIG_HOME=${HOME}/some_config_dir \
--env=XDG_DATA_HOME=${HOME}/some_data_dir \
work.openpaper.Paperwork
XDG_CONFIG_HOME specifies where the configuration file must be stored (${XDG_CONFIG_HOME}/paperwork.conf), and the configuration files contains the work directory location (so switching the first one allows to switch the second one).
XDG_DATA_HOME specifies where the data files (index, training, etc) must be stored (${XDG_DATA_HOME}/paperwork/*). Since those data files depends on the content of the work directory, you should switch them too. If you don’t, Paperwork will have to do full index updates everything you switch the work directory. It would be safe but it would be very slow.
Hello,
first of all, many thanks for this program. I just started a few days ago and it looks very promising.
I just wanted to ask about the topic here and if there will be the possibility having more than one
profiles /instance / working directory.
I really would appreciate that, because my father and my aunt are both over 80 and I started to scan their old data.
It would be such a big advantage to have not only the documents but also the config and the index separated to be able to switch the working directory without having the index created newly, which is very slow.
Anther advantage of this would be doing after work a backup and transfer this to the NAS completely including the appropriate index. Is there a chance to have this in the nearer future?
Nevertheless, whatever the answer will be, until now it is ALREADY a huge advantage having this stuff.
Thanks again.
regards
greizt
You must uninstall the stable version first (it won’t delete your documents). I use daily the Flatpak build from the branch develop so it’s kind-of-stable, but I haven’t used the Windows version for quite some times.
Regarding the GUI, nothing has changed. The only change is that when switching from a work directory to another in the settings, Paperwork won’t have to recreate the index from scratch every time (unless you haven’t used this work directory for more than 31 days).
Follow-up question for the usage of multiple “profiles”.
I am the “accountant” of a small association and I would like keep those things separated from my own stuff. Had the idea, looked into the forum … bam! … there it is.
But before I massacre my previous work:
Is this the workflow?
create new directory for a new “profile”: externally or from within paperwork?
move selected stuff to the new profile … but actually how? Sorry for not just trying. Am too anxious to break sth.
Working on Linux Mint LMDE6 with system package 2.1.1-1 (flatpak version could not find my scanner)
create new directory for a new “profile”: externally or from within paperwork?
In the settings of Paperwork, you can pick a new directory as work directory for Paperwork. You can create it externally first (empty), or not, as you prefer.
move selected stuff to the new profile … but actually how? Sorry for not just trying. Am too anxious to break sth.
There is nothing in Paperwork itself to move the documents from one work directory to another. However, each document is simply a directory inside the work directory, and this document directory can be moved from one work directory to another without risk.