kitowall 6.3.0 → 6.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/live.js CHANGED
@@ -2118,7 +2118,13 @@ async function liveServiceAutostart(action) {
2118
2118
  out = integratedRendercoreStart(bin);
2119
2119
  }
2120
2120
  else if (action === 'stop' || action === 'disable') {
2121
+ const stopped = await (0, workshop_1.workshopStop)({ all: true });
2121
2122
  out = integratedRendercoreStop(bin);
2123
+ out.stdout = [
2124
+ out.stdout.trim(),
2125
+ `restored_units=${stopped.restored_units.join(',') || '-'}`,
2126
+ `stopped_instances=${stopped.stopped_instances.join(',') || '-'}`
2127
+ ].filter(Boolean).join('\n');
2122
2128
  }
2123
2129
  else {
2124
2130
  integratedRendercoreStop(bin);
@@ -2162,7 +2168,13 @@ async function liveServiceAutostart(action) {
2162
2168
  out = await runSystemctlUser(['enable', 'kitsune-rendercore.service']);
2163
2169
  }
2164
2170
  else if (action === 'disable') {
2171
+ const stopped = await (0, workshop_1.workshopStop)({ all: true });
2165
2172
  out = await runSystemctlUser(['disable', '--now', 'kitsune-rendercore.service'], true);
2173
+ out.stdout = [
2174
+ out.stdout.trim(),
2175
+ `restored_units=${stopped.restored_units.join(',') || '-'}`,
2176
+ `stopped_instances=${stopped.stopped_instances.join(',') || '-'}`
2177
+ ].filter(Boolean).join('\n');
2166
2178
  }
2167
2179
  else if (action === 'start') {
2168
2180
  const binPath = await resolveHostExecutablePath(bin);
@@ -2171,7 +2183,13 @@ async function liveServiceAutostart(action) {
2171
2183
  out = await runSystemctlUser(['start', 'kitsune-rendercore.service']);
2172
2184
  }
2173
2185
  else if (action === 'stop') {
2186
+ const stopped = await (0, workshop_1.workshopStop)({ all: true });
2174
2187
  out = await runSystemctlUser(['stop', 'kitsune-rendercore.service'], true);
2188
+ out.stdout = [
2189
+ out.stdout.trim(),
2190
+ `restored_units=${stopped.restored_units.join(',') || '-'}`,
2191
+ `stopped_instances=${stopped.stopped_instances.join(',') || '-'}`
2192
+ ].filter(Boolean).join('\n');
2175
2193
  }
2176
2194
  else {
2177
2195
  const binPath = await resolveHostExecutablePath(bin);
@@ -33,6 +33,7 @@ const fs_1 = require("../utils/fs");
33
33
  const net_1 = require("../utils/net");
34
34
  const logs_1 = require("./logs");
35
35
  const exec_1 = require("../utils/exec");
36
+ const init_1 = require("./init");
36
37
  const WE_APP_ID = 431960;
37
38
  const SEARCH_TTL_MS = 10 * 60 * 1000;
38
39
  const DEFAULT_PAGE_SIZE = 24;
@@ -1161,6 +1162,9 @@ async function workshopStop(options) {
1161
1162
  await stopKnownLiveProcesses();
1162
1163
  }
1163
1164
  const coexist = shouldRestore ? await workshopCoexistenceExit() : { ok: true, restored: [] };
1165
+ if (shouldRestore) {
1166
+ await (0, init_1.initKitowall)({ namespace: 'kitowall', apply: true, force: true });
1167
+ }
1164
1168
  return {
1165
1169
  ok: true,
1166
1170
  stopped_instances: stopped,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitowall",
3
- "version": "6.3.0",
3
+ "version": "6.10.0",
4
4
  "description": "CLI/daemon for Hyprland wallpapers using swww with pack-based rotation.",
5
5
  "repository": {
6
6
  "type": "git",