https://bugs.kde.org/show_bug.cgi?id=485133

            Bug ID: 485133
           Summary: Package xdg-tools (xdg-mime) requires qtpaths
    Classification: KDE Neon
           Product: neon
           Version: unspecified
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Packages User Edition
          Assignee: neon-b...@kde.org
          Reporter: m...@apache.org
                CC: j...@jriddell.org, neon-b...@kde.org, sit...@kde.org
  Target Milestone: ---

SUMMARY
I just installed some odd 3rd party application and the installation script
showed these errors at the end:

Use of uninitialized value $deepLink in substitution (s///) at ./install.pl
line 1087, <STDIN> line 5.
/usr/bin/xdg-mime: 856: qtpaths: not found
Use of uninitialized value $deepLink in concatenation (.) or string at
./install.pl line 1001.

I think this is a bug in xdg-mime to require that application but for now it
looks like it is the way it is and qtchooser and qt6-base-dev-tools have to be
installed for xdg-tools 1.2.1 to work properly on KDE 5 and later.

# sed -n -e '850,860p' $(which xdg-mime)
    #
    # [Removed Associations]
    # text/plain=gnome-gedit.desktop;gnu-emacs.desktop;
    vendor="$1"
    mimetype="$2"
    if [ "${KDE_SESSION_VERSION:-0}" -gt 4 ] ; then
        default_dir="$(qtpaths --writable-path ConfigLocation)"
        default_file="$default_dir/mimeapps.list"
    elif [ x"$KDE_SESSION_VERSION" = x"4" ]; then
        default_dir="$(kde4-config --path xdgdata-apps 2> /dev/null | cut -d
':' -f 1)"
        default_file="$default_dir/mimeapps.list"

STEPS TO REPRODUCE
1. Make sure neither qttools5-dev-tools nor qt6-base-dev-tools are installed
2. Download the installer tarball from
https://foto.budni.de/bestellsoftware.html?keyAccount=1773&product=391
3a. Execute the contained install.pl
3b. Or grep for the call to xdg-mime to see how it is called and execute it
manually

OBSERVED RESULT
Error message as stated above, properly part of the software is not installed
correctly

EXPECTED RESULT
No error

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.5.0-26-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: LENOVO
Product Name: 20F5S1H800
System Version: ThinkPad X260

ADDITIONAL INFORMATION
Package: xdg-utils
Version: 1.2.1-0xneon+22.04+jammy+release+build5
Priority: optional
Section: utils
Maintainer: Neon CI <n...@kde.org>
Installed-Size: 350 kB
Recommends: libfile-mimeinfo-perl, libnet-dbus-perl, libx11-protocol-perl,
x11-utils, x11-xserver-utils
Homepage: https://www.freedesktop.org/wiki/Software/xdg-utils/
Download-Size: 69,7 kB
APT-Manual-Installed: no
APT-Sources: http://archive.neon.kde.org/user jammy/main amd64 Packages
Description: desktop integration utilities from freedesktop.org

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to