blob: 09657c5d9a6c935e6502cfa2a0219742395dec23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# kde-dolphin-thumbnailer
An SVG thumbnails generator for the KDE's
[Dolphin](https://www.kde.org/applications/system/dolphin/) file manager.
## Build
```bash
# build and install C-API first in case you don't have resvg intalled already
cargo build --release --features "qt-backend" --manifest-path ../../capi/Cargo.toml
sudo cp ../../../target/release/libresvg.so /usr/lib/
# build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DQT_PLUGIN_INSTALL_DIR=`kf5-config --qt-plugins` -DCMAKE_BUILD_TYPE=Release
make
# install
sudo make intall
```
## Enable
In Dolphin, go to the Settings -> Configure Dolphin -> General -> Previews.
Then disable *SVG Images* and enable *SVG Images (resvg)*.
Also, it's a good idea to reset the thumbnails cache:
```bash
rm -r ~/.cache/thumbnails
```
|