Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-10-10 02:03:35

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Thunar Custom Function only on Certain Folder

Hello, as the title state, I want to ask, is it possible to make a custom action in Thunar with specific folder location? Or it's not? Is there any work around if it's not? Thank you

Offline

#2 2022-10-10 02:21:58

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

Re: Thunar Custom Function only on Certain Folder

Depends on what you mean.

If you want a custom action to only appear if you click on the Documents folder, then on the Appearance tab of the custom action, check the "Directories" checkbox and in the "File Pattern" field, enter "Documents". Note that the match in this field is on the folder name, not the path.

If you mean you want a custom action to only work if you are in one specific directory, then the best you can do is create a script that checks for the correct directory before proceeding.


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 2022-10-10 05:32:19

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: Thunar Custom Function only on Certain Folder

ToZ wrote:

Depends on what you mean.

If you want a custom action to only appear if you click on the Documents folder, then on the Appearance tab of the custom action, check the "Directories" checkbox and in the "File Pattern" field, enter "Documents". Note that the match in this field is on the folder name, not the path.

If you mean you want a custom action to only work if you are in one specific directory, then the best you can do is create a script that checks for the correct directory before proceeding.


So the only option only works for the items in the directory, is showing to anything, but check if the file reside in the directory or not? Hmm.. so there are no workaround for now to only apply on some items in directory then(only by scripting check the directory)? (because that means showing the custom command/action to anything)

Offline

#4 2022-10-10 12:04:59

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

Re: Thunar Custom Function only on Certain Folder


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

#5 2022-10-11 17:59:36

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: Thunar Custom Function only on Certain Folder


Woah.. sooo... they think it's too complicated... hmm... I see... let me think other way..

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 534.42 KiB (Peak: 535.27 KiB) ]