Announcement

Collapse
No announcement yet.

Adding older KIM image conversion service menus into Plasma 5

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

    Adding older KIM image conversion service menus into Plasma 5

    I'm a big Dolphin fan and I have quite a few service menus that I use regularly - about half of which are written by me. However, rather than re-invent the wheel, I use the KIM service menus to convert and resize images without having to go to Gwen or GIMP. You have to have imagemagick installed to use these service menus.

    The problem is this KIM package hasn't been updated since 2009! If installed correctly though, it seems to work fine with Plasma 5. The issue is the included install script is for KDE4. I began trying to figure out the correct solution when I stumbled on DanielBull's post on the KIM page. So I converted his post into a script and voila!

    Simply:
    1) Download and extract the KIM tarball into a folder (kim4 is the default)
    2) Navigate to that folder
    3) Create a new file called "plamsa5.sh" (or literally anything you want)
    4) Edit it inserting these commands:
    Code:
    sudo cp src/kim_*.desktop /usr/share/kservices5/ServiceMenus/
    sudo cp src/bin/kim_* /usr/bin/
    sudo chmod a+rx /usr/bin/kim_*
    sudo chmod a+r /usr/share/kservices5/ServiceMenus/kim_*.desktop
    sudo mkdir /usr/share/kim
    sudo cp COPYING /usr/share/kim/kim_about.txt
    sudo mkdir /usr/share/kim/slideshow/
    sudo cp src/slideshow/* /usr/share/kim/slideshow/
    sudo mkdir /usr/share/kim/gallery
    sudo cp src/gallery/* /usr/share/kim/gallery
    Don't forget to leave a blank line at the bottom. Most Linux scripts and files want a final carriage return after the last line.
    5) Set the script as executable. If you use the command line its: chmod +x plasma5.sh
    6) Execute the script: sh plasma5.sh
    7) Enter your sudo password when prompted and done!
    Last edited by oshunluvr; Feb 18, 2017, 03:57 PM.

    Please Read Me

    #2
    Awesome tip - thanks for posting! I'm surprised more KDE 4 Dolphin service menus have not been converted yet. You might consider uploading it to https://store.kde.org, since the last update for it was listed 2 years ago, but still for KDE 4, sadly.
    ​"Keep it between the ditches"
    K*Digest Blog
    K*Digest on Twitter

    Comment


      #3
      Thanks and yeah, too bad the scripters haven't gone back and update cool things like KIM.

      I have an old servicemenu I wrote way back for doing checkums from Dolphin. I just discovered someone else took my script and enhanced it a bit. I got a kick out of seeing credit to "oshunluvr" in the details when you try and add it to Dolphin using "Get Hot New Stuff". Kinda makes me feel like I'm part of a team, LOL

      Please Read Me

      Comment


        #4
        Originally posted by oshunluvr View Post
        Thanks and yeah, too bad the scripters haven't gone back and update cool things like KIM.

        I have an old servicemenu I wrote way back for doing checkums from Dolphin. I just discovered someone else took my script and enhanced it a bit. I got a kick out of seeing credit to "oshunluvr" in the details when you try and add it to Dolphin using "Get Hot New Stuff". Kinda makes me feel like I'm part of a team, LOL
        You definitely are!
        ​"Keep it between the ditches"
        K*Digest Blog
        K*Digest on Twitter

        Comment


          #5
          to get the "plasma5.sh to run corectly I had to change it from this

          Code:
          sudo cp src/kim_*.desktop /usr/share/kservices5/ServiceMenus/[COLOR=#ff0000]sudo cp src/bin/kim_* /usr/bin/[/COLOR]
          sudo chmod a+rx /usr/bin/kim_*
          sudo chmod a+r /usr/share/kservices5/ServiceMenus/kim_*.desktop
          sudo mkdir /usr/share/kim
          sudo cp COPYING /usr/share/kim/kim_about.txt
          sudo mkdir /usr/share/kim/slideshow/
          sudo cp src/slideshow/* /usr/share/kim/slideshow/
          sudo mkdir /usr/share/kim/gallery
          sudo cp src/gallery/* /usr/share/kim/gallery
          to this

          Code:
          sudo cp src/kim_*.desktop /usr/share/kservices5/ServiceMenus/
          [COLOR=#ff0000]sudo cp src/bin/kim_* /usr/bin/[/COLOR]
          sudo chmod a+rx /usr/bin/kim_*
          sudo chmod a+r /usr/share/kservices5/ServiceMenus/kim_*.desktop
          sudo mkdir /usr/share/kim
          sudo cp COPYING /usr/share/kim/kim_about.txt
          sudo mkdir /usr/share/kim/slideshow/
          sudo cp src/slideshow/* /usr/share/kim/slideshow/
          sudo mkdir /usr/share/kim/gallery
          sudo cp src/gallery/* /usr/share/kim/gallery


          but it dose work as a service menu in both Dolphin and Konqueror ,,,,,nice

          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #6
            Thanks Vinny, I didn't catch that. @Here, at least sometimes, some of the forum formatting shortcuts do that (remove a CR). I usually catch it.

            Please Read Me

            Comment

            Working...
            X