summary refs log tree commit diff
path: root/pkgs/desktops/pantheon/desktop/wingpanel-indicators/applications-menu/fix-paths.patch
blob: 25e3891a205afcba4bdd8c95468dd65d83e6085f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/src/synapse-plugins/calculator-plugin.vala b/src/synapse-plugins/calculator-plugin.vala
index 18ca3af..f5d1076 100644
--- a/src/synapse-plugins/calculator-plugin.vala
+++ b/src/synapse-plugins/calculator-plugin.vala
@@ -44,9 +44,7 @@ namespace Synapse {
                 _("Calculator"),
                 _("Calculate basic expressions."),
                 "accessories-calculator",
-                register_plugin,
-                Environment.find_program_in_path ("bc") != null,
-                _("bc is not installed")
+                register_plugin
             );
         }
 
@@ -87,7 +85,7 @@ namespace Synapse {
             if (matched) {
                 Pid pid;
                 int read_fd, write_fd;
-                string[] argv = {"bc", "-l"};
+                string[] argv = {"@bc@", "-l"};
                 string? solution = null;
 
                 try {