Forum
« Thunar - custom actions »

Welcome Guest. Please Login or Register.
May 21, 2013, 3:51am



Return to or visit the SalineOS webpage

Forum :: General :: Software and Applications :: Thunar - custom actions
« Page 5 of 5 Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Thunar - custom actions (Read 3,952 times)
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,336
 Re: Thunar - custom actions
« Reply #60 on Apr 20, 2012, 6:22am »

Work has begun on the custom actions for 2.0 development builds and on. You can see this post for details: http://www.salinelinux.proboards.com/ind....play&thread=598

If you have any ideas you would like to see implemented, please speak up and I will see what I can do. The current number for 2.0 is 31 (I think), and I am having a hard time coming up with anymore to write.
Link to Post - Back to Top  IP: Logged
mihail
Full Member
***
member is offline





Joined: Dec 2011
Gender: Male
Posts: 120
Location: Romania
 Re: Thunar - custom actions
« Reply #61 on May 30, 2012, 4:41am »

Hi,

I 've been mainly on the road and unable to use my comp since a long time. Therefore (Sorry.) I cant remember if there is a protect with passoword option for a file, whe right click on it.

If not, can you add on Anthony?

Putting a pass on a file with right click, even if you have to be root when doing it..

Link to Post - Back to Top  IP: Logged

petrek
Senior Member
****
member is offline

[avatar]



Joined: Aug 2011
Gender: Male
Posts: 386
Location: Poland
 Re: Thunar - custom actions
« Reply #62 on May 30, 2012, 5:09am »

Could you write what kind of protection you need? From accidental deletion, from reading the content?
« Last Edit: May 30, 2012, 5:09am by petrek »Link to Post - Back to Top  IP: Logged

Skallagrigg
mihail
Full Member
***
member is offline





Joined: Dec 2011
Gender: Male
Posts: 120
Location: Romania
 Re: Thunar - custom actions
« Reply #63 on May 30, 2012, 6:01am »

well, I was thinking protection for reading, but now that you mentioned, both would be neded. This is very usefull for a shared computer.

If is harder for a file, maybe for a directory... It would be a lot easier to do this with a right click than with 3d party.
Link to Post - Back to Top  IP: Logged

petrek
Senior Member
****
member is offline

[avatar]



Joined: Aug 2011
Gender: Male
Posts: 386
Location: Poland
 Re: Thunar - custom actions
« Reply #64 on May 30, 2012, 6:32am »

Deletion can be a problem, root can do anything, you can set immutable flag, it will prevent deleting, but root still can unset it with his own password. As for reading, probably it should be some kind of encryption, rest the same as above.
« Last Edit: May 30, 2012, 8:39am by petrek »Link to Post - Back to Top  IP: Logged

Skallagrigg
mihail
Full Member
***
member is offline





Joined: Dec 2011
Gender: Male
Posts: 120
Location: Romania
 Re: Thunar - custom actions
« Reply #65 on May 30, 2012, 7:27am »

I am root! Can it be done with thunar custom action? Both I mean.
Link to Post - Back to Top  IP: Logged

petrek
Senior Member
****
member is offline

[avatar]



Joined: Aug 2011
Gender: Male
Posts: 386
Location: Poland
 Re: Thunar - custom actions
« Reply #66 on May 30, 2012, 8:45am »

in uca.xml add

<action><name>Set deletion prevention</name><command>gksu /usr/bin/chattr +i %f</command><description>Prevents files from deletion</description><patterns>*</patterns><directories/><audio-files/><image-files/><other-files/><text-files/><video- files/></action>

This prevents files from deletion, also by root. For unsetting replace after <command> +i for -i

As for reading, you can just set up attributes, but I'm not sure what you want to do exactly, I'm kind of lost :) Do you want prevent root from reading file? User from reading his own file or what?
« Last Edit: May 30, 2012, 8:45am by petrek »Link to Post - Back to Top  IP: Logged

Skallagrigg
mihail
Full Member
***
member is offline





Joined: Dec 2011
Gender: Male
Posts: 120
Location: Romania
 Re: Thunar - custom actions
« Reply #67 on May 30, 2012, 11:28am »

Lol Petrek, is quite simple: i am root but not the only one using it, so i would like odt and txt files to be encrypted with pass, for the other ones who open the comp. Dont want adding other user accounts.

thanks a lot for the script.
Link to Post - Back to Top  IP: Logged

petrek
Senior Member
****
member is offline

[avatar]



Joined: Aug 2011
Gender: Male
Posts: 386
Location: Poland
 Re: Thunar - custom actions
« Reply #68 on May 30, 2012, 11:49am »

Two custom actions for encryption you can find here, everything depends on what you have installed:

https://help.ubuntu.com/community/ThunarCustomActions

You're welcome :)
« Last Edit: May 30, 2012, 11:50am by petrek »Link to Post - Back to Top  IP: Logged

Skallagrigg
« Page 5 of 5 Jump to page   Go    [Search This Thread] [Share Topic] [Print]



Anthony Nordquist, on behalf of the SalineOS project, is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com. As such, if you click the above banner and then make any purchase including digital downloads, a small percentage will be paid to the SalineOS project.
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile