Search Criteria
Package Details: wps-office-cn-bwrap 12.1.0.17900-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/wps-office-cn-bwrap.git (read-only, click to copy) |
---|---|
Package Base: | wps-office-cn-bwrap |
Description: | Kingsoft Office (WPS Office) CN version - an office productivity suite |
Upstream URL: | https://linux.wps.cn |
Keywords: | bwrap cn kingsoft portable sandbox wps |
Licenses: | LicenseRef-WPS-EULA |
Conflicts: | kingsoft-office, wps-office, wps-office-cn |
Provides: | wps-office, wps-office-cn |
Submitter: | Kimiblock |
Maintainer: | Kimiblock (haakuya) |
Last Packager: | Kimiblock |
Votes: | 0 |
Popularity: | 0.000000 |
First Submitted: | 2025-02-20 14:09 (UTC) |
Last Updated: | 2025-05-28 05:14 (UTC) |
Dependencies (26)
- desktop-file-utils (desktop-file-utils-gitAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- glu (glu-gitAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR)
- libtool (libtool-gitAUR)
- libxrender
- libxslt (libxslt-gitAUR)
- libxss
- portableAUR (portable-gitAUR, portableAUR)
- sdl2AUR (sdl2-compat-gitAUR, sdl2-gitAUR, sdl2-compat)
- shared-mime-info
- sqlite (sqlite-fossilAUR)
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, mimejs-gitAUR, xdg-utils-mimeoAUR)
- xorg-mkfontscale
- desktop-file-utils (desktop-file-utils-gitAUR) (make)
- cups (cups-gitAUR, cups-gssapiAUR) (optional) – Printing support
- curl (curl-gitAUR, curl-c-aresAUR) (optional) – An URL retrieval utility and library
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR) (optional) – JPEG image codec support
- Show 6 more dependencies...
Required by (20)
- freetype2-wps (requires wps-office)
- python-pywpsrpc (requires wps-office)
- wps-office-all-dicts-win-languages (requires wps-office)
- wps-office-bwrap (requires wps-office)
- wps-office-mui-de-de (requires wps-office)
- wps-office-mui-en-gb (requires wps-office)
- wps-office-mui-es-es (requires wps-office)
- wps-office-mui-es-mx (requires wps-office)
- wps-office-mui-fr (requires wps-office)
- wps-office-mui-fr-ca (requires wps-office)
- wps-office-mui-fr-fr (requires wps-office)
- wps-office-mui-id-id (requires wps-office)
- wps-office-mui-ja-jp (requires wps-office)
- wps-office-mui-pl-pl (requires wps-office)
- wps-office-mui-pt-br (requires wps-office)
- wps-office-mui-pt-pt (requires wps-office)
- wps-office-mui-ru (requires wps-office)
- wps-office-mui-th-th (requires wps-office)
- wps-office-vero-pt-br (requires wps-office)
- wps-zotero (requires wps-office)
Latest Comments
Kimiblock commented on 2025-06-04 02:12 (UTC)
@haakuya Valid point. Can you open a PR @ https://github.com/Kraftland/portable?
I'm out for a trip now and doesn't have a trusted computer around.
haakuya commented on 2025-06-03 15:08 (UTC)
我又研究了一下,wps-helper 中 launchTarget 中的 env 似乎是不必要的。
同时为了更好的处理参数解析以处理含空格文件,对
/usr/lib/portable/helper
做如下变更:wps-helper:
portable:
Kimiblock commented on 2025-06-03 09:54 (UTC)
感谢你指出的问题, 我将设置你为 Co-Maintainer
haakuya commented on 2025-06-03 09:27 (UTC) (edited on 2025-06-03 09:31 (UTC) by haakuya)
我看了脚本代码,我的理解是 bwBindPar 通过传递的文件名作为参数,使用 dev-bind 绑定特定文件(夹)来透过 bwarp,但是似乎有几个问题:
调用bwarp传递参数没有使用引号包裹,导致特殊字符被转译,且空格会被当做参数分隔符
当使用
env PORTABLE_LOGGING=debug_portableConfig=cn.wps.wpp wps-helper /usr/lib/wps-office-cn-bwrap/wpp /some/dir/AA\ -\ BB.ppt
能够看到
在
execApp()
中if [ -z ${bwBindPar} ] && [ -f ${bwBindPar} ]
应该是个逻辑错误,应该是if [ -z ${bwBindPar} ] || [ ! -f ${bwBindPar} ]
wps-helper
未处理portable --actions share-files
等参数wps-helper
中exec portable -- $3
似乎没有传递参数给portable
,或许修改为exec portable -- ${@:2}
更合适当已经有wps实例时,无法将新的文件绑定进沙盒,如果支持绑定多个目录,则更为方便
targetArgs 是一个数组,传入
/usr/lib/portable/helper
似乎导致 wps 无法将含有空格的参数解析为文件名,/usr/lib/wps-office-cn-bwrap/wpp AA -\ BB.ppt
是可以成功打开文件的我做了个 patch 增加了绑定目录的功能,并修复了一、二两个问题
Kimiblock commented on 2025-05-30 14:22 (UTC)
bwBindPar accepts directories, and yes, we can use
portable --actions share-files
to select files to be put insidesandbox home/Shared
haakuya commented on 2025-05-30 08:56 (UTC)
目前脚本里的bwBindPar目前只能绑定某个文件,请问后续有无相关计划增加特定环境变量以支持绑定一些目录
Kimiblock commented on 2025-05-28 03:40 (UTC)
Done, but on GNOME the input method still doesn't work
mixout commented on 2025-05-27 16:23 (UTC)
@Kimiblock 好像是
wps-helper
里面的QT_IM_MODULE=xim
把 portable 设置的覆盖了Kimiblock commented on 2025-05-25 13:35 (UTC)
@mixout portable 应该会自动检测输入法并设置环境变量. 用 htop 找到有问题的进程按 e 看看有没有变量?
mixout commented on 2025-05-25 12:29 (UTC)
在 Wayland 下有些地方的输入法无法使用,可能需要 patch 一下启动脚本加上设置
QT_IM_MODULE=fcitx
的环境变量?