Forum
« New Thunar custom actions »

Welcome Guest. Please Login or Register.
May 25, 2013, 8:39pm



Return to or visit the SalineOS webpage

Forum :: General :: Testing and Development :: New Thunar custom actions
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: New Thunar custom actions (Read 499 times)
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 New Thunar custom actions
« Thread Started on Apr 14, 2012, 4:25am »

A newly improved set of custom actions and scripts for them have been added to git for preliminary testing. To install them you need to:


1. Add a user to the sudo group with the command: gpasswd -a username sudo
Replace username with the user you wish to add.
You will need to logout and back in or reboot for this to take effect.
2. Install yad, packages are available in git.
3. Go to your clone of my git tree and go to the folder CustomActions and open a root terminal.
4. Input the command chmod +x ./setup-ca && ./setup-ca

Changes include:
Image to usb has been written entirely from scratch. The umount code is more hearty, it displays partition labels on the USB device, shows the size of USB devices, was done using yad and is overall more pleasing to the eyes.

All the image custom actions have been ported over to yad.

You can now have notes attached to a file name (This has been in git for awhile, but has now been cleaned up and improved for release).

The checksum custom action has been made available to .backup files and will now use the gtkhash program to actually generate and present the checksum hashes. This program is all of 206k and allows for generating hashes in just about every algorithm supported on Linux (Defaults to generating md5 and sha1 hashes).

Added custom actions for mounting and unmounting of .backup files created with salineos-backup.

Added custom action for starting the restoration process of a .backup file.

The disk usage utility now shows a bigger window, sometimes the filenames were too long and were wrapping around on the old one.

A custom action was added for .iso files, that allows booting them with KVM. KVM will be included pre-installed on SalineOS 2.x systems. This custom action will use procurator to actually boot the images, so you will have the ability to create virtual disks for installing them to.

The mount custom actions now have the name Mount (View Contents). Mount is jargon and should be explained :)

The menu is now in a more logical order, every custom action has had dialogs polished up nicely if they had any (Including window icons and the like) and new icons attached. For best results, use the Simple icon theme in git.

As of this writing there are a total of 26 custom actions for SalineOS 2.x. If you have ideas for more custom actions you would like to see included, please feel free to speak up.
« Last Edit: Apr 20, 2012, 6:28am by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
Richard
Elder Member
*****
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 598
Location: Venezuela
 Re: New Thunar custom actions
« Reply #1 on Apr 14, 2012, 7:14am »

How about one to compare the contents of 2 directories and create 2 lists of differences that could be copied to the other.
For instance: using a pendrive I have a backup of /dropbox: orig on the hard disk and a copy on a pen drive.
I wish to update the copy on the USB.

