freebsd-ports/x11/gnome-pie/files/patch-src__gui__indicator.vala
2015-02-22 14:32:38 +00:00

23 lines
1.1 KiB
Vala

--- src/gui/indicator.vala.orig 2015-01-23 11:49:05 UTC
+++ src/gui/indicator.vala
@@ -79,7 +79,7 @@ public class Indicator : GLib.Object {
string path = "";
try {
- path = GLib.Path.get_dirname(GLib.FileUtils.read_link("/proc/self/exe"))+"/resources";
+ path = "%%DATADIR%%/resources";
} catch (GLib.FileError e) {
warning("Failed to get path of executable!");
}
@@ -90,10 +90,7 @@ public class Indicator : GLib.Object {
#else
this.indicator = new Gtk.StatusIcon();
try {
- var file = GLib.File.new_for_path(GLib.Path.build_filename(
- GLib.Path.get_dirname(GLib.FileUtils.read_link("/proc/self/exe"))+"/resources",
- icon + ".svg"
- ));
+ var file = GLib.File.new_for_path(GLib.Path.build_filename("%%PREFIX%%/share/icons/hicolor/scalable/apps/", icon + ".svg"));
if (!file.query_exists())
this.indicator.set_from_icon_name(icon);