Results 1 to 2 of 2

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

Threaded View

  1. #2
    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
  •  


WONHOX Vacuum Seal Backpack for Travel with Air Pump XX-Large, A68-beige picture

WONHOX Vacuum Seal Backpack for Travel with Air Pump XX-Large, A68-beige

$93.82



Mini Computer Vacuum Cleaner & Compressed Air Duster 14500Pa, 110000RPM, Cordles picture

Mini Computer Vacuum Cleaner & Compressed Air Duster 14500Pa, 110000RPM, Cordles

$53.99



2-in-1 Compressed Air Duster & Vacuum, Brushless Motor, 320000RPM picture

2-in-1 Compressed Air Duster & Vacuum, Brushless Motor, 320000RPM

$37.99



LEVOIT Cordless Vacuum Cleaner, Stick Vac with Tangle-Resistant Design, Up to... picture

LEVOIT Cordless Vacuum Cleaner, Stick Vac with Tangle-Resistant Design, Up to...

$162.04



Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW picture

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW

$13.89



MAYKU FormBox Desktop Vacuum Forming Machine W / Starter Kit picture

MAYKU FormBox Desktop Vacuum Forming Machine W / Starter Kit

$399.00



US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits picture

US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits

$13.89



AC Adapter For Aiper Scuba SE Cordless Robotic Above Ground Pool Vacuum Cleaner picture

AC Adapter For Aiper Scuba SE Cordless Robotic Above Ground Pool Vacuum Cleaner

$20.99



Cordless Air Duster & Vacuum Cleaner for Keyboard & PC Cleaning - 110000RPM Powe picture

Cordless Air Duster & Vacuum Cleaner for Keyboard & PC Cleaning - 110000RPM Powe

$53.99



Cordless Handheld Vacuum Cleaner Compatible with DeWalt 20V Battery picture

Cordless Handheld Vacuum Cleaner Compatible with DeWalt 20V Battery

$107.67