summaryrefslogtreecommitdiffstats
path: root/src/xdg-autostart-generator/test-xdg-autostart.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: Fix false positives on newer gccDaan De Meyer2023-05-231-2/+2
| | | | | | Recent gcc versions have started to trigger false positive maybe-uninitialized warnings. Let's make sure we initialize variables annotated with _cleanup_ to avoid these.
* xdg-autostart-service: expand tilde in Exec linesDavid Edmundson2022-09-151-0/+13
| | | | | | | | In typical desktop file parsing it is expected that "~" expands to a home directory. Users may write an autostart file with "Exec=myCoolService ~/.someSpecialConfig" which worked before the systemd migration.
* xdg-autostart-service: Use common boolean parserDavid Edmundson2022-09-131-0/+3
| | | | | | | | | | | Technically the desktop entry specification says value should be the string "true" or "false". Pragmatically every desktop has their own parsing rules which are typically less strict on how to interpret other values. This caused some regressions downstream when we switched to the xdg-autostart-generator where existing handmade files contained values with "True" or "False".
* tree-wide: Use correct format specifiersJan Janssen2022-08-301-1/+1
| | | | gcc will complain about all these with -Wformat-signedness.
* xdg-autostart-service: Fix binary escaping and simplify code a bitBenjamin Berg2022-03-251-2/+2
| | | | | | | | Instead of escaping each component separately, we can instead use quote_command_line. Doing so simplifies the code and fixes an issue where spaces inside the executable name were not escaped. Co-Authored-By: David Edmundson <kde@davidedmundson.co.uk>
* test: Use TEST macros in more placesJan Janssen2022-03-161-12/+7
|
* Merge pull request #18470 from mrc0mmand/ci-clang-12Luca Boccassi2021-02-091-9/+9
|\ | | | | ci: run build test with clang-12 as well
| * tree-wide: fix the string concatenation warning with clang-12Frantisek Sumsal2021-02-081-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | e.g.: ./src/shared/dissect-image.c:2218:39: error: suspicious concatenation of string literals in an array initialization; did you mean to separate the elements with a comma? [-Werror,-Wstring-concatenation] "/usr/lib/os-release\0", ^ ../src/shared/dissect-image.c:2217:39: note: place parentheses around the string literal to silence warning [META_OS_RELEASE] = "/etc/os-release\0" ^ 1 error generated. See: https://reviews.llvm.org/D85545
* | xdg-autostart: Generate autostart services with templated nameDavid Edmundson2021-02-041-1/+1
|/ | | | | | | | | | | | The "XDG standardization for applications" specification states that services should be in the form: app[-<launcher>]-<ApplicationID>[@<RANDOM>].service or app[-<launcher>]-<ApplicationID>-<RANDOM>.scope In this case "autostart" takes the place of [RANDOM] to provide a unique identifier if the same app is launched elsewhere. As it is a service that means it should be set as a template not using a hyphen delimiter.
* xdg: move tests for xdg-autostart-generatorYu Watanabe2021-01-181-0/+93
Then, we can drop src/xdg-autostart-generator from include directories later.