Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic-launcher: Ensure $XDG_DATA_HOME/applications exists #1596

Merged
merged 6 commits into from
Jan 27, 2025

Conversation

swick
Copy link
Contributor

@swick swick commented Jan 21, 2025

It is possible that the directory has not been created by anything else before which would make dynamic launcher creation fail.

Resolves: #1583

@swick
Copy link
Contributor Author

swick commented Jan 21, 2025

Side note: this portal is missing tests. Someone should write them.

@swick
Copy link
Contributor Author

swick commented Jan 23, 2025

Working on some tests now but it will have to wait until next week.

swick added 6 commits January 26, 2025 01:26
The call to g_timeout_add_seconds_full makes the data owned which gets
freed when the timeout is removed. Freeing it in the timeout and then
removing the timeout is a double-free.
It is possible that the directory has not been created by anything else
before which would make dynamic launcher creation fail.

Resolves: flatpak#1583
@swick swick force-pushed the wip/dynamic-launcher-mkdir-apps branch from 50b3510 to 77a5fa8 Compare January 26, 2025 00:27
@swick
Copy link
Contributor Author

swick commented Jan 26, 2025

Had a bit of time, added a basic test, found a memory leak, a double free and a misleading error message.

@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jan 27, 2025
@GeorgesStavracas GeorgesStavracas added the portal: dynamic launcher Dynamic Launcher portal label Jan 27, 2025
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jan 27, 2025
Merged via the queue into flatpak:main with commit c7b4c5e Jan 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
portal: dynamic launcher Dynamic Launcher portal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic Launcher portal fails to install when ~/.local/share/applications/ does not exist yet
2 participants