Skip to content

Instantly share code, notes, and snippets.

@JoseskVolpe
Last active March 28, 2024 11:43
Show Gist options
  • Save JoseskVolpe/b96966dd8fcde5eea96739d2a35c7e6a to your computer and use it in GitHub Desktop.
Save JoseskVolpe/b96966dd8fcde5eea96739d2a35c7e6a to your computer and use it in GitHub Desktop.
KDE Dolphin's service context to scan files and directories with ClamTK
[Desktop Entry]
Type=Service
Actions=scan;
ServiceTypes=all/all
Icon=clamav
Version=1.0.2
[Desktop Action scan]
Name=Scan for viruses with ClamTK
Name[en]=Scan for viruses with ClamTK
Name[pt]=Escanear por vírus com ClamTK
Name[es]=Buscar virus con ClamTK
Name[ru]=Сканировать на вирусы с помощью ClamTK
Name[zh]=使用 ClamTK 扫描病毒
Name[ar]=المسح بحثًا عن الفيروسات باستخدام ClamTK
Name[ja]=ClamTKでウイルスをスキャンする
Name[ko]=ClamTK로 바이러스 검사
Name[uk]=Скануйте на віруси за допомогою ClamTK
Name[de]=Scannen Sie mit ClamTK nach Viren
Name[vi]=Quét vi rút bằng ClamTK
Name[pl]=Skanuj w poszukiwaniu wirusów za pomocą ClamTK
Name[it]=Cerca virus con ClamTK
Name[iw]=סרוק לאיתור וירוסים עם ClamTK
Name[be]=Сканіраванне вірусаў з дапамогай ClamTK
Name[fr]=Recherche de virus à l'aide de ClamTK
Name[el]=Σάρωση για ιούς με το ClamTK
Name[nl]=Scannen op virussen met ClamTK
Icon=clamav
Exec=clamtk "%u"
@DanielLester83
Copy link

For the flatpak version of ClamTK open

~/.local/share/kio/servicemenus/ClamTKScan.desktop

and change the Exec= line to this

Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=clamtk --file-forwarding com.gitlab.davem.ClamTk @@ %F @@ "%u"

Not sure how you would check which is version exists to make a installer script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment