Hello @reviewers,
We would like to request approval for the privileged interfaces declared by our
wps-office snap (published by Kingsoft Office Software, the vendor of WPS
Office). Details below.
name: wps-office
description: WPS Office - a widely used office suite (Writer, Spreadsheets, Presentation, PDF) by Kingsoft Office Software.
upstream: https://www.wps.com
upstream-relation: maintainer (publisher is Kingsoft Office Software, the developer of WPS Office)
plugs:
dot-local-share-mime:
- interface: personal-files
- attributes:
- write: $HOME/.local/share/mime
- request-type: auto-connection
- reasoning: On first launch WPS registers its document MIME types (.doc/.docx/.xls/.xlsx/.ppt/.pptx/.wps/.et/.dps) and runs update-mime-database, so file managers recognise and correctly icon WPS documents. The .deb edition writes /usr/share/mime; a strict snap cannot write system dirs, and the home interface does not cover hidden paths such as ~/.local/share. Auto-connection is required so that non-technical users get working document recognition out of the box.
dot-config-mimeapps-list:
- interface: personal-files
- attributes:
- write: $HOME/.config/mimeapps.list
- request-type: auto-connection
- reasoning: Sets WPS as the default handler for office documents (double-click opens in WPS), matching our .deb installer. ~/.config is a hidden path the home interface does not cover. Auto-connection keeps the out-of-box behaviour for regular users.
dot-wps-user-data:
- interface: personal-files
- attributes:
- write:
- $HOME/.config/Kingsoft
- $HOME/.config/cef_user_data
- $HOME/.cache/Kingsoft
- $HOME/.local/share/Kingsoft
- request-type: auto-connection
- reasoning: WPS user data (settings, account cache, recent files) and the embedded CEF profile. The binaries read/write these host paths by design, and sharing them with the .deb edition keeps existing users’ data on deb to snap migration. All are hidden paths the home interface does not cover, and WPS needs them on every launch, so manual connection is not a viable option.
dot-local-share-icons-hicolor:
- interface: personal-files
- attributes:
- write: $HOME/.local/share/icons/hicolor
- request-type: auto-connection
- reasoning: Installs WPS application/document icons for desktop icon themes. The .deb writes /usr/share/icons; a strict snap cannot, so user-level installation is the only option.
host-home-integration-cleanup:
- interface: system-files
- attributes:
- write: /home
- request-type: auto-connection
- reasoning: Used only by the remove hook to best-effort clean the files our own first-run logic wrote on the host (a manifest whitelist), running via runuser as the owning user. It never touches other user data. Required for a clean uninstall experience in managed environments.
browser-support:
- attributes:
- allow-sandbox: true
- request-type: manual-connection
- reasoning: WPS embeds CEF for cloud/online document rendering. This lets users enable the Chromium renderer sandbox inside the snap via
snap connect; by default the snap runs --no-sandbox as recommended. Auto-connection is not requested.
Thank you for your time and review.
Best regards,
Kingsoft Office Software — Snap packaging team
Contact: wpsoffice_snap@wps.cn