Desktop Icons
🖥 Adding Desktop Icons for New Users¶
When creating a custom Ubuntu-based ISO with Cubic, you can include preconfigured desktop icons so that new users immediately see them after account creation.
1️⃣ Location for Desktop Icons¶
- Place your
.desktopfiles in the/etc/skel/Desktop/directory of yourcustom-root:
custom-root/etc/skel/Desktop/
-
Purpose:
-
The
/etc/skeldirectory acts as a template for new user accounts. - Any file or folder here is automatically copied into a new user’s home directory (
~/Desktop) when the account is created.
2️⃣ File Format¶
- Desktop icons are standard
.desktopfiles. - Example structure of a
.desktopfile:
[Desktop Entry]
Name=My App
Comment=Launch My App
Exec=/usr/bin/myapp
Icon=/usr/share/icons/hicolor/48x48/apps/myapp.png
Terminal=false
Type=Application
Categories=Utility;
Tips:
- Ensure the
Execpath points to the correct executable inside your ISO. Iconshould point to an image installed in the system (e.g.,/usr/share/icons/).- Use proper capitalization and
.desktopfile extension.
3️⃣ Displaying the Icons¶
- Modern GNOME desktops require the Desktop extension to show icons on the desktop.
- Make sure your ISO includes “Desktop Icons NG (DING)” or a similar extension.
- Without it, users will not see any icons, even if the
.desktopfiles are correctly placed.