add more debugging information to CONTRIBUTING.md
Something nice to have for the first time contributors (like me). So we don't have to bug people on matrix about how to debug :)
This commit is contained in:
parent
3697f1afee
commit
612099a31d
1 changed files with 12 additions and 1 deletions
|
@ -84,7 +84,7 @@ cmake ..
|
|||
make
|
||||
```
|
||||
|
||||
People hacking on much KDE software may want to set up kdesrc-build.
|
||||
People hacking on much KDE software may want to set up [kdesrc-build](https://invent.kde.org/sdk/kdesrc-build).
|
||||
|
||||
Once built, you can either install it over your system KWin (not recommended) or run it from the build directory directly.
|
||||
|
||||
|
@ -108,6 +108,17 @@ QT_PLUGIN_PATH tells Qt to load KWin's plugins from the build directory, and not
|
|||
|
||||
The dbus-run-session is needed to prevent the nested KWin instance from conflicting with your session KWin instance when exporting objects onto the bus, or with stuff like global shortcuts.
|
||||
|
||||
If you need to run a whole Wayland plasma session, you should install a development session by first building [plasma-workspace](https://invent.kde.org/plasma/plasma-workspace) and executing the `login-sessions/install-sessions.sh` in the build directory. This can be done using kdesrc-build.
|
||||
|
||||
```bash
|
||||
kdesrc-build plasma-workspace
|
||||
# assuming the root directory for kdesrc-build is ~/kde
|
||||
bash ~/kde/build/plasma-workspace/login-sessions/install-sessions.sh
|
||||
```
|
||||
Then you can select the develop session in the sddm login screen.
|
||||
|
||||
You can look up the current boot kwin log via `journalctl --user-unit plasma-kwin_wayland --boot 0`.
|
||||
|
||||
## Using A Debugger
|
||||
|
||||
Trying to attach a debugger to a running KWin instance from within itself will likely be the last thing you do in the session, as KWin will freeze until you resume it from your debugger, which you need KWin to interact with.
|
||||
|
|
Loading…
Reference in a new issue