Announcement

Collapse
No announcement yet.

KDE Love: You can make it do almost anything...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KDE Love: You can make it do almost anything...

    I was lurking on the Kubuntu subreddit and there was a post complaining that with Zorin - the users previous distro - he could click on an archive file and it would automatically extract. He wanted that behavior in Kubuntu because I guess three clicks was too much work, LOL.

    Anyway, I decided to fix it for him because KDE can do almost anything.
    1. I created a file named "autoark" and put it in my ~/.local folder
    2. I edited the file and entered this code below
    3. I set the file as executable.
    4. I right-clicked on a ZIP archived file and selected "Properties"
    5. I clicked on "Change" to the right of "Open with:"
    6. I clicked on "+ Add..."
    7. I typed in ~/.local/autoark as the application and clicked OK.
    8. I verified "autoark" is at the top of the "Application Preference Order"
    9. Click "OK" twice to close the dialog.
    10. In "System Settings > General Behavior > Clicking" select "Opens them"
    11. Now when I click on a ZIP file, it automatically extracts the contents into a new folder with the name of the zip file.
    Code:
    #!/bin/bash
    ark -ba $1
    This did exactly what he asked for.
    If you prefer to not create a new folder and extract into the same folder as the zip file: change -ba to just -b

    Repeat steps 4 through 9 for each archive file type you want to auto-extract.

    Please Read Me

    #2
    Kool. KFN delivers.
    Slava Ukraini! πŸ‡ΊπŸ‡¦
    Windows no longer obstruct my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes​

    Comment


      #3
      nice !
      but I'd change it to
      Code:
       #!/bin/bash
      ark -ba "$1"​
      with quotes around $1 ,without quotes, archive filenames containing spaces can cause problems.
      ▁ β–‚ β–„ β–… β–† β–‡ β–ˆ α„‚IПЦX FΣ¨Π― α„‚IFΞ£ β–ˆ β–‡ β–† β–… β–„ β–‚ ▁

      Comment

      Users Viewing This Topic

      Collapse

      There are 0 users viewing this topic.

      Working...
      X