Use pkg-config to detect the edje data dir.
[redact.git] / lib / redact / app.rb
index 5a229100b1a3b9f8d22919851c1dcf5c9fdbb37b..30e6791b9e8c1073eb550ffa195e1bf711bd11c6 100644 (file)
@@ -1,6 +1,4 @@
 #--
-# $Id: app.rb 57 2005-06-14 15:11:35Z tilman $
-#
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
 # Permission is hereby granted, free of charge, to any person obtaining
@@ -145,7 +143,7 @@ module Redact
                                        tf_in.flush
 
                                        Tempfile.open("redact_col#{col.id}.amx") do |tf_out|
-                                               incl = `edje-config --datadir`.strip
+                                               incl = `pkg-config edje --variable=datadir`.strip
 
                                                c = "embryo_cc " +
                                                    "-i #{incl}/include " +