Summary: | net-p2p/qbittorrent[webui] w/ >=dev-qt/qtcore-5.15.2-r10: Web UI offers to download html file instead of opening it | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sylvia <fierevere> |
Component: | Current packages | Assignee: | Mikle Kolyada (RETIRED) <zlogene> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | qt, sam, slashbeast |
Priority: | Normal | Keywords: | UPSTREAM |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | https://github.com/qbittorrent/qBittorrent/issues/15316 | ||
See Also: |
https://github.com/qbittorrent/qBittorrent/issues/15218#issuecomment-890413427 https://invent.kde.org/qt/qt/qtbase/-/merge_requests/32 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sylvia
2021-08-27 18:29:35 UTC
This error still persists, despite qt 5.15.2-r10 has been stabilized. when started with: export LD_LIBRARY_PATH=/usr/local/lib/qt5:${LD_LIBRARY_PATH} export LD_PRELOAD="/usr/local/lib/qt5/libQt5Core.so.5.15.2 /usr/local/lib/qt5/libQt5Network.so.5.15.2 /usr/local/lib/qt5/libQt5Xml.so.5.15.2" qbittorrent-nox it works properly, where libraries in /usr/local/lib/qt5/ are from previous build qtcore-5.15.2-r3 qtnetwork-5.15.2-r2 qtxml-5.15.2-r1 (In reply to Sylvia from comment #1) > This error still persists, despite qt 5.15.2-r10 has been stabilized. This seems slightly snarky but we are allowed to miss bugs, especially if we’re not maintaining something. What version of qbittorrent? Can you try the latest in tree (~arch)? Can we have emerge —-info? (In reply to Sam James from comment #3) > What version of qbittorrent? Can you try the latest in tree (~arch)? Can we > have emerge —-info? It is latest. # emerge --info qbittorrent Portage 3.0.20 (python 3.8.12-final-0, default/linux/x86/17.0, gcc-9.4.0, glibc-2.32-r8, 5.10.68-MIRIANA x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.10.68-MIRIANA-x86_64-Intel-R-_Celeron-R-_CPU_J1900_@_1.99GHz-with-glibc2.0 KiB Mem: 8009376 total, 751108 free KiB Swap: 4194296 total, 4190712 free Timestamp of repository gentoo: Fri, 01 Oct 2021 18:00:02 +0000 Head commit of repository gentoo: 6f4bc283efb20a1f4b227a8f00976f2cec443d62 sh sh ld GNU ld (GNU Binutils) 2.34 ccache version 3.2.4 [disabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 2.7.18-r4::gentoo, 3.7.10_p3::gentoo, 3.8.12::gentoo, 3.9.6_p2::gentoo dev-lang/rust-bin: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.43.5::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.40::x-portage sys-devel/gcc: 8.3.0-r1::gentoo, 9.2.0-r2::gentoo, 9.3.0-r2::gentoo, 10.3.0-r2::gentoo sys-devel/gcc-config: 3.9.9::x-portage sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r8::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://10.100.100.101/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: no x-portage location: /usr/local/portage masters: gentoo priority: 0 Installed sets: @kernel ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -m32 -mfpmath=sse -mmmx -fomit-frame-pointer -g0 -march=silvermont -mcx16 -msahf -mno-movbe -mfxsr -msse4 --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=1024 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh" 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" CXX="g++" CXXFLAGS="-O2 -fomit-frame-pointer -m32 -mfpmath=sse -mmmx -fomit-frame-pointer -g0 -march=silvermont -mcx16 -msahf -mno-movbe -mfxsr -msse4 --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=1024" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.netcologne.de/gentoo/" LDFLAGS="-Wl,-s -s -Wl,-O1" LINGUAS="en ru" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_BINHOST="http://darkness.wire:1616/" PORTAGE_BUNZIP2_COMMAND="lbunzip2 -v -n4" PORTAGE_BZIP2_COMMAND="lbzip2 -v -n4" PORTAGE_COMPRESS="lzma" PORTAGE_COMPRESS_FLAGS="-9e" 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="acl acpi alsa bzip2 cli crypt curl dri elogind exif expat ftp gdbm gif gmp gnutls gpm gzip iconv idn ipv6 jpeg lame libglvnd libtirpc lm-sensors lm_sensors lzma lzo mmap mmx mmxext mng mp3 ncurses nls nptl ogg openmp oss pam pcre png pulseaudio readline seccomp split-usr sql sqlite3 sse sse2 sse3 ssl svg tcpd theora truetype unicode usb vaapi vorbis wifi x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_7 python3_8" RUBY_TARGETS="ruby26" SANE_BACKENDS="canon epson epson2 fujitsu genesys hp net pixma pnm xerox_mfp" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS ================================================================= Package Settings ================================================================= net-p2p/qbittorrent-4.3.8::gentoo was built with the following: USE="webui -X -dbus -debug" (In reply to Andreas Sturmlechner from comment #4) > See also: https://bbs.archlinux.org/viewtopic.php?id=267553 thanks for confirming and finding a clue at archlinux forum, I ve tried their test program, however, as i mentioned above running update-mime-database does not help $ /tmp/qt5mimetest QMimeType("application/x-extension-html") $ update-mime-database ~/.local/share/mime $ /tmp/qt5mimetest QMimeType("application/x-extension-html") with older qt5 builds: $ export LD_PRELOAD="/usr/local/lib/qt5/libQt5Core.so.5.15.2 /usr/local/lib/qt5/libQt5Network.so.5.15.2 /usr/local/lib/qt5/libQt5Xml.so.5.15.2" $ /tmp/qt5mimetest QMimeType("text/html") full cleanup of ~/.local/share/mime solved the problem, however, it should be done by hand, update-mime-database doesnt fix it. This still persists and is really nasty as the solution is not very obvious. THe linked bug and comment that asturm added to this bug indicate that it's not qbittorrent problem but end-user local configuration that leads to qt doing what it is doing here. There's no action for us here. Hey there, I encountered a similar issue with qbittorrent's web UI offering to download HTML files instead of opening them after updating the dev-qt libraries to 5.15.2-r10. It's a perplexing problem indeed. Based on my experience and knowledge in this domain, it seems that the issue lies with the MIME type configuration. When you update the Qt libraries, it might affect how MIME types are handled. Like here: https://andersenlab.com/services/progressive-web-app-development A potential solution could be to manually configure the MIME types associated with HTML files. You can do this by checking your system's MIME database and ensuring that ".html" and ".htm" files are correctly associated with a web browser. You can use the xdg-mime tool to manage MIME types on many Linux systems. Try running this command: 'xdg-mime default <browser.desktop> text/html Replace <browser.desktop> with the .desktop file of your preferred web browser, like "firefox.desktop" or "chrome.desktop."' This should tell the system to open HTML files with your web browser instead of prompting a download. Remember to restart your session or clear your browser's cache for changes to take effect. |