On my PC I log in with two users in different sessions, and switch between them quite often. Each session runs a copy of parcellite. I though it would be useful to share the clipboard history between the two users.
So I linked the ~/.local/share/parcellite/history file in both users home directory to point to one file.
Unfortunately it didnt work because parcellite only reads this file once (when it starts), so any changes made by the other users are not read.
So I added a few lines of code to make it reload the history file whenever the history menu is displayed. I'd like to suggest this is added to the official release.
The change is in main.c, the code is added to the start of function history_hotkey()
/* Read history file to get changes made by another
instance of parcellite (if clipboard history file is shared). */
/* Clear history and free history-related variables */
history = NULL;
Log in to post a comment.