The most useful tool I have for this is Krusader and it's about 75 MiB of Kde stuff. Great tool but very bloated.
There is DoubleCommander which does most everything Krusader does, except compare directories. :(

Is it possible to do this with a Thunar action?
Link to Post - Back to Top  IP: Logged

SalineOS-2.0, Xfce4.8, w/3.2.0-4-686-pae
SalineOS-1.7, Xfce4.6.2, w/3.2.0-0.bpo.4-686-pae;
LinuxMint-14, Xfce4.10, w/3.5.0-17-generic
Richard
Elder Member
*****
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 598
Location: Venezuela
 Re: New Thunar custom actions
« Reply #2 on Apr 14, 2012, 7:55am »

Corrections:

First, Install as root: # aptitude install gpass
then:
-- 1. Add a user to the sudo group with the command: gpasswd -a username sudo
+ 1. Add a user to the sudo group with the command: gpass -a username sudo
Link to Post - Back to Top  IP: Logged

SalineOS-2.0, Xfce4.8, w/3.2.0-4-686-pae
SalineOS-1.7, Xfce4.6.2, w/3.2.0-0.bpo.4-686-pae;
LinuxMint-14, Xfce4.10, w/3.5.0-17-generic
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New Thunar custom actions
« Reply #3 on Apr 14, 2012, 7:58am »

I neglected to add that you need to logout and back in for changes to take effect. There is no reason to install gpass for this operation, unless I am missing something.
Link to Post - Back to Top  IP: Logged
Richard
Elder Member
*****
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 598
Location: Venezuela
 Re: New Thunar custom actions
« Reply #4 on Apr 14, 2012, 8:44am »

Cool. I'll try that on my desktop. :) Already installed gpass on the SanDisk16.

Back in the UAE for a week. Planning for a 32 GiB USB to install SalineOS
for traveling with the company AcerAspireOne with WinXP.
« Last Edit: Apr 14, 2012, 8:46am by Richard »Link to Post - Back to Top  IP: Logged

SalineOS-2.0, Xfce4.8, w/3.2.0-4-686-pae
SalineOS-1.7, Xfce4.6.2, w/3.2.0-0.bpo.4-686-pae;
LinuxMint-14, Xfce4.10, w/3.5.0-17-generic
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New Thunar custom actions
« Reply #5 on Apr 14, 2012, 9:06am »


Apr 14, 2012, 7:14am, Richard wrote:
How about one to compare the contents of 2 directories and create 2 lists of differences that could be copied to the other.
For instance: using a pendrive I have a backup of /dropbox: orig on the hard disk and a copy on a pen drive.
I wish to update the copy on the USB.

The most useful tool I have for this is Krusader and it's about 75 MiB of Kde stuff. Great tool but very bloated.
There is DoubleCommander which does most everything Krusader does, except compare directories. :(

Is it possible to do this with a Thunar action?


Done.

You will find a new custom action "Sync Folder To...". This custom action uses the Jesus of copy tools rsync to do the brunt of the work and should allow you to replace that 75 megabytes with 3 kilobytes. It will only update files that have a newer modification date, though it doesn't present a list of said files to you.
« Last Edit: Apr 14, 2012, 9:13am by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
Richard
Elder Member
*****
member is offline

[avatar]



Joined: Jan 2011
Gender: Male
Posts: 598
Location: Venezuela
 Re: New Thunar custom actions
« Reply #6 on Apr 14, 2012, 11:29am »

Thanks. I can see I really need a larger USB pen drive. :)
Had to store my vbox vdi on the hard disk to get all of my dropbox.

You are making Thunar a truly useful tool. Thanks.
Link to Post - Back to Top  IP: Logged

SalineOS-2.0, Xfce4.8, w/3.2.0-4-686-pae
SalineOS-1.7, Xfce4.6.2, w/3.2.0-0.bpo.4-686-pae;
LinuxMint-14, Xfce4.10, w/3.5.0-17-generic
debby
Full Member
***
member is offline





Joined: Nov 2011
Gender: Male
Posts: 124
 Re: New Thunar custom actions
« Reply #7 on Apr 17, 2012, 1:09pm »

Nice. My cpu does not support kvm so I removed it.
Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New Thunar custom actions
« Reply #8 on Apr 18, 2012, 7:19am »

Quite a few CPU's do not support KVM, but for those that do, Boot With KVM is something extremely useful and unique. Virtualbox requires out of tree kernel drivers, requires QT libraries and KVM is a fairly complicated system. Procurator and it's custom action solve all these issues and do it in a simple straight forward way. It is the kind of thing that if I saw it on youtube or read about it and didn't have a CPU that supported it, I would have to go out and buy one. I do realize that my priorities might be a bit off :)

More work has been done on the custom actions in git, changes this time around include:

I moved to fuseiso for mounting non .backup image files, this will now appear for the following files: .iso .bin .nrg .img .mdf .NRG .BIN .ISO .MDF The images will be mounted in the current directory and can be unmounted by either selecting the mount point that is created or the image itself. This adds a dependency on fuseiso, which will be installed for you if you run setup-ca again.


A custom action was added for creating simple playlist files. This will appear for both video and music files, and will create a playlist of all selected files. You can make a playlist that has both music and video files inside it and play it with Parole.

A print file custom action was added for text files and image files. This really needs tested on an image file, I don't own a printer ::)


I also updated the Salty-Ice gtk theme with new tool tips. The white ones blend into the background too much, so I went with black with white text.
« Last Edit: Apr 18, 2012, 10:26am by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
debby
Full Member
***
member is offline





Joined: Nov 2011
Gender: Male
Posts: 124
 Re: New Thunar custom actions
« Reply #9 on Apr 18, 2012, 6:36pm »

The File Notes feature is awesome (kinda too bad I now am enamored with X File Explorer but I have too much data to have just one window open). When you right-click a picture or text file, all that happens with Print File is xfprint dialog opens up and gives you options for creating a post script file which I have no idea what to do with. Send To printer does the same thing. I am kinda curious about the sos-firewall though. And believe you me if I could get a new quad+ core amd I would. Mine is a p4@3.06.
« Last Edit: Apr 19, 2012, 1:08pm by debby »Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New Thunar custom actions
« Reply #10 on Apr 19, 2012, 2:19am »

When someone asked to create the file notes custom action, I didn't see any value in it. Having created it, I was clearly wrong. It was something I wanted, and had no idea that was the case. I don't know much about printing, seeing as I don't even own a printer, but I will look into it and see what I can come up with. Such a custom action is too useful to neglect. You are able to print files from other programs, correct?

I didn't make a post about SOS firewall, because I don't have much to say about it. This is the help dialog the config application includes:

SOS Firewall is designed to be an easy and painless front-end to the Linux firewall system iptables. By default all incoming connections will be silently dropped, and all outgoing connections will be allowed. SOS Firewall is meant for machines that will have only one network connection active at any given time, and where simplicity is more important than fine grained control. For more advanced use cases, it is advised to disable SOS Firewall and install the Firestarter firewall utility.

SOS Firewall will protect each and every network interface, even if that interface is not connected to the internet. Simply put, this means that it does not matter to SOS Firewall what device is connected to the internet or if a device is connected at all, it will apply the same rules universally and automatically (Unless disabled).

That help dialog probably needs some work though, since I do exclude the loopback device from everything (No point in putting a firewall over loopback). There are only two real options in SOS firewall, open a port and close a port you previously opened. This is very consumer friendly in that you don't have to worry about say your laptop changing from ethernet to wifi, it will still have a firewall enabled with all the same rules (Without any interaction on your part).
« Last Edit: Apr 19, 2012, 2:21am by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
debby
Full Member
***
member is offline





Joined: Nov 2011
Gender: Male
Posts: 124
 Re: New Thunar custom actions
« Reply #11 on Apr 19, 2012, 1:06pm »

Yes printing works as usual. XNViewMP will open a ps'd image file making the file size much larger and with text files it will open them but does not actually display them correctly, hence I have no idea what to do with them.

And thanks for the info on SOS. I could find almost nothing on the net in regards. I'll just leave firestarter the way it is.
Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New Thunar custom actions
« Reply #12 on Apr 20, 2012, 1:11am »

There probably is no information anywhere on the net, but what I provide. SOS firewall is written by me, but uses the same back end as Firestarter (And, just about every other firewall). I wrote it to be a basic as you can get front end to iptables (The Linux built in firewall). Simply put, SOS firewall by default sees an incoming connection on any physical network device and drops it silently, and allows you to open a port(s) selectively. The close option will show you a list of the ports you have manually opened, and allow you to close them again. SOS firewall is fairly smart when it comes to default setup, it allows all connections on the loopback device (Virtual device that some applications use to communicate on the local machine) and it allows all incoming connections that are related to a connection you have established (Like passive FTP connections).

I should note that the firewall will come pre-enabled on 2.x, but is a bit difficult to setup from git.
« Last Edit: Apr 20, 2012, 5:39am by Anthony Nordquist »Link to Post - Back to Top  IP: Logged
Anthony Nordquist
Administrator
*****
member is offline




[homepage]

Joined: Dec 2010
Gender: Male
Posts: 1,339
 Re: New Thunar custom actions
« Reply #13 on Apr 20, 2012, 5:45am »

New print custom actions have been added, utilizing the yad built in print dialog, please try them out and let me know. :)
Link to Post - Back to Top  IP: Logged
debby
Full Member
***
member is offline





Joined: Nov 2011
Gender: Male
Posts: 124
 Re: New Thunar custom actions
« Reply #14 on Apr 21, 2012, 11:24pm »

They work perfect. Pretty sweet anthony.
Link to Post - Back to Top  IP: Logged
   [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