meganz / MEGAsync

Easy automated syncing between your computers and your MEGA Cloud Drive
Other
1.63k stars 281 forks source link

megasync 3.5 don't use icon theme in tray in XFCE(Arch Linux) #149

Closed hxss closed 6 years ago

hxss commented 6 years ago

image

4.13.12-1-ARCH XFCE 4.12 megasync 3.5-1(from official site) Papirus-icons(updated, with new mega icons - megapaused.svg, megasynching.svg, etc)

other qt5-apps(keepassxc, qbittorrent on the screenshot) work good with icons theme.

pactree -d 1 megasync
megasync
├─glibc
├─gcc-libs
├─qt5-base
├─sqlite
├─openssl
├─zlib
└─qt5-svg
pactree -d 1 qbittorrent
qbittorrent
├─libtorrent-rasterbar
├─qt5-svg
└─hicolor-icon-theme
pactree -d 1 keepassxc
keepassxc
├─hicolor-icon-theme
├─libxtst
├─qt5-x11extras
└─yubikey-personalization

Also you can see my issue to papirus-icon-theme project.

hxss commented 6 years ago

In my system mega even don't use its own icons.

I was try(and here) replace icons in /usr/share/icons/hicolor/scalable/status with icons from theme, but this action had no effect.

polmr commented 6 years ago

gtk-update-icon-cache requires the folder to have a different modification time. do a

touch /usr/share/icons/hicolor

before updating the cache. And try again please.

hxss commented 6 years ago

@polmr nothing changed

# ls -l /usr/share/icons/hicolor/scalable/status/mega*
lrwxrwxrwx 1 root root 52 Dec  3 18:27 /usr/share/icons/hicolor/scalable/status/megalogging.svg -> /usr/share/icons/Papirus/22x22/panel/megalogging.svg
lrwxrwxrwx 1 root root 51 Dec  3 18:27 /usr/share/icons/hicolor/scalable/status/megapaused.svg -> /usr/share/icons/Papirus/22x22/panel/megapaused.svg
lrwxrwxrwx 1 root root 53 Dec  3 18:27 /usr/share/icons/hicolor/scalable/status/megasynching.svg -> /usr/share/icons/Papirus/22x22/panel/megasynching.svg
lrwxrwxrwx 1 root root 53 Dec  3 18:27 /usr/share/icons/hicolor/scalable/status/megauptodate.svg -> /usr/share/icons/Papirus/22x22/panel/megauptodate.svg
lrwxrwxrwx 1 root root 52 Dec  3 18:27 /usr/share/icons/hicolor/scalable/status/megawarning.svg -> /usr/share/icons/Papirus/22x22/panel/megawarning.svg

# ls -ld /usr/share/icons/hicolor
drwxr-xr-x 18 root root 4096 Dec 21 23:14 /usr/share/icons/hicolor

# sudo gtk-update-icon-cache /usr/share/icons/hicolor
gtk-update-icon-cache: Cache file created successfully.
polmr commented 6 years ago

ok, that means that it's not getting the icons from the theme at all. In case of failure, MEGAsync uses hardcoded icons (the old red ones). hicolor should be the fallback theme: maybe in your particular case that's not happening. What theme are you using?:

gsettings get org.gnome.desktop.interface icon-theme
hxss commented 6 years ago

Em..Actually I'm on XFCE(I use Papirus icon theme)

# gsettings get org.gnome.desktop.interface icon-theme 
'Adwaita'
# xfconf-query -c xsettings -p /Net/IconThemeName
Papirus

I tried just now change org.gnome.desktop.interface.icon-theme to Papirus, logout-login - nothing changed.

polmr commented 6 years ago

Do you have qt5-svg package intalled? I'm afraid I can't reproduce it: here's an screenshot with Papirus and its customized MEGAsync icon screenshot_archlinux-papirus_2017-12-22_12 45 15

hxss commented 6 years ago

Yes, qt5-svg installed. And qt5ct too.

# pac -Qs qt5
local/qt5-base 5.10.0-1 (qt qt5)
    A cross-platform application and UI framework
local/qt5-styleplugins 5.0.0.20170311-4
    Additional style plugins for Qt5
local/qt5-svg 5.10.0-1 (qt qt5)
    Classes for displaying the contents of SVG files
local/qt5-tools 5.10.0-1 (qt qt5)
    A cross-platform application and UI framework (Development Tools, QtHelp)
local/qt5-x11extras 5.10.0-1 (qt qt5)
    Provides platform-specific APIs for X11
local/qt5ct 0.34-2
    Qt5 Configuration Utility

You test it on Arch Linux?

polmr commented 6 years ago

Yes, that screenshot is from an up-to-date Arch Linux

polmr commented 6 years ago

maybe you can try to replace the icons by some test .png manually created. Just to ensure the themes are working properly. If that's the case, you can always save the files as pngs.

hxss commented 6 years ago

Its very strange. I just installed clear arch in VBox. Installed xfce4, papirus-icon-theme-git and megasync client from official site. Here is the result: virtualbox_arch_26_12_2017_02_25_26 @polmr, can I share this vm to you for test?

polmr commented 6 years ago

@hxss yes, please

hxss commented 6 years ago

@polmr https://mega.nz/#F!pYMlST7Z!ebuwkmUfWjX4mqcn6dQiSA user: hxss pass: 123

varlesh commented 6 years ago

It's bug for only Qt5-version (tray icons not applied from system icon theme). Qt4-version worked fine. Also Qt5-version have problem with rendering backround: https://github.com/meganz/MEGAsync/issues/157

Qt4-version: image

polmr commented 6 years ago

@hxss , "No bootable medium file". Can you create an VDI image out of it?

hxss commented 6 years ago

Do you use this settings? screenshot from 2017-12-29 16-05-15 screenshot from 2017-12-29 16-08-51

hxss commented 6 years ago

Maybe path of arch.vhd is incorrect in your system and you need to change it in arch.vbox file?

hxss commented 6 years ago

I was create arch.vdi in main directory. (uploading now) But I think, the problem is due to paths to vhd's in arch.vbox

hxss commented 6 years ago

Also you can create vdi yourself vboxmanage clonemedium disk /[path to]/arch/Snapshots/{04e40791-2e50-4489-b0bb-defe3b448787}.vhd arch.vdi

polmr commented 6 years ago

No luck: I've tried opening the vbox, importing the vhd into a new VM, saving to vdi and importing the vdi image in VirtualBox, converting the vhd and the vdi to qemu image (qcow2) and opening in QEMU/KVM, ... btw, your .vdi is not an actual .vdi (you were missing --format VDI parameters).

hxss commented 6 years ago

Why don't you just use my VM(with my vhds)? In vbox menu Machine - Add(Ctrl+a). And select arch.vbox file in my folder.

hxss commented 6 years ago

And don't forget to use EFI. If I disable EFI, I'll catch this error too. screenshot from 2017-12-29 20-02-52

polmr commented 6 years ago

I´ve finally been able to open the VM in a windows host virtualbox_arch_02_01_2018_10_40_01 MEGAsync uses icons in "hicolor" after linking them Papyrus ones . They work fine.

hxss commented 6 years ago

Thank you for helping. Seems like I found source of my problem. untitled

In my host installed and enabled qt5ct for all qt5 apps. So when I run megasync by this command QT_QPA_PLATFORMTHEME=''; megasync - it use Papyrus icons.

polmr commented 6 years ago

Glad to hear that @hxss!