Skip to content
G

EPISODE · Dec 27, 2022

gnuWorldOrder_492

from GNU World Order Linux Cast · host Klaatu

![CDATA[ A useful kservice example, and listener email about ZFS backups $ mkdir ~/.local/share/kio/servicemenus $ cat > ~/.local/share/kio/servicemenus/setfattr.desktop [Desktop Entry] Type=Service MimeType=all/allfiles: Actions=mysetfattr [Desktop Action mysetfattr] Name=Add metadata Icon=/usr/share/icons/breeze/actions/symbolic/insert-text-symbolic.svg Exec=setfattr --name user.tag --value "\$(kdialog --textinputbox 'Enter metadata')" %f EOF $ chmod +x ~/.local/share/kio/servicemenus/setfattr.desktop Instead of using `--textinputbox`, you could use, for instance, a `--combobox`: $ kdialog --combobox 'Enter metadata' foo bar baz To view the metadata, you can do this: $ mkdir ~/.local/share/kio/servicemenus $ cat > ~/.local/share/kio/servicemenus/getfattr.desktop [Desktop Entry] Type=Service MimeType=all/allfiles; Actions=mygetfattr [Desktop Action mygetfattr] Name=Show metadata Icon=/usr/share/icons/breeze/actions/symbolic/insert-text-symbolic.svg Exec=kdialog --msgbox "$(getfattr --dump %f)" EOF $ chmod +x ~/.local/share/kio/servicemenus/setfattr.desktop ]]

Episode metadata supplied by the publisher feed · Published Dec 27, 2022

Embed this episode

Ready to play

gnuWorldOrder_492

0:00 0:00

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

When was this GNU World Order Linux Cast episode published?

This episode was published on December 27, 2022.

Can I download this GNU World Order Linux Cast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!