Results 1 to 2 of 2

Thread: 7.4.2 - KDE brain damage fixes - ep.2 - file size in Konqueror, say what??

Hybrid View

  1. #1
    Member registered user
    Join Date
    Oct 2004
    Posts
    32
    In the meantime I noticed the patch I posted doesn't take care of the status bar info.
    So I'm attaching here a revised patch that does that too.
    Also, here's a script that takes care of everything.
    Just execute this script in an empty dir with the patch saved beside it (and don't forget about "apt-get update" first).

    For those who got here googling around: this patch provides (enforces) the display of all file sizes in bytes (only) in konqueror and dolphin 4.8.4-2.
    It is applicable to kde-baseapps_4.8.4-2.debian.tar.gz from Debian. It is intended only for those who happen to prefer it this way.

    Code:
    #!/bin/sh
    
    #### RUN THIS SCRIPT AS ROOT ####
    
    # dolphin/src/kitemviews/kfileitemlistwidget.cpp    # this only takes care of the file list
    #-255:            text = KGlobal::locale()->formatByteSize(size);
    #+255:          text = i18n("%1 Bytes", QString::number(size) );
    
    # dolphin/src/views/dolphinview.cpp                 # this takes care of the status bar too
    #-536          KGlobal::locale()->formatByteSize(totalFileSize));
    #+536          i18n("%1 Bytes", QString::number(totalFileSize)));
    #-540          KGlobal::locale()->formatByteSize(totalFileSize));
    #+540          i18n("%1 Bytes", QString::number(totalFileSize)));
    
    mkdir deb
    cd deb
    wget http://snapshot.debian.org/archive/debian/20140906T041608Z/pool/main/e/exiv2/libexiv2-13_0.24-4_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140906T162502Z/pool/main/s/strigi/libstreamanalyzer0_0.7.8-1.2+b2_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140906T162502Z/pool/main/s/strigi/libstreamanalyzer-dev_0.7.8-1.2+b2_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140906T162502Z/pool/main/s/strigi/libstreams0_0.7.8-1.2+b2_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140906T162502Z/pool/main/s/strigi/libstreams-dev_0.7.8-1.2+b2_i386.deb
    cd ..
    mkdir kdelibs-deps
    cd kdelibs-deps
    wget http://snapshot.debian.org/archive/debian/20140725T162421Z/pool/main/k/kde4libs/kdelibs5-dev_4.13.3-2_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140725T162421Z/pool/main/k/kde4libs/libkimproxy4_4.13.3-2_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140725T162421Z/pool/main/k/kde4libs/libkutils4_4.13.3-2_i386.deb
    wget http://snapshot.debian.org/archive/debian/20140706T163150Z/pool/main/s/soprano/libsoprano-dev_2.9.4+dfsg-1.1_i386.deb
    cd ..
    
    wget http://snapshot.debian.org/archive/debian/20121020T032134Z/pool/main/k/kde-baseapps/kde-baseapps_4.8.4-2.debian.tar.gz
    wget http://snapshot.debian.org/archive/debian/20121020T032134Z/pool/main/k/kde-baseapps/kde-baseapps_4.8.4-2.dsc
    wget http://snapshot.debian.org/archive/debian/20120609T214937Z/pool/main/k/kde-baseapps/kde-baseapps_4.8.4.orig.tar.xz
    
    echo -e "\n\n-------- installing kde-sc-dev-latest -----------------\n"
    apt-get -y install kde-sc-dev-latest         # kde-sc-dev-latest_4%3a4.8.4+5.77+deb7u1_all.deb
    echo -e "\n\n-------- installing libdlrestrictions-dev -------------\n"
    apt-get -y install libdlrestrictions-dev     # libdlrestrictions-dev_0.15.3_i386.deb
    echo -e "\n\n-------- installing libphonon-dev ---------------------\n"
    apt-get -y install libphonon-dev             # libphonon-dev_4%3a4.6.0.0-3_i386.deb
    echo -e "\n\n-------- installing libqimageblitz-dev ----------------\n"
    apt-get -y install libqimageblitz-dev        # libqimageblitz-dev_1%3a0.0.6-4_i386.deb
    echo -e "\n\n-------- installing libxkbfile-dev --------------------\n"
    apt-get -y install libxkbfile-dev            # libxkbfile-dev_1%3a1.0.8-1_i386.deb
    echo -e "\n\n-------- installing libstreams0 -----------------------\n"
    dpkg -i deb/libstreams0_0.7.8-1.2+b2_i386.deb
    echo -e "\n\n-------- installing libexiv2-13 -----------------------\n"
    dpkg -i deb/libexiv2-13_0.24-4_i386.deb
    echo -e "\n\n-------- installing libstreamanalyzer0 ----------------\n"
    dpkg -i deb/libstreamanalyzer0_0.7.8-1.2+b2_i386.deb
    echo -e "\n\n-------- installing libstreams-dev --------------------\n"
    dpkg -i deb/libstreams-dev_0.7.8-1.2+b2_i386.deb
    echo -e "\n\n-------- installing libstreamanalyzer-dev -------------\n"
    dpkg -i deb/libstreamanalyzer-dev_0.7.8-1.2+b2_i386.deb
    echo -e "\n\n-------- installing shared-desktop-ontologies ---------\n"
    apt-get -y install shared-desktop-ontologies    # shared-desktop-ontologies_0.10.0-1_all.deb
    echo -e "\n\n-------- installing libtidy-dev -----------------------\n"
    apt-get -y install libtidy-dev                  # libtidy-dev_20091223cvs-1.2_i386.deb
    echo -e "\n\n-------- installing libsoprano-dev --------------------\n"
    dpkg -i kdelibs-deps/libsoprano-dev_2.9.4+dfsg-1.1_i386.deb
    echo -e "\n\n-------- installing libkimproxy4 ----------------------\n"
    dpkg -i kdelibs-deps/libkimproxy4_4.13.3-2_i386.deb
    echo -e "\n\n-------- installing libkutils4 ------------------------\n"
    dpkg -i kdelibs-deps/libkutils4_4.13.3-2_i386.deb
    echo -e "\n\n-------- installing kdelibs5-dev ----------------------\n"
    dpkg -i kdelibs-deps/kdelibs5-dev_4.13.3-2_i386.deb
    
    echo -e "\n\n-------- extracting kde-baseapps_4.8.4-2 sources ---------\n"
    dpkg-source -x kde-baseapps_4.8.4-2.dsc
    
    # modify dolphin/src/kitemviews/kfileitemlistwidget.cpp as described above
    echo -e "\n\n-------- applying patch ---------\n"
    cd kde-baseapps-4.8.4
    #patch -p1 < ../konqueror_display_file_sizes_in_bytes.patch                  # this doesn't take care of the status bar message though
    patch -p1 < ../konqueror_display_file_sizes_in_bytes_incl_statusbar.patch    # this does !
    echo -e "\n\n-------- committing changes ---------\n"
    dpkg-source --commit
    echo -e "\n\n-------- rebuilding kde-baseapps_4.8.4-2 debian packages ---------\n"
    dpkg-buildpackage -us -uc             # this fails at the end like this:
    
    # make[2]: Leaving directory `/home/knoppix/Downloads/kde-baseapps-4.8.4/obj-i586-linux-gnu'
    # dh_install
    # cp: cannot stat `debian/tmp/usr/lib/libdolphinprivate.so.4.8.0': No such file or directory
    # dh_install: cp -a debian/tmp/usr/lib/libdolphinprivate.so.4.8.0 debian/dolphin//usr/lib/ returned exit code 1
    # make[1]: *** [pre_install_dh_install] Error 2
    # make[1]: Leaving directory `/home/knoppix/Downloads/kde-baseapps-4.8.4'
    # make: *** [debian/dhmk_install] Error 2
    # dpkg-buildpackage: error: debian/rules binary gave error exit status 2
    
    # but we can still accomplish the target (display file sizes in bytes) by copying
    # libdolphinprivate.so, libdolphinprivate.so.4 and libdolphinprivate.so.4.13.3 to /usr/lib/
    # (overwriting existing libdolphinprivate.so, libdolphinprivate.so.4)
    
    # all konqueror instances must be closed before this
    cp -fpv debian/tmp/usr/lib/libdolphinprivate.so.* /usr/lib/
    
    exit 0
    
    # Now open a konqueror window and check out the results
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by chris_Xnest; 01-04-2015 at 03:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT picture

5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT

$9.99



T-FORCE DELTA α RGB DDR5 16GB (2x8GB) 6000MHz DIMM Desktop Memory Kit picture

T-FORCE DELTA α RGB DDR5 16GB (2x8GB) 6000MHz DIMM Desktop Memory Kit

$225.00



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



Samsung M323R4GA3BB0-CQK 32GB PC5-38400 DDR5 Memory picture

Samsung M323R4GA3BB0-CQK 32GB PC5-38400 DDR5 Memory

$430.00



Samsung M323R4GA3BB0-CQK 32GB PC5-38400 DDR5 Memory picture

Samsung M323R4GA3BB0-CQK 32GB PC5-38400 DDR5 Memory

$430.00



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



Windows 11 Pro Install/Recovery/Repair USB Flash Drive picture

Windows 11 Pro Install/Recovery/Repair USB Flash Drive

$35.00



Micron MTA18ASF2G72XF1Z-2G9WP1ABVGD 16GB 1Rx4 NN4-2933Y DDR4 ECC NVDIMM picture

Micron MTA18ASF2G72XF1Z-2G9WP1ABVGD 16GB 1Rx4 NN4-2933Y DDR4 ECC NVDIMM

$74.50