Skip to content

Commit 69b858f

Browse files
authored
Revert "Populate Native Apps' Jailer on Install" (#211)
* Revert "Populate Native Apps' Jailer on Install" * Only keep types change
1 parent d7c0f96 commit 69b858f

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

services/better-jail.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

services/service.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import Service, { Message } from 'webos-service';
1313

1414
import { asyncStat, asyncExecFile, asyncPipeline, asyncUnlink, asyncWriteFile, asyncReadFile, asyncChmod, asyncMkdir } from './adapter';
1515
import { fetchWrapper } from './fetch-wrapper';
16-
import { buildBetterJail } from './better-jail';
1716

1817
import rootAppInfo from '../appinfo.json';
1918
import serviceInfo from './services.json';
@@ -497,12 +496,6 @@ function runService(): void {
497496

498497
try {
499498
const appInfo = await getAppInfo(installedPackageId);
500-
if (appInfo.type === 'native' && runningAsRoot) {
501-
await createToast(`Updating jailer config for ${appInfo.title}…`, service);
502-
await buildBetterJail(appInfo.id, appInfo.folderPath).catch((err) => {
503-
console.warn('jailer execution failed:', err);
504-
});
505-
}
506499
await createToast(`Application installed: ${appInfo.title}`, service);
507500
} catch (err: unknown) {
508501
console.warn('appinfo fetch failed:', err);

0 commit comments

Comments
 (0)