summaryrefslogtreecommitdiffstats
path: root/src/pdf-invoice
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf-invoice')
-rw-r--r--src/pdf-invoice/main.vala4
-rw-r--r--src/pdf-invoice/test.vala2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pdf-invoice/main.vala b/src/pdf-invoice/main.vala
index cbb73f2..3d8e298 100644
--- a/src/pdf-invoice/main.vala
+++ b/src/pdf-invoice/main.vala
@@ -17,7 +17,7 @@ private string datadir;
public static int main(string[] args) {
try {
- Config cfg = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
+ Config cfg = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.Config", "/io/mainframe/shopsystem/config");
datadir = cfg.get_string("INVOICE", "datadir");
} catch(IOError e) {
error("IOError: %s\n", e.message);
@@ -26,7 +26,7 @@ public static int main(string[] args) {
}
Bus.own_name(
- BusType.SESSION,
+ BusType.SYSTEM,
"io.mainframe.shopsystem.InvoicePDF",
BusNameOwnerFlags.NONE,
on_bus_aquired,
diff --git a/src/pdf-invoice/test.vala b/src/pdf-invoice/test.vala
index 0ca02fd..e55f3a3 100644
--- a/src/pdf-invoice/test.vala
+++ b/src/pdf-invoice/test.vala
@@ -14,7 +14,7 @@
*/
public static int main(string args[]) {
- PDFInvoice invoice = Bus.get_proxy_sync(BusType.SESSION, "io.mainframe.shopsystem.InvoicePDF", "/io/mainframe/shopsystem/invoicepdf");
+ PDFInvoice invoice = Bus.get_proxy_sync(BusType.SYSTEM, "io.mainframe.shopsystem.InvoicePDF", "/io/mainframe/shopsystem/invoicepdf");
InvoiceRecipient r = {
"Max",