#!/usr/bin/perl # simple-folder-opener.pl # by Apollia of Astroblahhh.Com. http://astroblahhh.com/ # # Original version completed on an unknown date. # # Comments completed on 5/10/2011. # # Public domain. # # The version of this script with extensive instructions/comments # should be here: # # http://astroblahhh.com/software/perl/simple-folder-opener.txt # # #################################################################### # # # The script begins below. # $Folder_To_Open="/mnt/sda3/"; # Example Linux path: # # /mnt/sda3/ $File_Manager_Shell_Command="rox"; # You can leave this alone if you're using Rox-Filer. # # "rox" is the shell command to launch Rox-Filer. # # "thunar" is the shell command to launch Thunar (if you have it). # # # # # Nothing beyond this point needs to be changed. exec ("$File_Manager_Shell_Command $Folder_To_Open"); # The below two lines are an alternative way to accomplish exactly the # same thing as the above exec line - namely, opening $Folder_To_Open with your # file manager. #chdir $Folder_To_Open; #exec ($File_Manager_Shell_Command);