0 前言
KDE(KUbuntu)、DDE(Deepin、UOS)、UKUI(银河麒麟、开放麒麟)默认都采用KWin窗口管理器,虽然可通过下面命令安装,本文重点介绍如何从源码安装。
Tips:若不想编译源码,可通过下面命令安装:
# Deepin
sudo apt-get install -y dde-kwin dde-kwin-dev # Tips:参考资料[2]提供了“dde-kwin-xxx.deb”!
# Ubuntu
sudo apt-get install -y kwin # UbuntuKylin20.04验证OK
1 源码
1.1 版本
(1)系统
可通过“kwin --version”命令查看版本,不同发行版默认所用KWin版本如下:
发行版 | KWin | 说明 | |
KUbuntu | 20.04 | 5.18.7 | |
22.04 | 5.24.7 | ||
Deepin | 20.9 | 5.15.11.65-1 | |
23 | 5.24.3 | ||
UOS | Pro V20 | 5.15.11.59-1 | 没找到该版本源码,找到验证可用的是5.15.11.51 |
银河麒麟 | V10 | ukui-kwin 1.0.0 |
(2)源码
直接查看CMakeLists.txt。
1.2 下载
(1)方法1
# DDE
git clone https://github.com/linuxdeepin/dde-kwin.git # deepin-wm-dbus、kwinrc、kwin_no_scale
git clone https://github.com/linuxdeepin/deepin-kwin.git # kwin_x11
# KDE
git clone https://invent.kde.org/plasma/kwin.git
# UKUI
git clone https://github.com/ukui/ukui-kwin.git
# openKylin
git clone https://gitee.com/openkylin/kwin.git
(2)方法2
apt source kwin
2 依赖
(1)方法1
# UOS/Deepin
sudo apt build-dep kwin # [22]
# 银河麒麟
sudo apt build-dep ukui-kwin-wayland # [21]
注:Kubuntu使用上述方法会报错“E: You must put some 'deb-src' URIs in your sources.lis”,需要将/etc/apt/sources.list中“deb-sr