Fixes the function getImageViewerApp (#1237)

This commit is contained in:
end-4
2025-04-24 09:04:51 +02:00
committed by GitHub
+1 -1
View File
@@ -14,7 +14,7 @@ import WaifuService from '../../../services/waifus.js';
import { darkMode } from '../../.miscutils/system.js';
async function getImageViewerApp(preferredApp) {
Utils.execAsync(['bash', '-c', `command -v ${preferredApp}`])
return Utils.execAsync(['bash', '-c', `command -v ${preferredApp}`])
.then((output) => {
if (output != '') return preferredApp;
else return 'xdg-open';