- Arch Linux User Repository
- Universebenzene commented on 2020-01-10 04:48 (UTC) (edited on 2020-06-09 15:38 (UTC) by Universebenzene)
- Universebenzene commented on 2019-10-26 05:46 (UTC) (edited on 2019-10-26 07:10 (UTC) by Universebenzene)
- Universebenzene commented on 2019-07-05 17:08 (UTC)
- Universebenzene commented on 2019-04-16 13:34 (UTC)
- attenuation commented on 2017-11-29 14:16 (UTC)
- Latest Comments
- mikedan commented on 2023-07-01 18:21 (UTC) (edited on 2023-07-03 15:59 (UTC) by mikedan)
- WPS Office
- Installation
- Tips and tricks
- Interface language
- Modify WPS file icon and file association
- Use GTK+ UI
- Manually repair Kingsoft PDF startup script
- Troubleshooting
- WPS Office overriding or breaking mime
- Zip template compressed packet garbled
- Formula can not display normally
- Microsoft Office file in KDE Plasma is recognized as Zip
- Fcitx input method framework cannot input on WPS
- Bad integration with dark theme of KDE Plasma
- See also
- Arch Linux User Repository
- Universebenzene commented on 2020-01-10 04:48 (UTC) (edited on 2020-06-09 15:38 (UTC) by Universebenzene)
- Universebenzene commented on 2019-10-26 05:46 (UTC) (edited on 2019-10-26 07:10 (UTC) by Universebenzene)
- Universebenzene commented on 2019-07-05 17:08 (UTC)
- Universebenzene commented on 2019-04-16 13:34 (UTC)
- attenuation commented on 2017-11-29 14:16 (UTC)
- Latest Comments
- ppc52776 commented on 2023-01-20 10:22 (UTC)
- pacut commented on 2023-01-20 09:56 (UTC)
- Universebenzene commented on 2023-01-17 05:08 (UTC)
- jinmax100 commented on 2023-01-16 16:23 (UTC)
- jan666 commented on 2022-12-22 16:30 (UTC) (edited on 2022-12-25 13:39 (UTC) by jan666)
- xuanruiqi commented on 2022-12-16 18:19 (UTC)
- archack71 commented on 2022-12-14 03:31 (UTC)
- Universebenzene commented on 2022-12-07 10:41 (UTC) (edited on 2022-12-07 10:42 (UTC) by Universebenzene)
Arch Linux User Repository
If you have the «ERROR: One or more files failed the validity check!» problem, try cleaning your AUR cache first, and try again.
Universebenzene commented on 2020-01-10 04:48 (UTC) (edited on 2020-06-09 15:38 (UTC) by Universebenzene)
[ATTENTION] The new international version (11.1.0.9080) removed zh_CN support, login, and some other functions. If you still want full functions, or you want aarch64 support, you may need the Chinese version from https://linux.wps.cn here: https://aur.archlinux.org/pkgbase/wps-office-cn
Universebenzene commented on 2019-10-26 05:46 (UTC) (edited on 2019-10-26 07:10 (UTC) by Universebenzene)
I split the /usr/share/mime/packages/wps-office-*.xml files to the wps-office-mime package to avoid mime issues. If you still want the mime files provided by wps-office itself, you can install the new mime package.
Universebenzene commented on 2019-07-05 17:08 (UTC)
There is no official 32-bit package for version 11.1.0.8722, so I drop the support for i686 arch. For archlinux32 users you can create another wps-office package for 32-bit system yourself.
Universebenzene commented on 2019-04-16 13:34 (UTC)
When you shut down wps-office, the wpsoffice process may still exist. You can do sudo chmod -x /usr/lib/office6/wpsoffice to fix it. But this might bring you problem with signing in.
attenuation commented on 2017-11-29 14:16 (UTC)
About the software issues, you can go to the official feedback problem. I’m just a packager, I can not solve the software problem.
Latest Comments
mikedan commented on 2023-07-01 18:21 (UTC) (edited on 2023-07-03 15:59 (UTC) by mikedan)
Can’t open files with utf-8 cyrillic filenames. [FIXED by generating missing locales]
This happens with a few last versions, for more than a year. wps opens only if filename has ASCII only characters, spaces don’t impact.
If I open such file with KDE’s Dolphin (open with) or with terminal emulator wps shows startpage with recent documents without any error. If I use «open file» dialog wps just doesn’t show files with non-ASCII characters. And if I drag-n-drop such file to the wps window it opens new empty tab with correct filename as a tab name and shows error «Cannot find (filename). Please check the file name’s spelling, and make sure the file location is correct. If you are trying to open the file from your recently used file list on the File menu, please make sure that file has not been renamed, moved or deleted.»
How can I figure out what the problem is? There’s nothing in bash shell printed and nothing helpful in systemd journal (systemd-coredump of wpscloudsvr only). wps of same version in Debian-based distributives works correctly.
UPD. Now I think that the problem is Java-related because other java apps do the same. I’ve found that java inside wps uses fallback encoding (ASCII) when any locale-related error appears, even if it should not impact using filenames or so. In my case DE added one LC_TIME environment variable which wasn’t configured.
WPS Office
WPS Office for Linux is a proprietary alternative for Microsoft Office with a modern UI which supports cross-device file transfer and cloud backup. The suite contains Writer, Presentation and Spreadsheets.
Installation
The fonts used by WPS Office are provided by the ttf-wps-fonts AUR package.
The programs in the suite can be run using:
Command | Program |
---|---|
wps | WPS Writer |
et | WPS Spreadsheets |
wpp | WPS Presentation |
wpspdf | WPS PDF |
Tips and tricks
Interface language
Official support is only for English and Chinese ( wps-office-cn AUR ).
Some languages have unofficial translations; you can install them from the AUR packages:
Then set your language by selecting Review > Spell Check > Set Language to choose your language and restart WPS.
Modify WPS file icon and file association
After installing WPS, the DOC, XLS, PPT and other files in the icon-theme you use will be replaced with the WPS text, ET form, WPP presentation and other icons that come with WPS Office. If you do not need it, you can modify the relevant mime configuration file yourself:
/usr/share/mime/packages/wps-office-.xml /usr/share/mime/packages/freedesktop.org.xml #(Belongs to the package shared-mime-info)
/usr/share/applications/wps-office-.desktop
Processing strategy: WPS’s own format is defined by wps-office-{wpp,wps,et>.xml , and others are defined by freedesktop.org.xml . Also modify the MimeType item of the desktop file.
Add the following statement to the package function in the PKGBUILD file:
##et wpp wps supported MimeType _etMT="MimeType=application\/wps-office.et;application\/wps-office.ett;application\/vnd.ms-excel;\ application\/vnd.openxmlformats-officedocument.spreadsheetml.template;\ application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet;" _wppMT="MimeType=application\/wps-office.dps;application\/wps-office.dpt;application\/vnd.ms-powerpoint;\ application\/vnd.openxmlformats-officedocument.presentationml.presentation;\ application\/vnd.openxmlformats-officedocument.presentationml.slideshow;\ application\/vnd.openxmlformats-officedocument.presentationml.template;" _wpsMT="MimeType=application\/wps-office.wps;application\/wps-office.wpt;\ application\/msword;application\/rtf;application\/msword-template;\ application\/vnd.openxmlformats-officedocument.wordprocessingml.template;\ application\/vnd.openxmlformats-officedocument.wordprocessingml.document;" ##mime sed -i '3,31d' $pkgdir/usr/share/mime/packages/wps-office-et.xml sed -i '3,36d' $pkgdir/usr/share/mime/packages/wps-office-wpp.xml sed -i '3,30d' $pkgdir/usr/share/mime/packages/wps-office-wps.xml ##desktop #_et sed -i "s/^MimeType.*$/$_etMT/" $pkgdir/usr/share/applications/wps-office-et.desktop #_wpp sed -i "s/^MimeType.*$/$_wppMT/" $pkgdir/usr/share/applications/wps-office-wpp.desktop #_wps sed -i "s/^MimeType.*$/$_wpsMT/" $pkgdir/usr/share/applications/wps-office-wps.desktop
Use GTK+ UI
The default UI of WPS is Qt. In fact, the bundled Qt is 4.7.4, so the themes such as qtcurve cannot be loaded normally because the versions do not match. But we can change it to GTK+ and add the parameter -style gtk+ directly.
You can modify the et, wpp, and wps files in the /usr/bin/ directory and delete it (if any):
gOpt="-style=gtk+" export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc
Manually repair Kingsoft PDF startup script
The startup script provided by Kingsoft PDF is missing the custom configuration of GTK. You can add it at the beginning of its startup script /usr/bin/wpspdf :
gOpt="-style=gtk+" export GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc
And add $ to the subsequent run function, the modified run function is as follows:
function run() < if [ -e "$/office6/$" ] ; then < $/office6/$ $ "$@"; > >/dev/null 2>&1 else echo "$ does not exist!" fi >
Note: Since each upgrade may result in the loss of file modifications, you may consider copying the et, wpp, and wps files to other directories (for example: ~/.local/bin/ ) and adding them to Environment variables.
Troubleshooting
WPS Office overriding or breaking mime
Add common\do_not_detect_file_association_while_startup=true before [kdcsdk] :
/home/your_user/.config/Kingsoft/Office.conf
[6.0] . common\do_not_detect_file_association_while_startup=true [kdcsdk] .
Then save the file, and restart WPS Office.
Zip template compressed packet garbled
Use the parameter -O gb18030 with unzip when decompressing.
Formula can not display normally
the display of most Mathematical formula need fonts show below:
symbol.ttf webdings.ttf wingding.ttf wingdng2.ttf wingdng3.ttf monotypesorts.ttf MTExtra.ttf
ttf-wps-fonts AUR contain all of these fonts except monotypesorts.ttf, you can install it directly.
Microsoft Office file in KDE Plasma is recognized as Zip
After installing WPS Office, Microsoft Office files will be recognized as zip and cannot open with WPS. You can change this kind of recognition by delete mime file in /usr/share/packages/ :
# rm /usr/share/mime/packages/wps-office-*.xml # update-mime-database /usr/share/mime
Fcitx input method framework cannot input on WPS
add following lines to /usr/bin/wps /usr/bin/et /usr/bin/wpp separately to add fcitx to Writer, Spreadsheet and Presentation:
export XMODIFIERS="@im=fcitx" export QT_IM_MODULE="fcitx"
Bad integration with dark theme of KDE Plasma
Run the applications with:
env GTK2_RC_FILES=/usr/share/themes/Breeze/gtk-2.0/gtkrc et -style gtk+
Breeze theme can be replaced with any light theme, i.e. Adwaita, Breath, etc.
After running the application, WPS will show a warning: ‘Unable to open «gtk+»‘. Ignore it and press Ok.
See also
Arch Linux User Repository
If you have the «ERROR: One or more files failed the validity check!» problem, try cleaning your AUR cache first, and try again.
Universebenzene commented on 2020-01-10 04:48 (UTC) (edited on 2020-06-09 15:38 (UTC) by Universebenzene)
[ATTENTION] The new international version (11.1.0.9080) removed zh_CN support, login, and some other functions. If you still want full functions, or you want aarch64 support, you may need the Chinese version from https://linux.wps.cn here: https://aur.archlinux.org/pkgbase/wps-office-cn
Universebenzene commented on 2019-10-26 05:46 (UTC) (edited on 2019-10-26 07:10 (UTC) by Universebenzene)
I split the /usr/share/mime/packages/wps-office-*.xml files to the wps-office-mime package to avoid mime issues. If you still want the mime files provided by wps-office itself, you can install the new mime package.
Universebenzene commented on 2019-07-05 17:08 (UTC)
There is no official 32-bit package for version 11.1.0.8722, so I drop the support for i686 arch. For archlinux32 users you can create another wps-office package for 32-bit system yourself.
Universebenzene commented on 2019-04-16 13:34 (UTC)
When you shut down wps-office, the wpsoffice process may still exist. You can do sudo chmod -x /usr/lib/office6/wpsoffice to fix it. But this might bring you problem with signing in.
attenuation commented on 2017-11-29 14:16 (UTC)
About the software issues, you can go to the official feedback problem. I’m just a packager, I can not solve the software problem.
Latest Comments
ppc52776 commented on 2023-01-20 10:22 (UTC)
@pacut, please install the latest wps-office package, it needs libtiff5 dependency now.
pacut commented on 2023-01-20 09:56 (UTC)
WPS PDF is not launching anylonger + if you try export to PDF from WPS Writer you get an error. How to get rid of it ?
Universebenzene commented on 2023-01-17 05:08 (UTC)
@jinmax100 Please focus on the optional dependency.
jinmax100 commented on 2023-01-16 16:23 (UTC)
WPS PDF is not launching at all. Journalctl outputs nothing. Tried re-installing via «yay» as well as building pkg manually, yet still the PDF application doesn’t launch. Does anybody have a fix for this? Please suggest.
jan666 commented on 2022-12-22 16:30 (UTC) (edited on 2022-12-25 13:39 (UTC) by jan666)
After installing and removing WPS office there are left over mime types in /home/username/.local/share/mime/ This will interfere with file icons for Libreoffice, There is only a standard file icon, not the specific one from the chosen theme. After i removed those leftovers file icons return to normal operation.
So possible add a cleanup script to remove those mime types, and add update-mime-database?
This is a problem on Manjaro, Endouveros and Arch as it comes from AUR
xuanruiqi commented on 2022-12-16 18:19 (UTC)
Just a note: you should bump the pkgrel when updating dependencies because it changes the package. Thanks!
archack71 commented on 2022-12-14 03:31 (UTC)
python -c 'import sys, urllib; print urllib.unquote(sys.argv[1])'
python -c 'import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))'
Universebenzene commented on 2022-12-07 10:41 (UTC) (edited on 2022-12-07 10:42 (UTC) by Universebenzene)
@MoetaYuko I’m not really familiar with coding. Do you have any demo for improvement?
Copyright © 2004-2023 aurweb Development Team.
AUR packages are user produced content. Any use of the provided files is at your own risk.