wget Dolphin Service Menu (KDE4 or KDE5)

Dolphin Service Menus

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on git.opendesktop.org

1
Score 59%
Description:

Super simple context menu to download a URL in the current folder using wget. The download will start in a new konsole window so that you can monitor its progress.
Works with KDE4 or KDE5 (need to download the corresponding file).

The script can either download the last URL you copied in the clipboard, or an input kdialog window will open up for you to paste the URL (1 URL at a time is supported).

Use cases:
It's often that I have a few dolphin windows opened in different directories, and I need to download a file I found online into them (clipart for example).

When I click the "Save as" context menu on my web browser and the browse window pops up, I feel so iritated that I need to browse for the correct path (sometimes might be long nested). Usually I just download everything on my desktop, then I cut the file and paste it in one of the already opened dolphin windows.

Not anymore :D
With this context menu, I just copy the link, right click in/on the dir where I want it to be downloaded and it's there :)

Dependencies for the KDE 5 version: konsole, wget, xclip
Dependencies for the KDE 4 version: konsole, wget

How to install:
1. Download the file
2. In KDE4: cp wget.desktop $(kde4-config --localprefix)/share/kde4/services/ServiceMenus/
In KDE5: cp wget.desktop ~/.local/share/kservices5/ServiceMenus/
3. In KDE4: kbuildsycoca4
In KDE5: kbuildsycoca5

Enjoy you new context menu when right clicking on any folder.
Last changelog:

Bug fix... 1 year ago

Forgot to fix the Exec commands for translations for the wgetAskForLink action in v0.1.0.

yomelallevealrio

4 years ago

Download the last copied URL from Klipper
Name[es]=Descargar el último LRU copiado de Klipper

Open a dialog and paste the URL to be downloaded
Name[es]=Abrir diálogo y pegar el LRU a descargar

Paste your URL to download (wget)
Pegar LRU a descargar (wget)

Report

yomelallevealrio

4 years ago

It seems comments can't be edited. They should...

Anyway, the last sntence «Paste your URL to download (wget)», I think is better translated as «Pegar LRU para descargar (wget)».

Report

C

CyberAng3l

4 years ago

Thanks :)

Just added the Spanish translation.

Report

Omega9

4 years ago

Name=Download the last copied URL from Klipper
->
Name[ru]=Загрузить по последней скопированной в Klipper ссылке


Name=Open a dialog and paste the URL to be downloaded
->
Name[ru]=Открыть диалог и вставить ссылку для загрузки

Report

C

CyberAng3l

4 years ago

Thanks for the translation. Could you please translate this text as well?

> Paste your URL to download (wget)

Report

Omega9

4 years ago

Вставьте ссылку для скачивания (wget)

Report

Omega9

4 years ago

Name=Download the last copied URL from Klipper
->
Name[ru]=Загрузить по последней скопированной в Klipper ссылке


Name=Open a dialog and paste the URL to be downloaded
->
Name[ru]=Открыть диалог и вставить ссылку для загрузки

Report

Omega9

4 years ago

Name=Download the last copied URL from Klipper
->
Name[ru]=Загрузить по последней скопированной в Klipper ссылке


Name=Open a dialog and paste the URL to be downloaded
->
Name[ru]=Открыть диалог и вставить ссылку для загрузки

Report

Strek

4 years ago

kbuildsycoca4(25076) parseLayoutNode: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.

Report

C

CyberAng3l

4 years ago

I do not see any problem with the script. Works fine on Kubuntu 14.04 64 bits with KDE SC 4.14.2.

This .desktop file is very simple anyway. Are you sure the error you get is generated by this script? Try to remove "wget.desktop" file and re-run kbuildsycoca4.

I created this based on the tutorial here:
https://techbase.kde.org/Development/Tutorials/Desktop_File#Menus

Report

Strek

4 years ago

Why need this command - kbuildsycoca4?
I verified, Script work normal.

Report

C

CyberAng3l

4 years ago

Just to make sure the .desktop file will be read and appear in your context menus. If you do some changes in a ".desktop" file, they are not instantly applied.

As the man page of kbuildsycoca4 says:
http://linux.die.net/man/8/kbuildsycoca4

> kbuildsycoca4, as part of the KDE command line tools ensures the proper operation of KDE by reading in all the .desktop, .directory, .kimgio and .protocol files to construct a binary database.
> KDE itself accesses this database during operation to provide configuration information a program needs to run.
> This tool is part of ksycoca4, which stands for KDE System Configuration Cache

Report

C

CyberAng3l

4 years ago

Just to make sure the .desktop file will be read and appear in your context menus. If you do some changes in a ".desktop" file, they are not instantly applied.

As the man page of kbuildsycoca4 says:
http://linux.die.net/man/8/kbuildsycoca4

> kbuildsycoca4, as part of the KDE command line tools ensures the proper operation of KDE by reading in all the .desktop, .directory, .kimgio and .protocol files to construct a binary database.
> KDE itself accesses this database during operation to provide configuration information a program needs to run.
> This tool is part of ksycoca4, which stands for KDE System Configuration Cache

Report

frag

4 years ago

Under black rectangles - directories and partitions with child porn?

Report

C

CyberAng3l

4 years ago

I added the German translation.

Report

roctheme

4 years ago

Name=Download the last copied URL from Klipper
->
Name[de]=Lade die zuletzt kopierte URL herunter


Name=Open a dialog and paste the URL to be downloaded
->
Name[de]=Herunterzuladende URL eingeben

Report

C

CyberAng3l

4 years ago

Could you please translate this line as well?

> Paste your URL to download (wget)

Report

roctheme

4 years ago

Could you please translate this line as well?
> Paste your URL to download (wget)

You can also use this set:
Herunterzuladende URL eingeben (wget)

Report

roctheme

4 years ago

Could you please translate this line as well?
> Paste your URL to download (wget)

You can also use this set:
Herunterzuladende URL eingeben (wget)

Report

Bug fix... 1 year ago

Forgot to fix the Exec commands for translations for the wgetAskForLink action in v0.1.0.

Updated the service menu to make it work with KDE 5 1 year ago

* In KDE 5 klipper is not started by default so the qdbus commands were not working.
I changed the script to use xclip instead of the qdbus commands. That means that the script now has three prerequisites: konsole, wget and xclip.

* Added TryExec entries to avoid showing the context menu if the prerequired commands (konsole, wget and xclip) are not available in $PATH

4 years ago

0.0.4
Added translations for action wgetAskForLink Exec
Added Spanish translation (yomelallevealrio)

0.0.3:
Added Russian translation.

0.0.2:
Added German translation.

0.0.1:
Just uploaded.
Supports to download the last copied URL from Klipper, or open up a dialog that you can paste/edit the URL to be downloaded.

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.1.1
updated Mar 06 2017
added Oct 20 2014
downloads today
0
page views today 7
System Tags addon