Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600420 - media-sound/cantata-2.0.1-r1: systray icon does not react on mouse3/mousewheel events
Summary: media-sound/cantata-2.0.1-r1: systray icon does not react on mouse3/mousewhee...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 17:28 UTC by anatol.rosch
Modified: 2016-12-05 08:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anatol.rosch 2016-11-21 17:28:17 UTC
> media-sound/cantata: Drop USE=kde,qt5 and simplify ebuild
> Andreas Sturmlechner, Sun, 23 Oct 2016 00:09, commit 54401847 

Cantata's tray integration fails with the default USE flags on this ebuild, and no way to repair. The tray icon appears, but ignores mouse3 and wheel actions. I use the standard stable KDE setup, built according to https://wiki.gentoo.org/wiki/KDE/Plasma_5_upgrade .

The fix is to disable qt5 support and use the kde flag instead: +kde -qt5

The new ebuild renders the fix impossible. 

I came across the tray icon issue and solution on Gentoo forums, so i'm not the only one experiencing it; unfortunately i can't locate the thread.

On an unrelated note, i have the Oxygen icon theme enabled; -kde +qt5 (default) displays the correct Oxygen icon, +kde -qt5 ignores the Oxygen theme and displays Breeze-style icon for cantata. Doesn't break anything, just something potentially related. Every other kde4 app also ignores Oxygen icons in tray, so the behaviour is probably consistent. 



Broken build:

[ebuild     U ~] media-sound/cantata-2.0.1-r1::gentoo [2.0.1::gentoo] USE="cdda cddb mtp taglib udisks -http-server -musicbrainz -replaygain (-kde%*) (-qt5%)" LINGUAS="ru -cs -de -en_GB -es -fr -hu -ko -pl -zh_CN" 0 KiB



Working build:

[ebuild   R   ~] media-sound/cantata-2.0.1::gentoo  USE="cdda cddb kde mtp taglib udisks -http-server -musicbrainz -qt5 -replaygain" LINGUAS="ru -cs -de -en_GB -es -fr -hu -ko -pl -zh_CN" 0 KiB



package.use:

media-sound/cantata taglib cdda cddb -qt5 kde mtp

QT 5.6.1:5/5.6, Plasma 5.7.5:5. 

Reproducible: Always

Steps to Reproduce:
1. build the new ebuild 
2. run cantata in plasma
3. attempt using mouse3 or scroll wheel actions on the tray icon
Actual Results:  
no response to mouse3 or scroll wheel actions on the tray icon

Expected Results:  
toggle pause on mouse3, change volume on scroll wheel actions on the tray icon

# emerge --info
Portage 2.3.0 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.4.26-gentoodiamond x86_64)
=================================================================
System uname: Linux-4.4.26-gentoodiamond-x86_64-Intel-R-_Celeron-R-_CPU_G540_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7893892 total,   1304476 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 10 Nov 2016 12:15:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Q3AEULA dlj-1.1 skype-eula PUEL AdobeFlash-10.3 Oracle-BCLA-JavaSE AdobeFlash-11.x google-chrome skype-4.0.0.7-copyright LOKI-EULA TeamViewer OPERA-2014 DOOM3"                                                                                                                                    
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                  
CFLAGS="-mtune=generic -O2 -pipe"                                                                                                                             
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ ftp://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apm bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gdbm gif glamor gnutls gpm iconv jpeg kde kipi lame lcms ldap libcaca libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcntl pcre pdf phonon plasma png policykit posix ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session slang spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb videos vorbis widgets wifi win32codecs wxwidgets x264 xattr xcb xcomposite xinerama xinetd xml xscreensaver xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64 coreboot" INPUT_DEVICES="synaptics evdev" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia intel i915 i965 vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Andreas Sturmlechner gentoo-dev 2016-11-21 17:46:11 UTC
What are these actions supposed to do? Due to the different codepaths it is entirely possible that those features are simply not available yet with Qt5. Maybe there is an upstream bug tracker already?

2.0.1-r1 does not enable any kind of integration by default, it is building completely with Qt5 instead of Qt4, and that likely isn't going to change.
Comment 2 anatol.rosch 2016-11-21 18:01:47 UTC
(In reply to Andreas Sturmlechner from comment #1)
> What are these actions supposed to do? Due to the different codepaths it is
> entirely possible that those features are simply not available yet with Qt5.
> Maybe there is an upstream bug tracker already?
> 
> 2.0.1-r1 does not enable any kind of integration by default, it is building
> completely with Qt5 instead of Qt4, and that likely isn't going to change.

They are default tray icon actions for any media player. mouse3 toggles pause, scroll controls volume. Play/pause and volume controls are obviously a key feature. If they're not yet implemented for the qt5 build, perhaps cantata is not ready to be built against qt5? After all, this used to work for years.

I didn't find any upstream bugs for this, most are about missing tray icons. In my case, the icon is present, shows the context menu (and it works), MPRIS and notifications are all working, just not the direct mouse3/scroll actions on icon.
Comment 3 Andreas Sturmlechner gentoo-dev 2016-11-21 18:11:16 UTC
Then it should be filed upstream. There certainly is no reason for that not to work coming from Qt5, as the MPRIS widget and my kmix systray icon accept mouse wheel events just fine. cantata-2.1.0 is expected this month.

If it is a dealbreaker for you, there is still 2.0.1(-r0) in tree.
Comment 4 Andreas Sturmlechner gentoo-dev 2016-11-21 18:17:39 UTC
(In reply to anatol.rosch from comment #2)
> If they're not yet implemented for the qt5 build, perhaps
> cantata is not ready to be built against qt5?

Please note that Qt5 build is the upstream default.
Comment 5 Johannes Huber (RETIRED) gentoo-dev 2016-12-05 08:00:16 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Then it should be filed upstream. There certainly is no reason for that not
> to work coming from Qt5, as the MPRIS widget and my kmix systray icon accept
> mouse wheel events just fine. cantata-2.1.0 is expected this month.
> 
> If it is a dealbreaker for you, there is still 2.0.1(-r0) in tree.

Please report the issue upstream. If it turns out to be a packaging bug re-open this is bug.