[Solved] Thunar Custom Action sha256 not working

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
SomeDudeInAZ
Level 4
Level 4
Posts: 251
Joined: Sun May 05, 2019 6:48 pm
Location: Scottsdale, AZ, USA

[Solved] Thunar Custom Action sha256 not working

Post by SomeDudeInAZ »

Hi Folks,

Just playing around with LM xfce (ver 20.1) and saw the "custom actions" on the context menu. One of the options is to generate an sha256 check.

So I created a simple text file (mint system report) and ran it. Nothing happens. I run the same command from the terminal it works. Anyone else run into this?

Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Thunar Custom Action sha256 not working

Post by MrEen »

Hi SomeDudeInAZ,

Let's get a look at this output:

Code: Select all

cat ~/.config/Thunar/uca.xml
SomeDudeInAZ
Level 4
Level 4
Posts: 251
Joined: Sun May 05, 2019 6:48 pm
Location: Scottsdale, AZ, USA

Re: Thunar Custom Action sha256 not working

Post by SomeDudeInAZ »

Here you go:

Code: Select all

theadmin@Murgen:~$ cat ~/.config/Thunar/uca.xml
<?xml version="1.0" encoding="UTF-8"?>
<actions>
<action>
	<icon>gnome-run</icon>
	<name>Check SHA256</name>
	<unique-id>1612321516988616-4</unique-id>
	<command>mint-sha256sum %f</command>
	<description>Computes SHA256 checksum for the selected file.</description>
	<patterns>*.iso;*.ISO</patterns>
	<audio-files/>
	<image-files/>
	<other-files/>
	<text-files/>
	<video-files/>
</action>
<action>
	<icon>Terminal</icon>
	<name>Open in Terminal</name>
	<unique-id>1612321516988230-1</unique-id>
	<command>exo-open --working-directory %f --launch TerminalEmulator</command>
	<description>Open terminal in the selected folder</description>
	<patterns>*</patterns>
	<directories/>
</action>
<action>
	<icon>folder</icon>
	<name>Open as Root</name>
	<unique-id>1612321516988391-2</unique-id>
	<command>pkexec thunar %F</command>
	<description>Open the folder with administration privileges</description>
	<patterns>*</patterns>
	<directories/>
</action>
<action>
	<icon>emblem-symbolic-link</icon>
	<name>Create a Link</name>
	<unique-id>1612321516988585-3</unique-id>
	<command>ln -s %f  &apos;Link to %n&apos;</command>
	<description>Create a symbolic link for each selected item</description>
	<patterns>*</patterns>
	<directories/>
	<other-files/>
</action>
<action>
	<icon>gtk-find</icon>
	<name>Search</name>
	<unique-id>1612321516988830-5</unique-id>
	<command>catfish %f</command>
	<description>Search for Files</description>
	<patterns>*</patterns>
	<directories/>
</action>
</actions>
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: Thunar Custom Action sha256 not working

Post by MrEen »

I can't understand how you even had the option to run it on a text file. This line should have prevented it from even showing:

Code: Select all

	<patterns>*.iso;*.ISO</patterns>
Or was the fact it wasn't showing the issue you had?
SomeDudeInAZ
Level 4
Level 4
Posts: 251
Joined: Sun May 05, 2019 6:48 pm
Location: Scottsdale, AZ, USA

Re: Thunar Custom Action sha256 not working

Post by SomeDudeInAZ »

That's exactly it. It wasn't showing at all. And I just figured it out thanks to the hint about that file. Solved

I just checked all the boxes and left it at that. However:

<patterns>*</patterns>
<directories/>
<audio-files/>
<image-files/>
<other-files/>
<text-files/>
<video-files/>

is what's in there now. Now that I know whee to look, I'll play :D

Thanks
User avatar
MrEen
Level 23
Level 23
Posts: 18343
Joined: Mon Jun 12, 2017 8:39 pm

Re: [Solved] Thunar Custom Action sha256 not working

Post by MrEen »

Ahh, you said when it ran it didn't do anything, so I assumed it was there.

In the future, you may find you want to limit it to showing only for files you might actually use it on. Keeps the context menu as compact as possible. On my last install, I had added the only other file type I might ever want to check (both upper and lower case) as over time while installing more stuff, that context menu can get awfully large.

Anyway, glad I could help. :D
SomeDudeInAZ
Level 4
Level 4
Posts: 251
Joined: Sun May 05, 2019 6:48 pm
Location: Scottsdale, AZ, USA

Re: [Solved] Thunar Custom Action sha256 not working

Post by SomeDudeInAZ »

I likely will (limit it). I just wanted to experiment. I've decided to set up my 3 computers (home, office, laptop) each with a different version of mint to experiment. and just noticed what is likely a very old feature of thunar.

Thanks again
Locked

Return to “Xfce”