23 lines
1.1 KiB
Vala
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);
|