This forum has been archived. All content is frozen. Please use KDE Discuss instead.

WPS Office not working

Tags: None
(comma "," separated)
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Tue Dec 05, 2017 11:03 am
claydoh wrote:
raddison wrote:How to install WPS Office in KDE Neon - Condensed Guide for Purists ;D

1. Download the latest WPS Office from http://wps-community.org/downloads

2. Open the Downloads folder in Dolphin file manager and right click on the .deb package

3. Select Open With > QApt Package Installer

4. Select Install and input your password when requested

5. Once the installation is completed, close it

6. Open Konsole and type in
Code: Select all
sudo dpkg --configure -a


7. Right click the Application Launcher and select Edit Applications

8. In the KDE Menu Editor, select WPS Writer under Office

9. In the General tab, replace "/usr/bin/wps %f" with "/usr/bin/wps %f -style gtk"

10. Similarly, add " -style gtk" to the existing commands for WPS Presentation and Spreadsheets

11. Click Save and close the Menu Editor

12. Input
Code: Select all
WPS_NO_KDE_NATIVE_DIALOG=1 wps -style gtk
in Konsole

Done. Enjoy.

@Waynes This is it. No further.


2 and 3 are unnecessary, as discover, or (qapt, or the dpkg command) can be used here -- just double click the file, and enter the password when prompted
6 is also completely unnecessary
9 should read "WPS_NO_KDE_NATIVE_DIALOG=1 /usr/bin/wps %f -style gtk", which eliminates step 12, and makes the menu entry work



@Clay Thank you. Appreciated. :)


Proud to be powered by Plasma
lightkea
Registered Member
Posts
1
Karma
0

Re: WPS Office not working

Thu Dec 07, 2017 8:16 pm
Apparently WPS uses gtk and KDE doesn't. A work around is to add -style gtk to the command line in the Start Menu. To do this right click the Start icon and select Edit Applications. Open the Office folder and click on a WPS application. In the Command part of the form paste -style gtk after the string that is there. It should look like this for WPS Writer: /usr/bin/wps %f -style gtk Then do the same for the other WPS apps. I found this out courtesy of another KDE user and it solved it for me on KDE Neon.
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Sun Dec 10, 2017 7:04 pm
People should acknowledge and accept the .odt format as being the only one that can free them from the slavery of proprietors. If Windows guys want compatibility with me, then I urge them to use Libre Office. .odt must and will eventually prevail and become the universal format for all humanity.

:)

Last edited by raddison on Mon Dec 11, 2017 2:15 pm, edited 2 times in total.


Proud to be powered by Plasma
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Mon Dec 11, 2017 1:53 pm
Hi,

WPS is working on KDE Neon. All boils down to:
Code: Select all
WPS_NO_KDE_NATIVE_DIALOG=1 wpp -style gtk+

Code: Select all
WPS_NO_KDE_NATIVE_DIALOG=1 et -style gtk+

Code: Select all
WPS_NO_KDE_NATIVE_DIALOG=1 wps -style gtk+


Thanks to all participants and to the makers of WPS. ;)


Proud to be powered by Plasma
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Wed Dec 13, 2017 9:25 pm
This thread fills me with great joy. It's the story of community success. We've gotten to the bottom of the issue together. WPS keeps working on my Neon machine very well.
It's a good piece of software. And so is Libre Office. I like them both.


Proud to be powered by Plasma
User avatar
waynes
Registered Member
Posts
122
Karma
0

Re: WPS Office not working

Sat Dec 16, 2017 10:18 am
Thanks Claydoh.
Seems to all be working as it should now.

edit...
This seems to have solved a number of issues, but created another one.
Now if I click on a file & open with WPS, I just get a blank instance of WPS, instead of the file opening.
User avatar
waynes
Registered Member
Posts
122
Karma
0

Re: WPS Office not working  Topic is solved

Sun Dec 17, 2017 12:57 pm
OK. started again & finally got this working flawlessly.
For anyone else these are the steps I did.
1. Downloaded the WPS package from here:
http://wps-community.org/downloads
2. Enter the directory I downloaded it to & ran in a terminal:
Code: Select all
sudo dpkg -i wps-office*

3.
Code: Select all
sudo apt install qt4-qtconfig

open qt4 settings & in appearance set gui style to GTK+
4. At this point I had a problem opening files, because for some reason the "mimeapps.list" in my .config folder had become owned by root. I rectified this by opening the .config folder, opening a terminal, & running:
Code: Select all
sudo chown username:username mimeapps.list

Obviously replacing "username" for your own username.
5. Finally edited the 3 WPS applications & changed the commands as per Claydoh's & Raddisons previous posts.
6. Rebooted. Now works flawlessly.
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Tue Dec 19, 2017 12:27 am
waynes wrote:
Now works flawlessly.


@Waynes I'm glad it does. We did it. :D :D :D


Proud to be powered by Plasma
842Mono
Registered Member
Posts
5
Karma
0

Re: WPS Office not working

Fri Mar 16, 2018 9:09 pm
I'm on neon 5.12. raddison's solution works! I changed the .desktop files of wps to those:

WPS_NO_KDE_NATIVE_DIALOG=1 wpp -style gtk+

WPS_NO_KDE_NATIVE_DIALOG=1 et -style gtk+

WPS_NO_KDE_NATIVE_DIALOG=1 wps -style gtk+


Thanks :)
ZekeTJ
Registered Member
Posts
1
Karma
0

Re: WPS Office not working

Wed May 23, 2018 9:28 pm
Hi to all.

It works great after the qt4config change to GTK+ on Mageia 7 Cauldron using kernel 4.14.43-desktop-1.mga7 64bit.

I hope WPS Office fixes this problem.

Regards,
ZekeTJ
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Thu May 24, 2018 9:25 pm
All credit goes to calydoh.


Proud to be powered by Plasma
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Sat Jun 02, 2018 3:33 pm
While I was browsing around that infamous place called YouTube, I came across a video (https://youtu.be/tcLtLH32JUU) dealing with the installation procedure of WPS Office on KDE Plasma. The producer of the video proposed a solution that didn't work out for me.

What always works for me is described in my comment underneath the video and it's essentially the following:
Okay, I'm not saying your method is all wrong. libpng12-0_1.2.54-1ubuntu1_amd64 is indeed necessary to be installed (seemingly it's not in the bionic repo though).
Seems kinda odd you used Discover to install the debs, since it's easier to use QApt (KDE's equivalent of GDebi) but Discover will do as well.
That being said, if you add '-style gtk', WPS Office will not work on Kubuntu 18.04. It will launch okay, but you can't insert images, the dialogues won't work, and so forth (it'll be unusable).
Here's what works: you clear Commands altogether and type in:
WPS_NO_KDE_NATIVE_DIALOG=1 wps -style gtk+ (for Writer)
WPS_NO_KDE_NATIVE_DIALOG=1 et -style gtk+ (for Spreadsheets)
WPS_NO_KDE_NATIVE_DIALOG=1 wpp -style gtk+ (for Presentation)
Then you hit "Save", of course.
That's what really worked for me flawlessly. We're here to help each other out, so I still appreciate your video and your effort. Thanks again.


A guy by the name of Éderson Gomes also addressed the maker of the video and posted a comment-script that I would like to share with you guys. One never knows. It might turn out to be useful. I have no idea.
Comments on YT oftentimes get deleted, so I don't want anything potentially useful to be lost. While the case study was carried out on Kubuntu 18.04, it's fairly reasonable to assume it might be helpful to Neon users as well.

Code: Select all
I've deleted it because either the author has edited it or I've miss-copied it or it's been something else. I'm re-posting it shortly.


Comments on the script are welcome. Unfortunately I don't understand Portuguese, but I might have it translated. Provided it is worth it. I'm still to wrap my head around it.

Thank you fellow Neon users.
Kind Regards,
Richard


Proud to be powered by Plasma
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Sun Jun 03, 2018 3:33 pm
Please read my previous post if you want to understand what all this is about. Thanks.
Code: Select all
I created a script that solve two probems with WPS and KDE.
#1 - When we click a file, it doesn't open woth WPS but LibreOffice. When We try to change, it's not allowed.
#2 - Is about this video.

The script needs only xterm and zenity.
The great part is in Brazilian Portuguese.

#!/bin/bash
# By Éderson Gomes
#
####################################################################################
sudo -K
#
# VERIFICAR SE O USUÁRIO TEM PODERES DE SUDO!
if [ ! "$SUDO_USER" ]; then
msg1="Executar este script requer direitos de administrador."
# width = largura height = altura
zenity --info --width=400 --height=100 \
 --title="ATENÇÃO!" \
 --text "<b>${msg1}</b>"
#/usr/bin/x-terminal-emulator -e "sudo "$0""
xterm -e "sudo "$0""
#gksu "sudo "$0""
exit 0
fi
#
#O comando -sl 3000 aumenta o espaço do buffer para 3000 linhas. O -sb acrescenta scroll bar
#xterm -sb -rightbar -bg black -fg green -sl 3000 -title "My Blog Log"
#-bg white -fg black -geometry 80x25
#
####################################################################################
######################### Modifique daqui para baixo ###############################
# Funcionou desta forma:
# Remover da pasta /usr/share/mime/packages/ os arquivos abaixo:
# wps-office-et.xml
# wps-office-wpp.xml
# wps-office-wps.xml

# Para isso usei o comando:
sudo rm -f /usr/share/mime/packages/wps*

# Depois executei o comando:
sudo update-mime-database /usr/share/mime

# Para os passos seguintes funcionarem, precisei fazer logoff e depois login no KDE Plasma.
# Fui até o arquivo .docx, cliquei nele e abriu no LibreOffice. Como queria que abrisse com o WPS, Fui na opção "Abrir com..." ou Nas propriedades do arquivo e associei o WPS como vc fez no vídeo. O mesmo para doc, xlsx, pptx e etc...

##########
echo "Consertar atalhos do WPS para interfaces KDE"
# https://www.youtube.com/watch?v=tcLtLH32JUU
WPS_A_SER_SUBSTITUIDO="Exec=/usr/bin/wps %f"
WPS_QUE_SUBSTITUI="Exec=/usr/bin/wps %f -style gtk"
WPP_A_SER_SUBSTITUIDO="Exec=/usr/bin/wpp %f"
WPP_QUE_SUBSTITUI="Exec=/usr/bin/wpp %f -style gtk"
WPSet_A_SER_SUBSTITUIDO="Exec=/usr/bin/et %f"
WPSet_QUE_SUBSTITUI="Exec=/usr/bin/et %f -style gtk"

sudo sed -i "s;$WPS_A_SER_SUBSTITUIDO;$WPS_QUE_SUBSTITUI;g" /usr/local/share/applications/wps-office-wps.desktop
sudo sed -i "s;$WPP_A_SER_SUBSTITUIDO;$WPP_QUE_SUBSTITUI;g" /usr/local/share/applications/wps-office-wpp.desktop
sudo sed -i "s;$WPSet_A_SER_SUBSTITUIDO;$WPSet_QUE_SUBSTITUI;g" /usr/local/share/applications/wps-office-et.desktop

####################################################################################
# JANELA INFORMANDO FIM DO PROCESSO
# width = largura height = altura
zenity --info --width=450 --height=130 \
 --title="FIM" \
 --text "<b><i>Para que a configuração tenha efeito, é necessario fazer logoff e depois login novamente.</i></b>

Após o login, em propriedades do arquivo, associe-o ao WPS (Writer, Spreadsheets ou Presentation)."
#
#notify-send -t 1 "Instalação terminada."
#
####################################################################################
exit 0;


@claydoh or anyone knowledgeable: is there anything in the above script that is useful? Thanks.

Kind regards as always.


Proud to be powered by Plasma
raddison
Registered Member
Posts
515
Karma
0

Re: WPS Office not working

Fri Jun 08, 2018 10:54 pm
Short follow-up for the future
- Neon will sooner or later shift to bionic.
- There's no libpng12-0 in bionic.
- WPS Office needs libng12-0.
- Not a problem https://www.linuxuprising.com/2018/05/f ... -1804.html


Proud to be powered by Plasma
User avatar
waynes
Registered Member
Posts
122
Karma
0

Re: WPS Office not working

Sat Jun 09, 2018 7:29 am
Was actually going to provide that link myself, you beat me to it.
Also I dual boot with Ubuntu Budgie 18.04, & have WPS working with the libpng12-0 package mentioned, so should be good for at least the next 2 years, & hopefully WPS will update the app before then.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]