Skip to content

fix(fs): show the folder icon for the XDG Projects directory - #343

Merged
ItsLemmy merged 2 commits into
noctalia-dev:mainfrom
crian:xdg-projects-dir
Dec 6, 2026
Merged

ItsLemmy merged 2 commits into
noctalia-dev:mainfrom
crian:xdg-projects-dir

Conversation

@crian

@crian crian commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the XDG Projects directory to the special folders that get a themed icon. Luciole now shows folder-projects for it, like it does for Documents, Downloads and the others.

GLib 2.90 added G_USER_DIRECTORY_PROJECTS for XDG_PROJECTS_DIR (xdg-user-dirs 0.20; the enum first shipped in the 2.89 development release). The entry sits behind GLIB_CHECK_VERSION(2, 90, 0), so the build is unchanged with older GLib, where the folder keeps the plain folder icon.

Motivation

With xdg-user-dirs 0.20 the Projects folder has a standard icon in the theme (folder-projects), but Luciole shows the generic folder icon.
FileIconPool::setLocalFolder only knew the eight directories that older GLib versions expose.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Build / packaging
  • Documentation only

Related Issue

Testing

Screenshots / Videos

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • This change fits SCOPE.md, or its scope was agreed in an issue or on Discord first.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I ran just format, or this PR has no C++ changes.
  • I ran just lint and the relevant build or test commands, or explained why they were not run.
  • I ran just role-alpha-check, or this PR does not change UI colors.
  • I tested the change in a running Luciole where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/, or this PR does not change user-facing behavior or settings.
  • I used canonical names for settings, paths, and identifiers.

Additional Notes

@ItsLemmy ItsLemmy added the talia-review Ask Talia for a preliminary AI review (removed once posted) label Dec 6, 2026

@talia-ci talia-ci Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talia preliminary review

Check Result
Merge score 🟢 5/5 — No issues found; ready for CI and human review
Findings None found
Review depth 4/5 — how thoroughly the changed code could be checked by reading it
Coverage 1 of 1 changed files reviewed

What Talia checked: Inspected the added GLib-guarded Projects entry, setLocalFolder/getLocal consumption, GIO-match test, packaging's GLib 2.76+ floor and architecture notes; remaining uncertainty is external GLib 2.90 enum/icon-name and precedence details not verifiable in-repo.

Run details
  • Commit reviewed: 2802645
  • Source lookups: 24 file reads, 20 searches
  • Prompt version: 859b7490ca3d

Preliminary automated review: Talia read the changed code and related source; nothing was built, run or tested, and AI can make mistakes. It is not a scope acceptance or a promise to merge; a human reviewer makes the final call. See our ethos.

@talia-ci talia-ci Bot removed the talia-review Ask Talia for a preliminary AI review (removed once posted) label Dec 6, 2026
@ItsLemmy

ItsLemmy commented Dec 6, 2026

Copy link
Copy Markdown
Member

Thanks!

@ItsLemmy
ItsLemmy merged commit 7db470f into noctalia-dev:main Dec 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants