Fixing a Clock-Only GDM Login Screen and Missing GNOME Icons Caused by a Conflicting Bubblewrap AppArmor Profile

Abstract: A locally installed AppArmor profile attached to /usr/bin/bwrap can block GNOME's sandboxed image loader, breaking the GDM greeter and dock icons. Remove the duplicate profile and reload the stock Bubblewrap policy.

Created: 2026-11-22 by

When an upgraded Ubuntu system boots to a gray GDM screen showing only the clock — and the GNOME dock later appears without its icons — the cause is usually not GDM or GNOME Shell itself. Check the kernel log for an AppArmor message reading conflicting profile attachments against /usr/bin/bwrap: a locally added profile that claims the same binary as the distribution's own Bubblewrap policy prevents GNOME's sandboxed image loader from starting, and the login dialog and desktop icons fail as a side effect. Removing the duplicate profile and reloading the stock one restores everything while keeping AppArmor fully enabled.

Why a sandbox policy can take down the login screen

Modern GNOME decodes images — user avatars, thumbnails, shell artwork — through a helper called glycin, which runs each image inside a Bubblewrap sandbox instead of the shell process itself. GDM's login dialog depends on that pipeline to build its user list, and the desktop relies on it for icon and thumbnail rendering.

Bubblewrap needs unprivileged user namespaces, and Ubuntu mediates /usr/bin/bwrap with dedicated AppArmor profiles so those namespaces stay confined. That design works until a second profile attaches to the same executable. When two profiles claim one attachment point, the kernel cannot decide which policy applies, refuses the exec, and logs an audit entry. The glycin loader dies; GNOME Shell then reports errors such as Could not load a pixbuf and a JavaScript failure in loginDialog.js (Argument child may not be null) because a widget that should have been populated was never created. The visible result is a clock-only greeter and a dock with missing icons.

It also explains why reinstalling gdm3 or gnome-shell changes nothing: every package file is intact. The failure lives in runtime security policy, not on disk.

Confirm the conflict before touching anything

If the graphical session is unusable, switch to a text console with Ctrl+Alt+F3 and log in there. Inspect the current boot's kernel messages:

sudo journalctl -k -b | grep -i bwrap

A conflict looks like this:

apparmor="AUDIT" operation="exec" info="conflicting profile attachments"
name="/usr/bin/bwrap" comm="gly-hdl-loader"

Then list every Bubblewrap-related profile on disk:

ls /etc/apparmor.d | grep bwrap

Two entries where Ubuntu ships one — the stock profile alongside something like bwrap-userns — is the red flag. Read the extra file. A profile shaped like this, attached directly to /usr/bin/bwrap, is the duplicate:

profile bwrap-system /usr/bin/bwrap flags=(unconfined) {
  userns,
  include if exists <local/bwrap-system>
}

Only remove profiles you can attribute. If the file came from a tool you installed and deliberately attaches to bwrap, you have found the conflict; if in doubt, rename it temporarily rather than deleting it.

Remove the duplicate profile without disabling AppArmor

Four steps, run from the console or a root shell:

  1. Unload the conflicting profile from the running kernel:
    sudo apparmor_parser -R /etc/apparmor.d/bwrap-userns
  2. Keep it from loading at boot by symlinking it into the disable directory; the original file stays on disk for review:
    sudo mkdir -p /etc/apparmor.d/disable
    sudo ln -s /etc/apparmor.d/bwrap-userns /etc/apparmor.d/disable/
  3. Make sure the distribution's own profile is active:
    sudo apparmor_parser -r /etc/apparmor.d/bwrap-userns-restrict
  4. Restart the AppArmor service:
    sudo systemctl restart apparmor

Mind the two parser flags: capital -R removes a profile from the kernel, while lowercase -r loads or replaces one. Mixing them up is an easy way to end up with no Bubblewrap policy at all.

Verify, reboot, and what to try if the greeter is still broken

As your normal user, confirm Bubblewrap can create a minimal sandbox:

bwrap --ro-bind / / --unshare-user --unshare-pid true && echo OK

Seeing OK means the exec is no longer blocked. Reboot, and the login screen should show the user list and password field again, with dock icons intact.

If the greeter is still broken after the audit lines disappear from the log, you are dealing with a different fault — check journalctl -u gdm -b, your graphics driver, and free disk space. This fix addresses the conflicting-attachment signature specifically, not every possible GDM failure.

Stop it from happening again

  • After installing tools that ship their own sandboxing — AI coding agents, container helpers, build sandboxes — check whether any new file under /etc/apparmor.d attaches to binaries the distribution already covers, bwrap above all.
  • Identify a profile's owner with dpkg -S /etc/apparmor.d/bwrap-userns; "not owned by any package" means an installer script dropped it there.
  • After each release upgrade, skim journalctl -k -b for apparmor="AUDIT" lines early — they expose policy conflicts before they cascade into desktop failures.
  • Security note: one custom file can hold several profiles. Disabling the file disables all of them — if it also carried, say, a sandbox profile for a coding agent, review that tool's configuration and re-create what you need as a profile that does not compete for the same attachment.

Frequently Asked Questions

Why didn't reinstalling GDM3 or GNOME Shell help?

Nothing was missing. The packages were intact; the kernel was refusing to execute /usr/bin/bwrap under a conflicting policy, so the sandboxed image loader failed at runtime no matter how many times the packages were reinstalled.

Is removing the custom profile a security risk?

Much less than disabling AppArmor entirely. The distribution's own Bubblewrap profile stays active and continues to confine sandboxed processes, whereas the duplicate was already preventing any policy from applying cleanly.

How do I find out which program installed the profile?

Run dpkg -S /etc/apparmor.d/bwrap-userns. If dpkg reports no owner, the file was written by a manual installer or script — check that tool's documentation before re-enabling anything.

Could this conflict affect Flatpak or other sandboxed apps too?

Yes. Anything launching bwrap — Flatpak, some browser sandboxes, image viewers using glycin — hits the same attachment conflict, with symptoms appearing wherever the sandbox runs first. The same diagnosis and fix apply.

The login screen is fixed but icons are still missing — now what?

Confirm no bwrap audit lines remain in the current boot's kernel log. If they are gone but icons are still absent, log out completely or clear the thumbnail and icon caches; a stale session from before the fix can mask the recovery.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More