Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-12-12 17:53:26

yurbev
Member
Registered: 2016-04-18
Posts: 55

Thunar Custom Action to link thumbnail to Webpage

Is there a way to create a custom action that would allow for opening a selected image to a particular webpage?

flickrimage

In Thunar I'd want to right-click on the image above and then click the Custom Action "Take to Webpage" and the image will take me to this specific webpage: https://www.flickr.com/photos/160973116 … 018-12-11/

Since I'd want to use this Custom Action on thumbnails with different links, I was thinking I could put the url that I want associated with that thumbnail in the image properties. And then the Custom Action could access the properties so that it would know which webpage I want to be taken.

Is this possible?

Last edited by yurbev (2018-12-12 17:57:43)

Offline

#2 2018-12-13 00:19:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Thunar Custom Action to link thumbnail to Webpage

How are you adding the URL to the image properties? exiftool?

If so, and assuming that you are adding the content using exiftool into a URL field like:

exiftool -overwrite_original -URL=www.google.ca IMAGE

...you can use the following custom action command to retrieve that URL and open it in your default web browser:

exo-open --launch WebBrowser $(exiftool -URL %f | awk '{print $3}')

update custom action command to remove unnecessary grep

Last edited by ToZ (2018-12-13 01:58:29)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2018-12-13 00:50:39

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Thunar Custom Action to link thumbnail to Webpage

Good question and great answer, thanks to both!

Offline

#4 2018-12-13 18:24:03

yurbev
Member
Registered: 2016-04-18
Posts: 55

Re: Thunar Custom Action to link thumbnail to Webpage

Much thanks! I just tested it out and it works great.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 536.77 KiB (Peak: 545.83 KiB) ]