An open API service indexing awesome lists of open source software.

https://github.com/mapi68/desktop-icon-backup-manager

Desktop Icon Backup Manager is a utility that allows users to save, restore, and manage the positions of Windows desktop icons, including support for adaptive scaling across different screen resolutions
https://github.com/mapi68/desktop-icon-backup-manager

backup-restore desktop-customization desktop-icon-manager desktop-manager desktop-utility icon-backup icon-organizer icon-restoration productivity-tools pyqt6 python-gui system-tray win32api windows-automation windows-desktop windows-utilities

Last synced: 19 days ago
JSON representation

Desktop Icon Backup Manager is a utility that allows users to save, restore, and manage the positions of Windows desktop icons, including support for adaptive scaling across different screen resolutions

Awesome Lists containing this project

README

          

# Desktop Icon Backup Manager โ€” Save, Restore & Manage Windows Desktop Icon Positions

[![โ˜• Buy me a coffee](https://img.shields.io/badge/Support%20Us-Buy%20a%20Coffee-FF5E5B?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/mapi68)

[![Python](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org)
[![Windows 7, 8, 10, 11](https://img.shields.io/badge/Windows-7%20%7C%208%20%7C%2010%20%7C%2011-0078D4?style=for-the-badge&logo=windows&logoColor=white)](https://www.microsoft.com/windows)

[![Latest Release](https://img.shields.io/github/v/release/mapi68/desktop-icon-backup-manager?style=for-the-badge&logo=github&color=2ea44f)](https://github.com/mapi68/desktop-icon-backup-manager/releases)
[![Total Downloads](https://img.shields.io/github/downloads/mapi68/desktop-icon-backup-manager/total?style=for-the-badge&logo=github-actions&color=6f42c1)](https://github.com/mapi68/desktop-icon-backup-manager/releases)

[![MIT License](https://img.shields.io/badge/License-MIT-41AD49?style=for-the-badge&logo=opensourceinitiative&logoColor=white)](https://opensource.org/licenses/MIT)
[![Actively Maintained](https://img.shields.io/badge/Maintained-Yes-green?style=for-the-badge&logo=github)](https://github.com/mapi68/desktop-icon-backup-manager/graphs/commit-activity)

---

## Quick Overview

**Desktop Icon Backup Manager** is the most feature-complete, free, open-source tool for **saving and restoring desktop icon positions on Windows 7, 8, 10, and 11**. It's the only solution offering a **live visual diff preview before restoration**, **automatic adaptive scaling for resolution changes**, **comprehensive multi-monitor support**, and **full command-line automation** โ€” packaged in a single portable `.exe` requiring no installation.

> **TL;DR:** Windows keeps rearranging your desktop icons without warning. This tool saves your exact layout and restores it instantlyโ€”with a color-coded preview showing exactly what will change. **Free. Open Source. Portable. No installation needed.**

---

## Does Your Desktop Icon Layout Keep Changing? You're Not Alone

Windows has had a well-documented bug since Windows 7 that persists through Windows 11 (including the latest 25H2 version): **desktop icons spontaneously rearrange themselves** without user action. This frustrating issue affects millions of Windows users daily.

### Common Triggers for Desktop Icon Rearrangement:

- ๐Ÿ”„ **After Windows Updates** โ€” Icons reset to the left side, auto-sort alphabetically, or redistribute randomly
- ๐Ÿ–ฅ๏ธ **After Connecting/Disconnecting External Monitors** โ€” Entire layout collapses onto the primary display when external monitors are disconnected
- ๐ŸŽฎ **After Playing Full-Screen Games** โ€” Games change resolution on launch/exit, causing Windows to scramble all icon positions
- ๐Ÿ’ค **After Sleep, Hibernation, or Lock Screen** โ€” Icons shift position, especially along the right edge of the desktop
- ๐Ÿ”Œ **After Changing Screen Resolution or DPI** โ€” Icons pile up in the top-left corner or become inaccessible
- ๐Ÿ“บ **After Switching Between Displays** โ€” Moving from laptop screen to external TV or projector completely disrupts the layout
- ๐Ÿ” **After System Reboot** โ€” Windows ignores carefully arranged positions and auto-arranges instead

**Desktop Icon Backup Manager is the definitive solution.** Save your perfect desktop layout in one click. Restore it in seconds whenever Windows moves icons aroundโ€”and see a color-coded preview of every change before you commit.

---

## ๐Ÿ“– Complete Documentation

[![Download User Manual](https://img.shields.io/badge/๐Ÿ“–%20Full%20Manual-PDF%20Download-EC1C24?style=for-the-badge&logo=adobe-acrobat-reader&logoColor=white)](https://mapi68.github.io/desktop-icon-backup-manager/manual.pdf)

> **Complete documentation, tutorial videos, and advanced guides** are available in the [Desktop Icon Backup Manager User Manual (PDF)](https://mapi68.github.io/desktop-icon-backup-manager/manual.pdf)

---

## Why Desktop Icon Backup Manager Stands Apart

While other icon layout tools simply save coordinates and restore them, **Desktop Icon Backup Manager goes far beyond basic functionality** with advanced features you won't find in competing tools.

### ๐Ÿ” Live Diff Preview โ€” A Unique Feature

Before restoring any backup, you see a **real-time, color-coded visual overlay** showing **exactly which icons will move**, which are already in the correct position, and which exist in the backup but are missing from your current desktop.

**No other free Windows desktop icon tool offers this feature.** You always know precisely what will happen before clicking Restoreโ€”eliminating surprises and accidental icon movement.

#### Color Legend:
| Indicator | Meaning |
|-----------|---------|
| ๐Ÿ”ต **Blue (soft halo)** | Already in correct position โ€” **will not move** |
| ๐ŸŸ  **Orange** โ†’ ๐Ÿ”ด **Red** | **Will move** โ€” orange shows current position, red shows saved destination |
| ๐ŸŸข **Green** | Exists in backup but **not currently on desktop** โ€” will be skipped |

### ๐Ÿ”„ Adaptive Scaling for Resolution Changes

Restoring a backup from a 1920ร—1080 monitor onto a 2560ร—1440 display? **Icon positions are automatically recalculated proportionally**, so they land in the correct area of your new screen. Icons no longer pile up in corners when resolution changesโ€”this includes DPI scaling differences.

**Works seamlessly across:**
- Different resolution changes (1080p โ†” 1440p โ†” 4K)
- DPI scaling differences (100% โ†” 125% โ†” 150%)
- Multiple monitor configurations

### โš–๏ธ Compare Any Two Backups

Go beyond "current vs. latest backup." **Compare any two saved layouts side-by-side** to see exactly which icons were added, removed, or repositioned between snapshots. Track how your desktop evolved over time, or choose the best snapshot from multiple old backups.

### ๐Ÿ–ฅ๏ธ Multi-Monitor Awareness & Configuration Detection

Every backup records complete monitor configuration: count, resolution, and physical arrangement. When restoring on a different setup, **the app warns you automatically** before proceeding.

**Create named backups for each configuration:**
- `Laptop Only` โ€” for standalone laptop use
- `Office Dock` โ€” for docked configuration with external monitors
- `Home Dual Monitor` โ€” for home office setup
- Switch between configurations instantly with a single click

### โšก Full Command-Line Automation

Run backup and restore operations **silently from the command line**, Windows Task Scheduler, login scripts, or batch files with no GUI. Schedule **automatic desktop icon backups at Windows login**โ€”your layout is always safe without manual intervention.

```bash
# Silent backup to background
desktop-icon-backup-manager.exe --backup --silent

# Silent restore of latest layout
desktop-icon-backup-manager.exe --restore latest --silent
```

### ๐Ÿ”“ Completely Open Source (MIT Licensed)

**Every line of code** is publicly available on GitHub under the MIT licenseโ€”auditable, transparent, and forkable. No telemetry, no ads, no accounts, no cloud services. Your backup files are plain JSON textโ€”human-readable and portable between machines.

---

## Complete Feature List

### Core Features โ€” Save & Restore Desktop Icon Layouts

- **๐Ÿ’พ One-Click Quick Backup** โ€” Save entire desktop icon layout instantly with optional descriptive tag (`Before Windows Update`, `Dual Monitor Setup`, etc.)
- **โ†บ One-Click Restore** โ€” Restore icon positions from the latest backup or pick any snapshot from your backup history
- **๐Ÿท๏ธ Custom Tags & Descriptions** โ€” Label each backup with meaningful names for easy identification and organization
- **๐Ÿ“‹ Quick-Access Profiles Dropdown** โ€” 14 pre-made profile names for instant tagging:
- *Work, Gaming, Presentation, Dev/Coding, Meeting, Home, Office, Laptop, Docked/External Monitor, Clean Desktop, Pre-Update, Pre-Reboot, Favorite, Test*
- One-click selection pre-fills the tag field; edit further if needed
- **๐Ÿ“Š Complete Metadata Tracking** โ€” Every backup records screen resolution, DPI scaling, monitor count, and arrangement

### Advanced Features โ€” What Sets This Tool Apart

- **๐Ÿ” Live Diff Preview** โ€” Real-time color-coded overlay showing exactly what will move before restore *(unique feature)*
- **๐Ÿ–ผ๏ธ Visual Dot-Map Layout Preview** โ€” Mini-map visualization of all icon positions with hover tooltips
- **๐Ÿ”„ Adaptive Scaling** โ€” Proportional position recalculation when restoring to different resolution or DPI *(unique feature)*
- **๐Ÿ–ฅ๏ธ Multi-Monitor Full Support** โ€” Save/restore across any monitor configuration with automatic mismatch warnings
- **๐Ÿ‘๏ธ Show/Hide Desktop Icons** โ€” Quickly toggle visibility of all desktop icons (`Ctrl+H` shortcut) without affecting backup data โ€” useful for clean desktop screenshots, presentations, or focus mode
- **โš–๏ธ Backup Comparison Tool** โ€” Diff any two saved layouts side-by-side *(unique feature)*
- **โœ๏ธ Inline Tag Editing** โ€” Double-click backup tags in the table to rename instantlyโ€”no dialog boxes
- **๐Ÿ“ค Export Backups** โ€” Export selected or all backups to ZIP archive or folder for backup, sharing, or off-site storage
- **๐Ÿ“ฅ Import Backups** โ€” Import `.json` backup files or ZIP archives from other machinesโ€”duplicates safely skipped
- **๐Ÿ—‘๏ธ Smart Auto-Cleanup** โ€” Automatically manage backup count (keep 5, 10, 25, 50, or unlimited most recent)
- **โšก System Tray Integration** โ€” Save or restore silently from taskbar tray icon without opening main window

### Automation & Command-Line (CLI) Features

- **Auto-Save on Exit** โ€” Automatically backup desktop icon positions every time the application closes
- **Auto-Restore on Startup** โ€” Automatically restore latest layout every time Windows starts
- **๐Ÿ”” Automatic Update Checker** โ€” Check GitHub for new versions at startup with one-click download; also available manually via Help menu
- **Command Line Interface (CLI)** โ€” Full `--backup`, `--restore`, `--silent` support for scripting, Task Scheduler, and batch automation
- **Non-Blocking Threads** โ€” Save/restore operations never freeze the UI; live progress indicator always visible

### Usability & User Experience

- **๐Ÿ“‹ Sortable & Filterable Backup Table** โ€” Sort backups by tag, resolution, icon count, or timestamp; real-time search filtering
- **๐ŸŽจ Color-Coded Tag Bar** โ€” Each unique tag gets a distinct color indicator on the left edge of backup rowsโ€”consistent tags always show same color for instant visual recognition
- **โ†”๏ธ Fully Resizable Windows** โ€” All windows adapt to any screen size, resolution, or DPI scaling
- **๐ŸŒ 26 Language Support** โ€” Auto-detected from Windows locale, manually selectable:
- Arabic, Chinese (Simplified), Chinese (Traditional), Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hindi, Italian, Japanese, Korean, Norwegian Bokmรฅl, Polish, Portuguese (Brazil), Portuguese (Portugal), Romanian, Russian, Slovenian, Spanish, Swedish, Turkish, Ukrainian
- **โŒจ๏ธ Full Keyboard Navigation** โ€” All features accessible via keyboard shortcuts (see shortcuts table below)
- **๐Ÿ“‹ Timestamped Activity Log** โ€” Complete operation history with timestamps; copy with `Ctrl+A`/`Ctrl+C`
- **๐Ÿ—’๏ธ Persistent Log File** โ€” Every operation silently logged to `history.log` (max 500 entries, auto-trimmed)
- **โœ… Confirmation Dialogs** โ€” Always confirms before overwrite or deleteโ€”no accidents

---

## Comparison: Desktop Icon Backup Manager vs Competitors

Desktop Icon Backup Manager is the most comprehensive solution. Here's how it compares to other available tools:

| Feature | **Desktop Icon Backup Manager** | ReIcon (Sordum) | DesktopOK | Windows Built-in |
|---------|:---:|:---:|:---:|:---:|
| **Save icon positions** | โœ… | โœ… | โœ… | โŒ |
| **Restore icon positions** | โœ… | โœ… | โœ… | โŒ |
| **Live visual diff preview** | โœ… | โŒ | โŒ | โŒ |
| **Visual dot-map preview** | โœ… | โŒ | โŒ | โŒ |
| **Compare any two backups** | โœ… | โŒ | โŒ | โŒ |
| **Inline tag editing** | โœ… | โŒ | โŒ | โŒ |
| **Color-coded tag indicators** | โœ… | โŒ | โŒ | โŒ |
| **Export/Import backups (ZIP & folder)** | โœ… | โŒ | โŒ | โŒ |
| **Adaptive scaling (resolution changes)** | โœ… | โœ… | โŒ | โŒ |
| **Multi-monitor support** | โœ… | โœ… | โœ… | โŒ |
| **CLI/Task Scheduler automation** | โœ… | โœ… | โŒ | โŒ |
| **Backup search & filtering** | โœ… | โŒ | โŒ | โŒ |
| **Auto-save on exit** | โœ… | โš ๏ธ partial | โœ… | โŒ |
| **Auto-restore on startup** | โœ… | โš ๏ธ via shortcut | โœ… | โŒ |
| **Automatic update checker** | โœ… | โŒ | โŒ | โŒ |
| **System tray integration** | โœ… | โœ… | โœ… | โŒ |
| **Open source (MIT license)** | โœ… | โŒ | โŒ | โ€” |
| **Portable executable** | โœ… | โœ… | โœ… | โ€” |
| **Windows 11 25H2 support** | โœ… | โœ… | โš ๏ธ | โ€” |
| **Multi-language UI** | โœ… | โŒ | โœ… | โ€” |
| **Free forever** | โœ… | โœ… | โœ… | โ€” |

**Why the Differences Matter:**
- **ReIcon** is lightweight with CLI support but lacks visual previews, backup comparison, and search functionality
- **DesktopOK** is the oldest tool in this space but is closed-source, lacks CLI, offers no diff preview, and receives infrequent Windows 11 updates
- **Desktop Icon Backup Manager** is the only solution with live visual diff previews, cross-backup comparison, and an auditable open-source codebase

---

## System Requirements

- **Windows Versions:** Windows 7, 8, 10, or 11 (32-bit and 64-bit, including latest 25H2)
- **Python:** 3.8+ *only required if running from source code*; the `.exe` has zero external dependencies
- **Desktop Icons:** Must be visible (Right-click desktop โ†’ **View** โ†’ enable **Show desktop icons**)
- **Permissions:** No administrator rights requiredโ€”runs as standard user

---

## Getting Started โ€” Installation & Setup

### Option 1: Download Pre-Built Executable (Recommended)

No installation. No Python. No dependencies. Download, extract, and run.

1. Visit the [Releases page](https://github.com/mapi68/desktop-icon-backup-manager/releases)
2. Download the latest ZIP file
3. Extract to any folder (e.g., `C:\Tools\Desktop Icon Backup Manager\`)
4. Run `Desktop Icon Backup Manager.exe`
5. The `icon_backups` folder and `settings.ini` are created automatically on first run

**Syncing Across Multiple PCs with OneDrive (Advanced):**
- Create a folder in OneDrive: `C:\Users\YourName\OneDrive\DIBM\`
- Extract the ZIP into that OneDrive folder
- The `icon_backups` and `settings.ini` files automatically sync across all your Windows PCs
- Run the `.exe` from that OneDrive folder on each machine
- โš ๏ธ Avoid running simultaneously on multiple PCs to prevent file conflicts

### Option 2: Run from Source Code (Python)

```bash
git clone https://github.com/mapi68/desktop-icon-backup-manager.git
cd desktop-icon-backup-manager
pip install -r requirements.txt
python main.py
```

**Required Python Libraries:**
- `PyQt6` โ€” GUI framework
- `pywin32` โ€” Windows API access

---

## How to Use โ€” Step-by-Step Guide

### Saving Your Desktop Icon Layout

1. *(Optional)* Type a descriptive tag in the text fieldโ€”examples:
- `Before Windows Update`
- `Work Setup โ€” Dual Monitors`
- `Gaming Configuration`
- Leave blank for default `Quick Backup` label

2. **Alternative:** Click the **๐Ÿ“‹ Profiles** dropdown to the right of the tag field
- Choose one of 14 pre-made names (Work, Gaming, Presentation, Dev/Coding, Meeting, Home, Office, Laptop, Docked/External Monitor, Clean Desktop, Pre-Update, Pre-Reboot, Favorite, Test)
- The selected name is instantly copied into the tag field
- Edit further if needed, then save

3. Click **๐Ÿ’พ SAVE QUICK BACKUP** button or press `Ctrl+S`

**Result:** A compact JSON snapshot (2โ€“10 KB) containing all icon positions and screen metadata is saved to the `icon_backups` folder.

> **Note:** Pressing `Ctrl+S` always tags the backup as *"Quick Backup (Shortcut)"*. Use the button instead to save with custom tags.

### Restoring Your Desktop Icons

**Quick Restore (Latest Backup):**
- Click **โ†บ RESTORE LATEST** button
- Confirm the action in the dialog
- Icon positions are instantly restored to the saved layout

**Full Control (Choose Specific Backup):**
1. Click **โ†บ BACKUP MANAGER** button (or press `Ctrl+M`)
2. Browse your backup history, search by tag, or filter by resolution
3. **Preview the Live Diff** โ€” see exactly which icons will move (orange โ†’ red), stay (blue), or be skipped (green)
4. Click **โ†บ Restore** to apply the selected layout

### Editing Backup Tags

In the Backup Manager window:
1. **Double-click** any tag in the first column of the backup table
2. **Edit the text inline** โ€” type your new description
3. **Press Enter** to save or **Escape** to cancel
4. Changes are immediately written to the backup file

> **Note:** Double-clicking other columns (Resolution, Icon Count, Timestamp) opens the restore dialog as usual.

### Exporting Backups (Backup, Share, or Archive)

1. Open **โ†บ BACKUP MANAGER** (press `Ctrl+M`)
2. **Select backups** to export (or select all)
3. Click **๐Ÿ“ค Export Backups...** button (or use **File โ†’ ๐Ÿ“ค Export Backups...**)
4. Choose export format:
- **ZIP Archive** โ€” Single `.zip` file containing all selected backups
- **Folder** โ€” Copy `.json` files to a destination folder of your choice
5. Confirm location and export
6. **Success message** shows how many backups were exported

### Importing Backups (Restore from Another PC)

1. Open **โ†บ BACKUP MANAGER** (press `Ctrl+M`)
2. Click **๐Ÿ“ฅ Import Backups...** button (or use **File โ†’ ๐Ÿ“ฅ Import Backups...**)
3. **Select files:** Choose one or more `.json` backup files and/or `.zip` archives
4. The importer validates each file before importing
5. **Duplicate handling:** Files that already exist in `icon_backups` are automatically **skipped** (never overwritten)
6. **Summary dialog** shows: โœ“ imported, โญ๏ธ skipped (already exist), and any errors

### Command-Line Automation (Advanced)

Silent backup and restore for scripts, Task Scheduler, and batch files:

```bash
# Silent backup โ€” no window, exits immediately
desktop-icon-backup-manager.exe --backup --silent

# Restore the most recent layout silently
desktop-icon-backup-manager.exe --restore latest --silent

# Restore a specific saved layout by filename
desktop-icon-backup-manager.exe --restore "1920x1080_20241211_143015.json" --silent
```

**Exit Codes:** `0` = success, `1` = error

**Automatic Backup at Windows Login (Using Task Scheduler):**
1. Open **Windows Task Scheduler** (search from Start menu)
2. Create โ†’ **Create Basic Task**
3. **Name:** `Desktop Icon Auto-Backup`
4. **Trigger:** Select "When I log on"
5. **Action:** Start a program
- Program: `C:\Path\To\desktop-icon-backup-manager.exe`
- Arguments: `--backup --silent`
6. Click Finish
7. **From now on:** Your desktop icon layout is automatically backed up every time you log in

---

## Settings Reference & Configuration

### Available Settings

| Setting | Description | Default |
|---------|-------------|---------|
| **Start Minimized to Tray** | Launch application hidden with zero visual footprint; access via tray icon | `false` |
| **Auto-Save on Exit** | Automatically back up desktop icons every time the application closes | `false` |
| **Auto-Restore on Startup** | Automatically restore the latest icon layout every time Windows starts | `false` |
| **Enable Adaptive Scaling** | Recalculate icon positions proportionally when restoring to different resolution | `false` |
| **Minimize to Tray on Close** | Clicking the close (X) button hides to tray instead of quitting | `false` |
| **Check for Updates on Startup** | Automatically check GitHub for new version 10 seconds after launch | `true` |
| **Auto-Cleanup Limit** | Auto-delete oldest backupsโ€”keep 5, 10, 25, 50, or unlimited | `0` (unlimited) |

### Configuration File (settings.ini)

Settings are stored in `settings.ini` alongside the executable. Automatically created on first run. Edit with any text editor:

```ini
[General]
start_minimized=false
auto_save_on_exit=false
auto_restore_on_startup=false
check_updates_on_startup=true
adaptive_scaling_enabled=false
close_to_tray=false
cleanup_limit=0
geometry=@Rect(100 100 800 650)
```

Invalid values automatically reset to defaults on next launch.

> **โš ๏ธ Warning:** Enabling both **Auto-Save on Exit** and **Auto-Restore on Startup** creates a cycle where any layoutโ€”even a broken oneโ€”gets saved and restored. If icons are already misaligned, use the Backup Manager to restore a known-good snapshot first.

---

## Keyboard Shortcuts

Quick reference for all keyboard commands:

| Shortcut | Action |
|----------|--------|
| `Ctrl+S` | Save quick backup |
| `Ctrl+M` | Open Backup Manager |
| `Ctrl+H` | Show/Hide Desktop Icons |
| `Ctrl+,` | Open Settings |
| `Ctrl+Q` | Exit application |
| `F1` | Open User Manual (PDF) |

---

## Backup File Format & Structure

Backups are stored as human-readable JSON text files in the `icon_backups` subfolder:

**Filename Format:** `{width}x{height}_{YYYYMMDD}_{HHMMSS}.json`

**Example:** `1920x1080_20241211_143015.json`

**File Structure Example:**
```json
{
"timestamp": "2024-12-11T14:30:15.123456",
"icon_count": 12,
"description": "Work Setup โ€” Dual Monitors",
"display_metadata": {
"monitor_count": 2,
"primary_resolution": "1920x1080",
"screens": [...]
},
"icons": {
"This PC": [100, 200],
"Recycle Bin": [100, 350],
"Documents": [200, 200],
"Downloads": [200, 350]
}
}
```

**Why JSON Format?**
- Plain text โ€” human-readable and auditable
- Portable โ€” copy between machines easily
- Compact โ€” 50 backups take less than 500 KB of storage
- Compatible โ€” open with any text editor

---

## Frequently Asked Questions

### General Questions

**Can I rename a backup tag after saving?**
Yes โ€” in the Backup Manager, double-click the tag cell in the first column to edit it directly in the table. Changes are saved to the `.json` file immediately.

**What are Profiles and how do I use them?**
Profiles is a dropdown menu next to the tag field containing 14 pre-made names (Work, Gaming, Presentation, Dev/Coding, Meeting, Home, Office, Laptop, Docked/External Monitor, Clean Desktop, Pre-Update, Pre-Reboot, Favorite, Test) to help you tag backups consistently. Select one and the name is instantly copied into the tag fieldโ€”edit further if needed before saving. All profile names are fully translated to 26 supported languages.

**Can I transfer backups to another PC?**
Yes โ€” use **๐Ÿ“ค Export Backups...** in the Backup Manager to package backups as a ZIP archive or copy to a folder. On the target machine, use **๐Ÿ“ฅ Import Backups...** to bring them in. Existing files are automatically skipped to prevent overwriting.

### Windows Issues & Troubleshooting

**Why do my desktop icons keep moving in Windows 11?**
This is a long-standing Windows bug that Microsoft has never fixedโ€”it affects Windows 7, 10, and 11 (including 25H2). Windows silently changes screen resolution when you connect a monitor, start a game, wake from sleep, or install updates, causing icons to rearrange. Desktop Icon Backup Manager solves this by saving your layout and restoring it with one click whenever Windows moves icons.

**How do I prevent Windows from rearranging desktop icons?**
There is no built-in Windows setting that permanently prevents icon rearrangement. The most reliable solution is Desktop Icon Backup Manager: save your layout, restore it with one click after Windows moves things. Enable **Auto-Restore on Startup** to restore your layout automatically every Windows bootโ€”no manual rearrangement ever needed again.

**My desktop icons moved after a Windows Updateโ€”how do I recover them?**
1. Open Desktop Icon Backup Manager
2. Click **Backup Manager** (or press `Ctrl+M`)
3. Look for the backup created before the update (check timestamps)
4. Click **โ†บ Restore**
5. If Auto-Save on Exit was enabled, a backup was automatically created when you last closed the app

**I want to preview what will change before restoringโ€”how?**
This is a standout feature. Select any backup in the Backup Manager and the **live diff preview** shows instantly:
- **Blue icons** โ€” Already in correct position, won't move
- **Orange โ†’ Red arrows** โ€” Will move (orange = current, red = destination)
- **Green icons** โ€” In backup but not on desktop, will be skipped

### Multi-Monitor & Resolution Questions

**Can I restore my icons after connecting an external monitor?**
Yes โ€” the app fully supports multi-monitor setups and saves positions across all displays. It warns you if monitor count differs from the backup. Enable **Adaptive Scaling** if resolution differs.

**Does Adaptive Scaling work between very different resolutions (1080p to 4K)?**
Yes โ€” the algorithm proportionally recalculates every icon position to fit new dimensions, so icons land in the correct area rather than piling up in corners.

**How do I manage multiple monitor configurations?**
Create separate named backups for each:
- `Laptop Only` โ€” standalone laptop
- `Office Docked` โ€” with external monitors
- `Home TV Setup` โ€” with TV as secondary display
Then switch between them instantly with one click.

### Feature & Technical Questions

**Is Desktop Icon Backup Manager truly free?**
Completely free, forever, MIT licensed. No ads, no telemetry, no required accounts, no nag screens. Source code is on GitHub for inspection and contribution.

**Will antivirus software flag the .exe?**
Some antivirus tools flag programs that interact with Windows Explorer's memory, even when using only standard Win32 API callsโ€”the same ones Windows uses internally. If flagged, add the `.exe` to your whitelist. Full source code is available on GitHub for independent verification.

**How does Desktop Icon Backup Manager compare to ReIcon and DesktopOK?**
All three tools save and restore desktop icon positions. Desktop Icon Backup Manager uniquely offers:
- **Live diff preview** โ€” see exactly which icons will move
- **Cross-backup comparison** โ€” diff any two saved layouts
- **Visual layout preview** โ€” mini-map of all icon positions
- **Open-source MIT-licensed code** โ€” fully auditable

See the [detailed comparison table](#comparison-desktop-icon-backup-manager-vs-competitors) above for complete details.

**Does the program check for updates automatically?**
Yes โ€” by default, the program checks GitHub for new versions 10 seconds after startup. If found, a tray notification appears and a log entry is added. You can manually check anytime via **Help โ†’ Check for Updates**. Clicking "Download Update" opens the releases page. Disable via **Settings โ†’ Check for Updates on Startup**.

**Can I automate desktop icon backups with Windows Task Scheduler?**
Yes โ€” use `desktop-icon-backup-manager.exe --backup --silent`. The process runs in the background, saves your layout, and exits immediately. Set as a login trigger in Task Scheduler for fully automatic, zero-effort backups. See the [Command-Line Automation section](#command-line-automation-advanced) for detailed instructions.

**Where are backup files stored? Can I move them?**
In the `icon_backups` subfolder next to the `.exe`. Files are plain JSONโ€”you can copy them to another machine or store in a cloud-synced folder. Filenames include resolution and timestamp for easy identification.

**Does it work on older Windows versions?**
Yes โ€” Desktop Icon Backup Manager is fully compatible with Windows 7, 8, 10, and 11 (including 25H2), both 32-bit and 64-bit.

---

## Troubleshooting Guide

### Desktop Icons Not Visible or Inaccessible

**Error Message:** "Unable to find desktop ListView control"

**Cause:** Desktop icons are hidden or the ListView control is inaccessible.

**Solutions:**
1. Right-click desktop โ†’ **View** โ†’ enable **Show desktop icons**
2. Restart Windows Explorer:
- Press `Ctrl+Shift+Esc` to open Task Manager
- Right-click **Windows Explorer** โ†’ **Restart**
3. Check for third-party desktop replacements (e.g., Stardock Fences) that might be interfering
4. Try running Desktop Icon Backup Manager as Administrator

### Icons Restore to Wrong Positions or Pile Up

**Cause:** Resolution or monitor configuration differs from when backup was saved.

**Solutions:**
1. **Enable Adaptive Scaling:**
- Open **Settings** (Ctrl+,)
- Check **Enable Adaptive Scaling on Restore**
- This proportionally recalculates positions for new resolution
2. **Confirm monitor configuration:**
- Verify the same monitors are connected
- Check they're in the same physical arrangement as when backup was created
3. **Create configuration-specific backups:**
- Save separate backups for each setup: `Laptop Only`, `Office Dock`, `Home TV`
- Switch between them based on your current configuration

### Program Flagged by Antivirus

**Cause:** The app uses standard Win32 API calls to read/write icon positionsโ€”the same method Windows Explorer uses. Some antivirus heuristics flag this activity.

**Solution:**
1. Add the `.exe` to your antivirus whitelist/exclusions
2. Visit the GitHub repository for full source code inspection
3. Build from source if you prefer to verify the code yourself

### Settings Not Saved After Restart

**Cause:** Application was force-closed instead of properly exiting.

**Solutions:**
1. Always close via **File โ†’ Exit** or press `Ctrl+Q`
2. Avoid force-killing via Task Managerโ€”this skips the settings save routine
3. Verify `settings.ini` is writable:
- The folder must not be read-only
- The folder must not be inside `Program Files` (requires admin to write)
- Try moving to `C:\Tools\` or your user folder

### Application Won't Start

**Causes & Solutions:**
1. **Another instance is running:**
- Check system tray for existing icon
- Close existing instance before launching again
2. **Corrupt settings file:**
- Delete `settings.ini` to reset to defaults
- Application will recreate it on next launch
3. **Corrupt backup causes startup crash:**
- Manually edit `settings.ini`
- Set `auto_restore_on_startup=false`
- Restart application
- Fix or delete the corrupt backup
- Re-enable auto-restore if desired

### Multi-Monitor Layout Incorrect After Restore

**Cause:** Different number of monitors or arrangement than when backup was saved.

**Solutions:**
1. **Enable Adaptive Scaling:**
- This automatically adjusts positions for different configurations
2. **Maintain separate backups per setup:**
- Create named backups for each configuration
- Example: `1Monitor`, `2Monitors_DualDock`, `3Monitors_Home`
3. **Check warning dialogs:**
- App shows warnings if monitor count differs
- Review the diff preview before confirming restore

---

## Acknowledgments & Credits

Desktop Icon Backup Manager is built on the shoulders of excellent open-source projects:

- **[PyQt6](https://www.riverbankcomputing.com/software/pyqt/)** โ€” Modern cross-platform GUI framework
- **[pywin32](https://github.com/mhammond/pywin32)** โ€” Windows API bindings for Python

---

## Screenshots Gallery

### Main Window โ€” Save & Restore Desktop Icons


Desktop Icon Backup Manager main window - save and restore desktop icon positions on Windows 10 and 11



Main window interface โ€” quickly save or restore your desktop icon layout with one click




### Backup Manager โ€” Browse, Search & Preview Layouts


Backup Manager interface - browse, search, preview live diff, and restore saved desktop icon layouts



Backup Manager โ€” browse your entire backup history, search by tag, and preview changes with live diff visualization




### Splash Screen on Launch


Desktop Icon Backup Manager splash screen displayed on application launch



Clean splash screen appears on application launch




### Dark Mode with Multi-Language Support


Dark mode - Desktop Icon Backup Manager with Italian language and multi-monitor support



Dark mode with full multi-language support (shown in Italian) โ€” supports 26 languages




### Live Diff Preview โ€” The Unique Feature


Live diff preview - unique feature showing exactly which desktop icons will move before restoring



Live diff preview (unique feature) โ€” see exactly which icons will move (orangeโ†’red), stay (blue), or be skipped (green) before restoring




### Restore Confirmation Dialog


Confirmation dialog before restoring a desktop icon backup



Confirmation dialog โ€” always confirms before applying changes to prevent accidental icon movement




---

## Related Resources & Further Reading

- **[Windows Desktop Icon Troubleshooting Guide](https://support.microsoft.com/en-us/windows)** โ€” Official Microsoft support documentation
- **[How to Fix Desktop Icons Rearranging](https://www.howtogeek.com)** โ€” Comprehensive troubleshooting guides
- **[PyQt6 Documentation](https://www.riverbankcomputing.com/software/pyqt/intro)** โ€” GUI framework documentation
- **[Windows API Reference](https://learn.microsoft.com/en-us/windows/win32/)** โ€” Complete Windows API documentation

---

## License & Legal Information

Desktop Icon Backup Manager is released under the **MIT License**, one of the most permissive open-source licenses available.

**You are free to:**
- Use the software for any purpose, commercial or personal
- Modify the source code
- Distribute the software
- Use the software privately

**You must:**
- Include a copy of the license
- Include a copyright notice

**See the full license:** [MIT License](https://opensource.org/licenses/MIT)