19.2 Nemo Action Failure

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
furklempt
Level 1
Level 1
Posts: 1
Joined: Sun Aug 25, 2019 6:22 am

19.2 Nemo Action Failure

Post by furklempt » Sun Aug 25, 2019 6:38 am

I've upgraded to 19.2 Tina.
I cannot get this nemo action to function.

Objective: Right-Click a file/folder and copy the modification date to the clipboard. Depends on (xsel) for copy to clipboard.

1. Nemo Action: /home/furklempt/.local/share/nemo/actions

[Nemo Action]
Name=Copy Mod Date
Comment=Copy Modification Date
Stock-Id=gtk-save
Quote=double
Exec=<copy-mod-date.sh %F>
Selection=s
Extensions=any;
EscapeSpaces=true

2. Nemo Script; /home/furklempt/.local/share/nemo/actions
#!/bin/bash
stat --printf=%y "$@" | cut -z -d" " -f1 | xsel -b

Also Tried;
1. Made sure both files are: $ chmod a+x
2. Tried "$1" and "$@"
3. $ date -r "$@" +%Y-%m-%d
4. Exec=<./copy-mod-date.sh %F>
5. Exec=</bin/bash copy-mod-date.sh %F>

Please advise

Thank you.

Best regards

Post Reply

Return to “Cinnamon”