-
下载 deepin-editor 源码
https://github.com/linuxdeepin/deepin-editor
提取文件 -
安装依赖
sudo apt install cmake libqt5widgets5 libdtkcore-dev libdtkwidget-dev qt5-default libpolkit-qt5-1-dev libkf5syntaxhighlighting-dev libkf5codecs-dev qttools5-dev-tools qtbase5-private-dev libxcb-util0-dev libdtkwm-dev libxtst-dev
deepin-editor的目录结构
3. 构建自动保存守护程序
主要步骤:
sudo cp com.deepin.editor.policy /usr/share/polkit-1/actions
sudo cp com.deepin.editor.conf /usr/share/dbus-1/system.d/
sudo cp com.deepin.editor.daemon.service /usr/share/dbus-1/system-services
cd ./daemon
mkdir build
cd build
qmake ..
make
sudo ./deepin-editor-daemon
在 daemon/build下 执行 qmake …
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake ..
make
没有报错,然后执行一下 生成的 deepin-editor-daemon
sudo ./deepin-editor-daemon
会一直卡着在运行的
挂后台:
4. 构建 deepin-editor
到解压目录
mkdir build
cd build
cmake ..
make
把deepin-editor和 dedit 复制到 /usr/bin
sudo cp deepin-editor /usr/bin/
sudo cp dedit/dedit /usr/bin/
把 源代码 目录下的 translations文件夹复制到 /usr/share/deepin-editor下
sudo cp deepin-editor.desktop /usr/share/applications/
sudo cp -r translations /usr/share/deepin-editor/
cd /usr/share/deepin-editor/translations/
sudo rm *.ts
复制UOS系统里面/usr/share/deepin-editor/themes到 本机
sudo cp -r themes /usr/share/deepin-editor/
安装完成,查看有不有deepin-editor 图标
命令行也可以用 dedit
其他的深度软件 都可下载deb安装 https://pkgs.org/