[SOLVED] Cannot change Data Directory under Linux

edited May 30, 2023
Dear all,

I have a /data directory where I put normally all my important data. So I copied /home/user/Zotero to /data/Zotero and want my local Zotero client (6.0.26) on linux manjaro (rolling release) to look at the new directory from now on.

But somehow inside of Zotero I cannot see the /data directory in the Data Directory Location list (Preferences>Advanced>Files and Folders>Data Directory Location).
Maybe I thought it could be an access problem along the route to the new folder, but I do not see any important difference:

drwxr-xr-x 1 root root 292 Apr 22 10:38 /
drwxr-xr-x 1 root root 588 May 29 15:27 /data
drwxr-xr-x 1 user user 436 May 29 15:27 /data/Zotero

drwxr-xr-x 1 root root 292 Apr 22 10:38 /
drwxr-xr-x 1 root root 120 May 24 13:32 /home
drwxr-x--- 1 user user 2488 May 29 17:43 /home/user
drwxr-xr-x 1 user user 534 May 29 17:23 /home/user/Zotero

When I forced the /data/Zotero in the config field extensions.zotero.dataDir. Zotero wouldn't even start, luckily it suggests using 'old' /home/user/Zotero data directory and I am back at square one.

Any tips that might help me in my quest?

Thanks,
Bastiaan
  • How did you install Zotero?
  • edited May 30, 2023
    Good question! Just checked it's a flatpak.

    So ... I had to do the following to get it to work:

    sudo flatpak override org.zotero.Zotero --filesystem=/data/Zotero

    Then start Zotero and now I was able to see the /data/Zotero directory
    Change the Data Directory Location and restart Zotero.

    Job done, thx!
  • Bwakkie thank you so much for posting your method! I had the exact same problem and it's solved now.
Sign In or Register to comment.