下载 深度编辑器
-
下载 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到 本机
下载: https://chsengni.lanzous.com/iZf3ilark1e 密码: 18dp
sudo cp -r themes /usr/share/deepin-editor/
安装完成,查看有不有deepin-editor 图标
命令行也可以用 dedit
其他的深度软件 都可下载deb安装 https://pkgs.org/
再次运行 可能 出现错误
sudo dedit
- 卸载
rm -rf ~/.cache/deepin/deepin-editor
sudo rm -rf /root/.cache/deepin/deepin-editor
sudo rm /usr/bin/deepin-editor
sudo rm /usr/bin/dedit
sudo rm /usr/share/applications/deepin-editor.desktop
sudo rm -rf /usr/share/deepin-editor
sudo rm /usr/share/polkit-1/actions/com.deepin.editor.policy
sudo rm /usr/share/dbus-1/system.d/com.deepin.editor.conf
sudo rm /usr/share/dbus-1/system-services/com.deepin.editor.daemon.service
reboot
EMAIL : chsengni@126.com 交流一下