Enlightenment CVS committal
Author : tilman
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/bin
Modified Files:
euphoria
Log Message:
introduce userconfdir support
===================================================================
RCS file: /cvs/e/e17/apps/euphoria/bin/euphoria,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- euphoria 13 May 2006 14:59:17 -0000 1.38
+++ euphoria 29 Jul 2006 01:53:56 -0000 1.39
@@ -1,6 +1,6 @@
#!/usr/bin/ruby -w
-# $Id: euphoria,v 1.38 2006/05/13 14:59:17 tilman Exp $
+# $Id: euphoria,v 1.39 2006/07/29 01:53:56 tilman Exp $
require "ecore"
require "ecore_x"
@@ -25,9 +25,19 @@
Config = Struct.new("Config", :ipc_path, :theme, :time_display_elapsed)
+# backwards compatibility w/ DrFeelgood and earlier
+unless Xmms.respond_to?(:userconfdir)
+ def Xmms.userconfdir
+ ".xmms2"
+ end
+end
+
class Euphoria
DATA_DIR = "/usr/local/share/euphoria"
- DATA_DIR_PRIV = File.expand_path("~/.xmms2/clients/euphoria")
+ DATA_DIR_PRIV = File.join(File.expand_path("~"),
+ Xmms.userconfdir,
+ "clients",
+ "euphoria")
include Singleton
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs