Anthony Nordquist Administrator
     member is offline
![[homepage] [homepage]](http://images.proboards.com/new/buttons/www_sm.png) 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.
| |
|
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..
|
|
|
petrek Senior Member
    member is offline
![[avatar] [avatar]](http://img543.imageshack.us/img543/3784/avatarebm.jpg)
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?
|
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.
|
|
|
petrek Senior Member
    member is offline
![[avatar] [avatar]](http://img543.imageshack.us/img543/3784/avatarebm.jpg)
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.
|
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.
|
|
|
petrek Senior Member
    member is offline
![[avatar] [avatar]](http://img543.imageshack.us/img543/3784/avatarebm.jpg)
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?
|
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.
|
|
|
petrek Senior Member
    member is offline
![[avatar] [avatar]](http://img543.imageshack.us/img543/3784/avatarebm.jpg)
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
|
Skallagrigg |
|