创建右键“批量打印”菜单-- nautilus
1. 创建一个 Python 文件 batch_print_extension.py
2. 打包注意事项:在 debian/control 中增加 Depends: python3-nautilus。
3. 文件安装:
如果将扩展安装为系统级(对所有用户生效):将 .py 文件复制到 /usr/share/nautilus-python/extensions/。
如果将扩展安装为用户级(仅对当前用户生效):在 debian/postinst 脚本中将文件复制到 ~/.local/share/nautilus-python/extensions/
创建右键“批量打印”菜单--dolphin
1. 创建KDE服务菜单文件 batch-print.desktop
2. 将你的 desktop 文件放在指定目录
cp batch-print.desktop /usr/share/kio/servicemenus/
3. 刷新 KDE 服务缓存
kbuildsycoca5
4. 重启 Dolphin(文件管理器)
killall dolphin
手动启动loongoffice服务
/opt/loongoffice/program/soffice --headless --invisible --accept="socket,host=127.0.0.1,port=8100;urp;
查看某个文件的文件类型
xdg-mime query filetype your_file.docx
更新资源文件
pyrcc5 -o resources_rc.py resources.qrc
安装依赖
python-uno、PyMuPDF
apt install python3-uno
apt install python3-fitz
apt install python3-magic
LoongBatchPrint 编译打包
pyinstaller --windowed --paths /usr/lib/python3/dist-packages --add-data "locales:locales" main.py
Description
Languages
Python
99.9%