I'm running wallch to automatically cycle thru my wallpapers. I have hundreds of them. I created a little application that displays the title of a wallpaper:
export DISPLAY=:0 && /usr/bin/zenity --info --text="$(gsettings get org.gnome.desktop.background picture-uri | cut -c 41-)"
Without the cut, the output is:
'file:///home/frank/Pictures/Wallpapers/Sitka_Harbor.jpg'
with the cut, I get the file name:
Sitka_Harbor.jpg'
I want to get rid of the trailing apostrophe. I've tried various combinations of the cut --output-delimiter, but can't seem to get it to work.
I would be grateful if someone could point me to some code that would return just the file name.
Thanking all,
sadhu