
我将图片库移动到了不同的文件夹,如何更改 Shotwell 数据库中的路径?
答案1
Shotwell 将数据存储在 SQLite 数据库中。您可以按如下方式更改路径:
- 关闭肖特韦尔;
- 进行备份
~/.local/share/shotwell/data
; - 使用命令打开数据库
sqlite3 photo.db
(您可能需要sqlite3
先使用命令安装sudo apt install sqlite3
; - 在提示符 (
sqlite>
) 下,键入如下命令:
update PhotoTable set filename = replace(filename, '/old/path/', '/home/me/new/path/');