Skip to content

[BUG] V5 - Malformed configuration file for labwc theme #2710

@ibarona

Description

@ibarona

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia.

Bug description

OS: CachyOS
Noctalia version: noctalia-git 5.0.0.r1191.g39a4a335c-6

I have a minimal configuration file located in ~/.config/labwc/rc.xml
When I apply the Catppuccin theme using Noctalia configuration, this file is updated incorrectly.
Specifically, the following lines are prepended to the very beginning of the file:

 <theme>
      <name>noctalia</name>
  </theme>

This places them right before the XML prologue and the root tag:

<?xml version="1.0" encoding="utf-8"?>
<labwc_config>
    <keyboard>
        <device>
            <layout>es</layout>
        </device>
    </keyboard>
    <desktops>
        <number>2</number>
        <names>
            <name>1</name>
            <name>2</name>
        </names>
    </desktops>
</labwc_config>

As a result, the final configuration becomes a malformed XML file. Consequently, labwc fails to parse it properly, and settings like virtual desktops are lost/ignored.

Steps to reproduce

  1. Enable theming for labwc

Expected behavior

Well-formed XML configuration file.
In this example:

<?xml version="1.0" encoding="utf-8"?>
<labwc_config>
    <theme>
        <name>noctalia</name>
    </theme>
    <keyboard>
        <device>
            <layout>es</layout>
        </device>
    </keyboard>
    <desktops>
        <number>2</number>
        <names>
            <name>1</name>
            <name>2</name>
        </names>
    </desktops>
</labwc_config>

Actual behavior

Malformed configuration file.

 <theme>
      <name>noctalia</name>
 </theme>

<?xml version="1.0" encoding="utf-8"?>
<labwc_config>
    <keyboard>
        <device>
            <layout>es</layout>
        </device>
    </keyboard>

    <desktops>
        <number>2</number>
        <names>
            <name>1</name>
            <name>2</name>
        </names>
    </desktops>
</labwc_config>

Logs / error output


Noctalia version

5.0.0.r1191.g39a4a335c-6

Compositor

Labwc

Distribution

Arch-based

Environment information

AUR file: https://aur.archlinux.org/packages/noctalia-git

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions