Showing posts with label WPS Office. Show all posts
Showing posts with label WPS Office. Show all posts

Monday, 8 February 2021

GTK theme does not work properly on Qt Startup Applications

 Masalah: 

GTK theme does not work properly on Qt Startup Applications



  • Installed the qt5-style-plugins apt package (with all of its dependencies)
  • Added a line to /etc/environment: QT_QPA_PLATFORMTHEME=gtk2 (belum dicoba bisa diabaikan?)
  • Notes

    • The QT Configuration tool (shipped in qt5ct apt package) is viable but not necessary.

      • If installed it addes an X session config /etc/X11/Xsession.d/99qt5ct that sets the QT_QPA_PLATFORMTHEME to qt5ct if unset.
      • It enables a wider configuration of Qt theming. I used a minimal ~/.config/qt5ct/qt5ct.conf:
      [Appearance]
      icon_theme=Numix-Circle
      standard_dialogs=gtk2
      style=gtk2

  • berlaku untuk WPS Office?

WPS Office Qt based on GTK

 

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=

Then, add:

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 ${gOpt} to the subsequent run function, the modified run function is as follows:

function run()
{
	if [ -e "${gInstallPath}/office6/${gApp}" ] ; then
		{ ${gInstallPath}/office6/${gApp} ${gOpt} "$@"; } >/dev/null 2>&1
	else
		echo "${gApp} 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.

Tuesday, 2 February 2021

sudo apt remove wps-office

 $ sudo apt remove wps-office

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following packages will be REMOVED:

  wps-office

0 upgraded, 0 newly installed, 1 to remove and 24 not upgraded.

After this operation, 1.263 MB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 310251 files and directories currently installed.)

Removing wps-office (11.1.0.9719.XA) ...

Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...

Rebuilding /usr/share/applications/bamf-2.index...

Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...

Processing triggers for mime-support (3.64ubuntu1) ...

Processing triggers for hicolor-icon-theme (0.17-2) ...

Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...

Processing triggers for shared-mime-info (1.15-1) ...

Processing triggers for fontconfig (2.13.1-2ubuntu3) ...

Thursday, 10 December 2020

Installl WPS fonts

 $ cd Downloads

dhwan@dhwan-Aspire-A514:~/Downloads$ git clone https://github.com/udoyen/wps-fonts.git

Cloning into 'wps-fonts'...

remote: Enumerating objects: 10, done.

remote: Total 10 (delta 0), reused 0 (delta 0), pack-reused 10

Unpacking objects: 100% (10/10), 252.16 KiB | 243.00 KiB/s, done.

dhwan@dhwan-Aspire-A514:~/Downloads$ cd


copy folder wps font to home > .fonts

dhwan@dhwan-Aspire-A514:~$ sudo fc-cache -vfs

[sudo] password for dhwan: 

/usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs

/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 4 dirs

/usr/share/fonts/X11/Type1: caching, new cache contents: 8 fonts, 0 dirs

/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs

/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs

/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs

/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/opentype: caching, new cache contents: 0 fonts, 3 dirs

/usr/share/fonts/opentype/malayalam: caching, new cache contents: 7 fonts, 0 dirs

/usr/share/fonts/opentype/noto: caching, new cache contents: 28 fonts, 0 dirs

/usr/share/fonts/opentype/urw-base35: caching, new cache contents: 35 fonts, 0 dirs

/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 52 dirs

/usr/share/fonts/truetype/Gargi: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/Gubbi: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/Nakula: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/Navilu: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/Sahadeva: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/Sarai: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/abyssinica: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/arphic: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/fonts/truetype/crosextra: caching, new cache contents: 4 fonts, 0 dirs

/usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0 dirs

/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/encode-sans: caching, new cache contents: 9 fonts, 0 dirs

/usr/share/fonts/truetype/existence: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-beng-extra: caching, new cache contents: 6 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-deva-extra: caching, new cache contents: 3 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-gujr-extra: caching, new cache contents: 5 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-guru-extra: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-kalapi: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-orya-extra: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-telu-extra: caching, new cache contents: 2 fonts, 0 dirs

/usr/share/fonts/truetype/fonts-yrsa-rasa: caching, new cache contents: 10 fonts, 0 dirs

/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts, 0 dirs

/usr/share/fonts/truetype/kacst: caching, new cache contents: 15 fonts, 0 dirs

/usr/share/fonts/truetype/kacst-one: caching, new cache contents: 2 fonts, 0 dirs

/usr/share/fonts/truetype/lao: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/liberation: caching, new cache contents: 16 fonts, 0 dirs

/usr/share/fonts/truetype/liberation2: caching, new cache contents: 12 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-assamese: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-bengali: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-devanagari: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-gujarati: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-kannada: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-malayalam: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-oriya: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-punjabi: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-tamil: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-tamil-classical: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/lohit-telugu: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/malayalam: caching, new cache contents: 10 fonts, 0 dirs

/usr/share/fonts/truetype/mplus-1c: caching, new cache contents: 7 fonts, 0 dirs

/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs

/usr/share/fonts/truetype/noto: caching, new cache contents: 2 fonts, 0 dirs

/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/padauk: caching, new cache contents: 4 fonts, 0 dirs

/usr/share/fonts/truetype/pagul: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/samyak: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/samyak-fonts: caching, new cache contents: 3 fonts, 0 dirs

/usr/share/fonts/truetype/sinhala: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/tibetan-machine: caching, new cache contents: 1 fonts, 0 dirs

/usr/share/fonts/truetype/tlwg: caching, new cache contents: 58 fonts, 0 dirs

/usr/share/fonts/truetype/ttf-khmeros-core: caching, new cache contents: 2 fonts, 0 dirs

/usr/share/fonts/truetype/ubuntu: caching, new cache contents: 14 fonts, 0 dirs

/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 1 dirs

/usr/share/fonts/type1/urw-base35: caching, new cache contents: 35 fonts, 0 dirs

/usr/share/fonts/wps-office: caching, new cache contents: 1 fonts, 0 dirs

/usr/local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs

/usr/share/texmf/fonts/opentype/public/tex-gyre: caching, new cache contents: 33 fonts, 0 dirs

/usr/share/texmf/fonts/opentype/public/tex-gyre-math: caching, new cache contents: 5 fonts, 0 dirs

/usr/share/fonts/X11: skipping, looped directory detected

/usr/share/fonts/cMap: skipping, looped directory detected

/usr/share/fonts/cmap: skipping, looped directory detected

/usr/share/fonts/opentype: skipping, looped directory detected

/usr/share/fonts/truetype: skipping, looped directory detected

/usr/share/fonts/type1: skipping, looped directory detected

/usr/share/fonts/wps-office: skipping, looped directory detected

/usr/share/fonts/X11/Type1: skipping, looped directory detected

/usr/share/fonts/X11/encodings: skipping, looped directory detected

/usr/share/fonts/X11/misc: skipping, looped directory detected

/usr/share/fonts/X11/util: skipping, looped directory detected

/usr/share/fonts/cmap/adobe-cns1: skipping, looped directory detected

/usr/share/fonts/cmap/adobe-gb1: skipping, looped directory detected

/usr/share/fonts/cmap/adobe-japan1: skipping, looped directory detected

/usr/share/fonts/cmap/adobe-japan2: skipping, looped directory detected

/usr/share/fonts/cmap/adobe-korea1: skipping, looped directory detected

/usr/share/fonts/opentype/malayalam: skipping, looped directory detected

/usr/share/fonts/opentype/noto: skipping, looped directory detected

/usr/share/fonts/opentype/urw-base35: skipping, looped directory detected

/usr/share/fonts/truetype/Gargi: skipping, looped directory detected

/usr/share/fonts/truetype/Gubbi: skipping, looped directory detected

/usr/share/fonts/truetype/Nakula: skipping, looped directory detected

/usr/share/fonts/truetype/Navilu: skipping, looped directory detected

/usr/share/fonts/truetype/Sahadeva: skipping, looped directory detected

/usr/share/fonts/truetype/Sarai: skipping, looped directory detected

/usr/share/fonts/truetype/abyssinica: skipping, looped directory detected

/usr/share/fonts/truetype/arphic: skipping, looped directory detected

/usr/share/fonts/truetype/crosextra: skipping, looped directory detected

/usr/share/fonts/truetype/dejavu: skipping, looped directory detected

/usr/share/fonts/truetype/droid: skipping, looped directory detected

/usr/share/fonts/truetype/encode-sans: skipping, looped directory detected

/usr/share/fonts/truetype/existence: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-beng-extra: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-deva-extra: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-gujr-extra: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-guru-extra: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-kalapi: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-orya-extra: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-telu-extra: skipping, looped directory detected

/usr/share/fonts/truetype/fonts-yrsa-rasa: skipping, looped directory detected

/usr/share/fonts/truetype/freefont: skipping, looped directory detected

/usr/share/fonts/truetype/kacst: skipping, looped directory detected

/usr/share/fonts/truetype/kacst-one: skipping, looped directory detected

/usr/share/fonts/truetype/lao: skipping, looped directory detected

/usr/share/fonts/truetype/liberation: skipping, looped directory detected

/usr/share/fonts/truetype/liberation2: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-assamese: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-bengali: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-devanagari: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-gujarati: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-kannada: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-malayalam: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-oriya: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-punjabi: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-tamil: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-tamil-classical: skipping, looped directory detected

/usr/share/fonts/truetype/lohit-telugu: skipping, looped directory detected

/usr/share/fonts/truetype/malayalam: skipping, looped directory detected

/usr/share/fonts/truetype/mplus-1c: skipping, looped directory detected

/usr/share/fonts/truetype/msttcorefonts: skipping, looped directory detected

/usr/share/fonts/truetype/noto: skipping, looped directory detected

/usr/share/fonts/truetype/openoffice: skipping, looped directory detected

/usr/share/fonts/truetype/padauk: skipping, looped directory detected

/usr/share/fonts/truetype/pagul: skipping, looped directory detected

/usr/share/fonts/truetype/samyak: skipping, looped directory detected

/usr/share/fonts/truetype/samyak-fonts: skipping, looped directory detected

/usr/share/fonts/truetype/sinhala: skipping, looped directory detected

/usr/share/fonts/truetype/tibetan-machine: skipping, looped directory detected

/usr/share/fonts/truetype/tlwg: skipping, looped directory detected

/usr/share/fonts/truetype/ttf-khmeros-core: skipping, looped directory detected

/usr/share/fonts/truetype/ubuntu: skipping, looped directory detected

/usr/share/fonts/type1/urw-base35: skipping, looped directory detected

/usr/share/fonts/X11/encodings/large: skipping, looped directory detected

/var/cache/fontconfig: cleaning cache directory

fc-cache: succeeded


Wednesday, 26 August 2020

Fix Permission Denied WPS Office 2019 Snap

 $ snap connections

cek snap permission denied
 

$ snap connections wps-2019-snap

 
$ sudo snap connect wps-2019-snap:removable-media

 

Setelah menghubungkan wps-2019-snap dengan removable-media, maka wps-2019-snap ini sudah bisa membaca file pada NTFS drive

Tuesday, 28 July 2020

Uninstall WPS Office yang dari Snap

Sekarang saya mau uninstall wps office versi snap di UbuntuDDE. Sebagian masih beranggapan snap memperlambat booting. Benarkah? Entahlah. WPS Office versi snap saya hapus karena sudah mendownload wps Office dengan package file deb di https://linux.wps.com/. WPS Office snap adalah versi 10, sedangkan WPS Office versi deb sudah versi 11. Jadi secara aplikasi versi deb lebih terbaru daripada versi snap; harapan fiturnya lebih baik, akan tetapi semoga tidak lemot. haha

wps office


$ snap list
Name        Version      Rev   Tracking       Publisher   Notes
core        16-2.45.2    9665  latest/stable  canonical✓  core
wps-office  10.1.0.6757  1     latest/stable  liuyang8    -

:~$ sudo snap remove wps-office
[sudo] password for user:
wps-office removed

:~$ sudo snap remove core
error: cannot remove "core": snap "core" is not removable: snap is used by the model

:~$ snap list
Name  Version    Rev   Tracking       Publisher   Notes
core  16-2.45.2  9665  latest/stable  canonical✓  core

:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             1910036       0   1910036   0% /dev
tmpfs             391156    3116    388040   1% /run
/dev/sda4       32744216 9591216  21466628  31% /
tmpfs            1955768   33328   1922440   2% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs            1955768       0   1955768   0% /sys/fs/cgroup
/dev/loop1         99328   99328         0 100% /snap/core/9665
/dev/sda9       70030560 1419152  65011024   3% /home
/dev/sda1          98304   67632     30672  69% /boot/efi
tmpfs             391152      16    391136   1% /run/user/1000

:~$ sudo umount /snap/core/9665
umount: /snap/core/9665: target is busy.

:~$ sudo umount /snap/core/9665
umount: /snap/core/9665: target is busy.

:~$ sudo apt purge snapd
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  gnome-software-plugin-snap* snapd*
0 upgraded, 0 newly installed, 2 to remove and 9 not upgraded.
After this operation, 120 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 303234 files and directories currently installed.)
Removing gnome-software-plugin-snap (3.36.1-0ubuntu0.20.04.0) ...
Removing snapd (2.45.1+20.04.2) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
(Reading database ... 303156 files and directories currently installed.)
Purging configuration files for snapd (2.45.1+20.04.2) ...
Stopping snap-core-9665.mount
Stopping unit snap-core-9665.mount
Waiting until unit snap-core-9665.mount is stopped [attempt 1]
snap-core-9665.mount is stopped.
Removing snap core and revision 9665
Removing snap-core-9665.mount
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state

:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             1910036       0   1910036   0% /dev
tmpfs             391156    3136    388020   1% /run
/dev/sda4       32744216 9125976  21931868  30% /
tmpfs            1955768   32132   1923636   2% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs            1955768       0   1955768   0% /sys/fs/cgroup
/dev/sda9       70030560 1419396  65010780   3% /home
/dev/sda1          98304   67632     30672  69% /boot/efi
tmpfs             391152      16    391136   1% /run/user/1000

:~$ rm -rf ~/snap
:~$ sudo rm -rf /snap
:~$ sudo rm -rf /var/snap
:~$ sudo rm -rf /var/lib/snapd
:~$ snap list

bash: /usr/bin/snap: No such file or directory

Saturday, 25 July 2020

Mengatasi Permission Denied WPS Office 10 di Ubuntu

Setelah menginstall snap wps, lalu mau menyimpannya di drive partisi tipe NTFS, muncul error
snap permission deny
Saya cek dengan $ snap connections wps-office

snap connection


Tampak removable-media tidak terkoneksi alias permission denied

Jalankan $ sudo snap connect wps-office:removable-media
lalu kembali $ snap connections wps-office

connected media snap


Pada removable-media sudah terhubung.

Sekarang saya sudah bisa menyimpan file wps-office pada drive NTFS



Install WPS Office dengan snap Di UbuntuDDE

udo apt install snapd && sudo snap install wps-office
[sudo] password for dhwan:
Sorry, try again.
[sudo] password for dhwan:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
snapd is already the newest version (2.45.1+20.04.2).
The following packages were automatically installed and are no longer required:
  libegl1-mesa libllvm9
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2020-07-25T18:31:55+08:00 INFO Waiting for automatic snapd restart...
Download snap "wps-office" (1) from channel "stable"             

wps-office 10.1.0.6757 from liuyang8 installed

wps office 10 di linux ubuntu