4 Copyright 2007-2008 Vincent Carmona
7 This file is part of ZiK.
9 ZiK is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 ZiK is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with ZiK; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 #Ajouter: sorties en consoles pour savoir ce fait ZiK (+ option quiet?? -> voir optparse)
26 Pdir='pix_directory' #Pictures path
27 Ddir='doc_directory' #Documentations path
28 Ldir='locale_directory' #locale path
31 Dir.chdir('data_directory')
51 require 'readplaylist'
58 Dir.chdir(ENV['HOME'])
60 version=Gtk::BINDING_VERSION
61 Gtk.init if version[0]==0 and version[1]<15#Gtk.init is call in Gtk.rb since version 0.15.0
67 when '-d'#Change the path for configuration file and playlist file.
69 unless File.directory?(dir)
70 $stderr.puts "#{dir} is not a directory."
73 Home=File.expand_path(dir);
75 $stderr.puts "Unknown option"
80 Home=File.join(ENV['HOME'],'.ZiK') unless (defined? Home)
81 #---Create ZiK directory ---------