Skip to content

Commit

Permalink
Revert "Make tools launchable without runAsync"
Browse files Browse the repository at this point in the history
This reverts commit aa1eac3.
  • Loading branch information
ferdnyc committed May 27, 2024
1 parent aa1eac3 commit 54979a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 1 addition & 6 deletions src/preferences-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,4 @@ const Preferences = GObject.registerClass({
}
});

const prefs = new Preferences();
if (prefs.hasOwnProperty('runAsync'))
await prefs.runAsync([system.programInvocationName].concat(ARGV));
else
prefs.run([system.programInvocationName].concat(ARGV));

await (new Preferences()).runAsync([system.programInvocationName].concat(ARGV));
7 changes: 2 additions & 5 deletions src/service/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,5 @@ const Service = GObject.registerClass({
}
});

const service = new Service();
if (service.hasOwnProperty('runAsync'))
await service.runAsync([system.programInvocationName].concat(ARGV));
else
service.run([system.programInvocationName].concat(ARGV));
await (new Service()).runAsync([system.programInvocationName].concat(ARGV));

0 comments on commit 54979a5

Please sign in to comment.