Announcement

Collapse
No announcement yet.

KLook with the KDE 4.8 / Kubuntu 12.04

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KLook with the KDE 4.8 / Kubuntu 12.04

    Earlier: http://www.kubuntuforums.net/showthr...-KLook-KDE-4-9


    404

    The KLook README tells:
    ...
    If you want to use KLook from Dolphin you also have to apply Dolphin patches
    that make Klook show up on pressing space.
    You can download patch for Dolphin here:
    https://abf.rosalinux.ru/projects/64...in-klook.patch
    ...
    Now the link is dead - the kdebase-4.8.1-dolphin-klook.patch added as attachment.

    ---Edit---

    Repo: https://projects.kde.org/projects/pl...ook/repository

    2012-06-04 09:52 am Sergey Borovkov Added dolphin patches to repo

    ---Edit---


    Tools

    - build-essential
    ...If you have this package installed, you only need to install whatever
    a package specifies as its build-time dependencies to build the
    package...
    - fakeroot
    ...tool for simulating superuser privileges...

    Links - how to compile/build

    - https://help.ubuntu.com/community/CompilingSoftware
    - https://help.ubuntu.com/community/CompilingEasyHowTo
    - http://www.cyberciti.biz/faq/rebuild...inary-package/


    DIY example

    The Dolphin build-dependencies:
    Code:
    sudo apt-get build-dep kde-baseapps
    Downloading the Dolphin sources:
    Code:
    sudo apt-get source kde-baseapps
    At here:
    /Dolphin$ apt-get source kde-baseapps
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    NOTICE: 'kde-baseapps' packaging is maintained in the 'Bzr' version control system at:
    https://code.launchpad.net/~kubuntu-...g/kde-baseapps
    Please use:
    bzr branch https://code.launchpad.net/~kubuntu-...g/kde-baseapps
    to retrieve the latest (possibly unreleased) updates to the package.
    Need to get 2,808 kB of source archives.
    Get:1 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu/ precise/main kde-baseapps 4:4.8.3-0ubuntu0.1~ppa1 (tar) [2,712 kB]
    Get:2 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu/ precise/main kde-baseapps 4:4.8.3-0ubuntu0.1~ppa1 (diff) [92.6 kB]
    Get:3 http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu/ precise/main kde-baseapps 4:4.8.3-0ubuntu0.1~ppa1 (dsc) [3,632 B]
    Fetched 2,808 kB in 20s (135 kB/s)
    gpgv: Signature made Wed 02 May 2012 05:11:27 PM EEST using RSA key ID 2EC0A9FF
    gpgv: Can't check signature: public key not found
    dpkg-source: warning: failed to verify signature on ./kde-baseapps_4.8.3-0ubuntu0.1~ppa1.dsc
    dpkg-source: info: extracting kde-baseapps in kde-baseapps-4.8.3
    dpkg-source: info: unpacking kde-baseapps_4.8.3.orig.tar.xz
    dpkg-source: info: unpacking kde-baseapps_4.8.3-0ubuntu0.1~ppa1.debian.tar.gz
    dpkg-source: info: applying enable_debianabimanager.diff
    dpkg-source: info: applying enable_dlrestrictions.diff
    dpkg-source: info: applying kubuntu_10_konq_scans_nsplugins_at_startup.diff
    dpkg-source: info: applying kubuntu_18_fix_systemsettings_about_me.diff
    dpkg-source: info: applying kubuntu_19_install_flash.diff
    dpkg-source: info: applying kubuntu_24_folderview_livecd_directory.diff
    dpkg-source: info: applying kubuntu_26_folderwidget_drawing.diff
    The original kdebase-4.8.1-dolphin-klook.patch splitted to the dolphinmainwindow.cpp.diff and dolphinmainwindow.h.diff.

    Patching, one way to do it:
    man patch

    NAME
    patch - apply a diff file to an original

    SYNOPSIS
    patch [options] [originalfile [patchfile]]

    but usually just

    patch -pnum <patchfile
    At here - From the Dolphin directory:
    /Dolphin$ patch kde-baseapps-4.8.3/dolphin/src/dolphinmainwindow.cpp < kdebase-4.8.1-dolphin-klook-patch/dolphinmainwindow.cpp.diff
    patching file kde-baseapps-4.8.3/dolphin/src/dolphinmainwindow.cpp
    or with the full path:
    $ patch /media/sda3/Dolphin/kde-baseapps-4.8.3/dolphin/src/dolphinmainwindow.h < /media/sda3/Dolphin/kdebase-4.8.1-dolphin-klook-patch/dolphinmainwindow.h.diff
    patching file /media/sda3/Dolphin/kde-baseapps-4.8.3/dolphin/src/dolphinmainwindow.h
    Binary only build:
    Code:
    dpkg-buildpackage -b -rfakeroot -us -uc
    At here:
    /Dolphin/kde-baseapps-4.8.3$ dpkg-buildpackage -b -rfakeroot -us -uc

    -- SUCCESS making standard target 'binary'.
    dpkg-genchanges -b >../kde-baseapps_4.8.3-0ubuntu0.1~ppa1_amd64.changes
    dpkg-genchanges: binary-only upload - not including any source code
    dpkg-source --after-build kde-baseapps-4.8.3
    dpkg-buildpackage: binary only upload (no source included)
    There are plenty of debs. Installing the Dolphin with the KLook patch:
    Code:
    sudo dpkg -i dolphin*.deb
    At here:
    (Reading database ... 177693 files and directories currently installed.)
    Preparing to replace dolphin 4:4.8.3-0ubuntu0.1~ppa1 (using dolphin_4.8.3-0ubuntu0.1~ppa1_amd64.deb) ...
    Unpacking replacement dolphin ...
    Setting up dolphin (4:4.8.3-0ubuntu0.1~ppa1) ...
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Back to the standard version:
    Code:
    sudo apt-get install --reinstall dolphin
    Kubuntu 12.04/KDE 4.8.3/KLook with the Dolphin

    Pick the file(s) and press the space...



    Direct link: http://www.dailymotion.com/video/xr4...ith-klook_tech


    From the PPA

    PPA search: https://launchpad.net/ubuntu/+ppas
    --> https://launchpad.net/ubuntu/+ppas?n...th-klook-patch




    With the apt-get

    Code:
    sudo apt-get install dolphin-with-klook-patch
    output at here:
    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following extra packages will be installed:
    kde-baseapps-with-klook-patch
    Suggested packages:
    ruby
    The following packages will be REMOVED:
    dolphin kde-baseapps
    The following NEW packages will be installed:
    dolphin-with-klook-patch kde-baseapps-with-klook-patch
    0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
    Need to get 1,263 kB of archives.
    After this operation, 4,096 B of additional disk space will be used.
    Do you want to continue [Y/n]?
    ...
    Unpacking kde-baseapps-with-klook-patch (from .../kde-baseapps-with-klook-patch_4%3a4.8.3-0ubuntu0.1~precise~ppa1_all.deb) ...
    Selecting previously unselected package dolphin-with-klook-patch.
    Unpacking dolphin-with-klook-patch (from .../dolphin-with-klook-patch_4%3a4.8.3-0ubuntu0.1~precise~ppa1_amd64.deb) ...
    Setting up kde-baseapps-with-klook-patch (4:4.8.3-0ubuntu0.1~precise~ppa1) ...
    Setting up dolphin-with-klook-patch (4:4.8.3-0ubuntu0.1~precise~ppa1) ...
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Back to the standard Dolphin:
    Code:
    sudo apt-get install dolphin kde-baseapps
    output at here:
    Reading package lists...
    Building dependency tree...
    Reading state information.
    Suggested packages:
    ruby
    The following packages will be REMOVED:
    dolphin-with-klook-patch kde-baseapps-with-klook-patch
    The following NEW packages will be installed:
    dolphin kde-baseapps
    0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
    Need to get 1,108 kB of archives.
    After this operation, 4,096 B disk space will be freed.
    Do you want to continue [Y/n]?
    ...
    Unpacking dolphin (from .../dolphin_4%3a4.8.3-0ubuntu0.1_amd64.deb) ...
    Selecting previously unselected package kde-baseapps.
    Unpacking kde-baseapps (from .../kde-baseapps_4%3a4.8.3-0ubuntu0.1_all.deb) ...
    Setting up dolphin (4:4.8.3-0ubuntu0.1) ...
    Setting up kde-baseapps (4:4.8.3-0ubuntu0.1) ...
    Processing triggers for libc-bin ...
    ldconfig deferred processing now taking place
    Attached Files
    Last edited by OneLine; Jun 14, 2012, 05:20 AM.
    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    #2
    Not related to Klook: how did you get that right click menu?
    Related - patch online:
    https://projects.kde.org/projects/pl...in-klook.patch
    sigpic

    Comment


      #3
      Not related to Klook: how did you get that right click menu?
      It is a special case of the mouse action "Application Launcher". The Application Launcher will show all K Menu objects - the Favorites Launcher will show the favorites: http://kde-look.org/content/show.php...content=117639

      Description:
      This is a "containment action" (mouse action) plugin for the KDE Plasma Desktop (KDE SC 4.4 or newer).

      With this plugin, you can configure a mouse button click to invoke a menu with your favorite applications.

      Instead of listing all applications, it only lists the Kickoff favorite applications. The code is written by Chani Armitage, I only modified it slightly to parse the favorites.




      PPA search: https://launchpad.net/ubuntu/+ppas?n...rites-launcher
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment


        #4
        Thanks!
        sigpic

        Comment

        Working...
        X