forked from cromer/pamac-classic
fix #35
This commit is contained in:
parent
83bd32c279
commit
e7f0e086c7
@ -20,7 +20,7 @@
|
|||||||
namespace Pamac {
|
namespace Pamac {
|
||||||
[DBus (name = "org.manjaro.pamac")]
|
[DBus (name = "org.manjaro.pamac")]
|
||||||
public interface Daemon : Object {
|
public interface Daemon : Object {
|
||||||
public abstract void refresh (int force, bool emit_signal) throws IOError;
|
public abstract void start_refresh (int force, bool emit_signal) throws IOError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ int main (string[] args) {
|
|||||||
try {
|
try {
|
||||||
daemon = Bus.get_proxy_sync (BusType.SYSTEM, "org.manjaro.pamac",
|
daemon = Bus.get_proxy_sync (BusType.SYSTEM, "org.manjaro.pamac",
|
||||||
"/org/manjaro/pamac");
|
"/org/manjaro/pamac");
|
||||||
daemon.refresh (0, false);
|
daemon.start_refresh (0, false);
|
||||||
} catch (IOError e) {
|
} catch (IOError e) {
|
||||||
stderr.printf ("IOError: %s\n", e.message);
|
stderr.printf ("IOError: %s\n", e.message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user