Fix build instructions to use LOCAL_KAUTH_INSTALL

This commit is contained in:
Marco Allegretti 2026-04-13 09:39:27 +02:00
parent 36a39e1537
commit 4efc6e29c7
2 changed files with 7 additions and 3 deletions

View file

@ -115,12 +115,16 @@ distrobox enter shift-tw -- bash -c '
cd ~/Projects/Shift
cmake -S . -B build-clean -G Ninja \
-DCMAKE_INSTALL_PREFIX=$PWD/.prefix \
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_BUILD_TYPE=Debug \
-DPLASMA_MOBILE_LOCAL_KAUTH_INSTALL=ON
'
```
`-DCMAKE_INSTALL_PREFIX=$PWD/.prefix` tells cmake to install into a
local directory instead of `/usr`. During configure, ECM auto-generates
local directory instead of `/usr`.
`-DPLASMA_MOBILE_LOCAL_KAUTH_INSTALL=ON` redirects KAuth helper
executables and polkit policy files into the local prefix so that
`cmake --install` works without root. During configure, ECM auto-generates
`build-clean/prefix.sh` — a shell snippet that prepends `.prefix` paths
to `QT_PLUGIN_PATH`, `QML2_IMPORT_PATH`, `XDG_DATA_DIRS`, etc. The
preview script sources this file so the system `plasmashell` finds our

View file

@ -36,7 +36,7 @@ The upstream phone UI is untouched; convergence adds a layer on top.
### Building
```
cmake -B build
cmake -B build -DPLASMA_MOBILE_LOCAL_KAUTH_INSTALL=ON
cmake --build build
cmake --install build
```