Small fixes

This commit is contained in:
Natsumi
2025-12-25 08:35:58 +13:00
parent 44b0c8bfde
commit 6977cfd9a4
5 changed files with 41 additions and 24 deletions

View File

@@ -700,7 +700,7 @@ async function createDesktopFile() {
// Download the icon and save it to the target directory
const iconPath = path.join(homePath, '.local/share/icons/VRCX.png');
if (!fs.existsSync(iconPath)) {
if (!fs.existsSync(iconPath) || fs.statSync(iconPath).size === 0) {
const iconDir = path.dirname(iconPath);
if (!fs.existsSync(iconDir)) {
fs.mkdirSync(iconDir, { recursive: true });