This service is simple, but useful for when you want to play on VLC a music or video playlist.
The ServiceMenu will be created in ~/.local/share/kio/servicemenus
If that path doesn’t exist for your user, create it with:
mkdir -p ~/.local/share/kio/servicemenus
Create addtovlc.desktop with kate:
kate ~/.local/share/kio/servicemenus/addtovlc.desktop
Add the lines:
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=audio/*;video/*;inode/directory;
Actions=AddToVLC;
X-KDE-Priority=TopLevel
X-KDE-StartupNotify=false
Icon=image
[Desktop Action AddToVLC]
Name=Add to VLC playlist
Name[de]=Zur VLC Wiedergabeliste hinzufügen
Name[fr]=Ajouter à liste de lecture VLC
Name[es]=Agregar a la lista de reproducción de VLC
Name[hr_HR]=Dodaj na popis za reproduciranje
Name[nl]=Toevoegen aan VLC-afspeellijst
Name[da]=Tilføj til VLC afspilningsliste
Name[pt]=Adicionar à lista de reprodução do VLC
Name[nb]=Legg til VLC spilleliste
Name[pt_BR]=Adicionar à playlist do VLC
Name[ru_RU]=Добавить в плейлист VLC
Name[sr]=Dodaj u vlc plejlistu
Exec=/usr/bin/vlc --one-instance --playlist-enqueue %U
Icon=vlc-panel
Please notice that you may need to run chmod to make sure it will work with your user.
chmod +x addtovlc.desktop
That’s it!
Restart dolphin and enjoy.