Wire Desktop shortcut scripts to use the new icon asset

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-22 09:51:32 +00:00
parent d46fe5b6a4
commit d07c4b6ca2
2 changed files with 5 additions and 3 deletions

View File

@@ -14,10 +14,10 @@ $shortcut = $wsh.CreateShortcut($shortcutPath)
$shortcut.TargetPath = $target $shortcut.TargetPath = $target
$shortcut.WorkingDirectory = $repoRoot $shortcut.WorkingDirectory = $repoRoot
$shortcut.WindowStyle = 7 $shortcut.WindowStyle = 7
$shortcut.Description = "Open xlsx-clean web UI" $shortcut.Description = "Open xlsx-clean"
$iconCandidate = Join-Path $PSScriptRoot "xlsx-clean.ico" $iconCandidate = Join-Path $PSScriptRoot "xlsx-clean.ico"
if (Test-Path $iconCandidate) { if (Test-Path $iconCandidate) {
$shortcut.IconLocation = $iconCandidate $shortcut.IconLocation = "$iconCandidate,0"
} }
$shortcut.Save() $shortcut.Save()
Write-Host "Created $shortcutPath" Write-Host "Created $shortcutPath"

View File

@@ -47,6 +47,8 @@ def install_linux() -> Path:
exec_line = ( exec_line = (
f'{python} -m xlsx_clean.web_app --host 127.0.0.1 --port 8080' f'{python} -m xlsx_clean.web_app --host 127.0.0.1 --port 8080'
) )
icon_png = DESKTOP_DIR / "xlsx-clean.png"
icon_line = str(icon_png) if icon_png.is_file() else "applications-office"
content = f"""[Desktop Entry] content = f"""[Desktop Entry]
Type=Application Type=Application
Version=1.0 Version=1.0
@@ -54,7 +56,7 @@ Name=XlsxClean
Comment=Create a new QC datasheet (xlsx-clean web UI) Comment=Create a new QC datasheet (xlsx-clean web UI)
Exec={exec_line} Exec={exec_line}
Path={REPO_ROOT} Path={REPO_ROOT}
Icon=applications-office Icon={icon_line}
Terminal=false Terminal=false
Categories=Office; Categories=Office;
StartupNotify=true StartupNotify=true