summaryrefslogtreecommitdiff
path: root/Userland/Applications/Settings
AgeCommit message (Collapse)Author
2023-01-06LibGUI+Everywhere: Use fallible Window::set_main_widget() everywhere :^)Sam Atkins
Rip that bandaid off! This does the following, in one big, awkward jump: - Replace all uses of `set_main_widget<Foo>()` with the `try` version. - Remove `set_main_widget<Foo>()`. - Rename the `try` version to just be `set_main_widget` because it's now the only one. The majority of places that call `set_main_widget<Foo>()` are inside constructors, so this unfortunately gives us a big batch of new `release_value_but_fixme_should_propagate_errors()` calls.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-01Everywhere: Mark dependencies of most targets as PRIVATETim Schumacher
Otherwise, we end up propagating those dependencies into targets that link against that library, which creates unnecessary link-time dependencies. Also included are changes to readd now missing dependencies to tools that actually need them.
2022-10-25Userland: Let applications make use of make_command_palette_action()demostanis
2022-10-14Settings: Support for launching settings apps as rootne0ndrag0n
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-05-25Userland: Use GUI::Process::spawn_or_show_error() for spawn() from a GUIMacDue
2022-05-25LibCore: Return ErrorOr<pid_t> and support arguments in Process::spawnMacDue
This makes the wrapper more like the rest in LibCore, and also removes the annoying limitation of not supporting arguments. There are three overloads one for String, char const *, and StringView argument lists. As long as there are <= 10 arguments the argv list will be allocated inline, otherwise on the heap.
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-28Settings: Convert to TRY + serenity_main(..)Brian Gianforcaro
2021-11-27Settings: Fix launch of settings dialogBrian Gianforcaro
There was a bug report on discord where someone mentioned that launching the keyboard settings always crashed. When looking at the backtrace it became clear we were calling down the `AppFile::executable()` path on uninitialized memory. We can fix this by using the "official" API for obtaining data from the GUI ModelIndex, instead of casting random memory to the object type we expect it to be. :^) Validated this fixes the issue for me locally.
2021-11-26Settings: Make sure settings are listed in alphabetical orderSam Atkins
DirectoryIterator, and so `Desktop::AppFile::for_each()`, doesn't guarantee anything about the order, so we manually sort afterwards. Which means using a manual version of NonnullRefPtrVector, since that doesn't support `quick_sort()`.
2021-08-06Everywhere: Replace Model::update() with Model::invalidate()sin-ack
Most of the models were just calling did_update anyway, which is pointless since it can be unified to the base Model class. Instead, code calling update() will now call invalidate(), which functions identically and is more obvious in what it does. Additionally, a default implementation is provided, which removes the need to add empty implementations of update() for each model subclass. Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2021-08-06Userland: Use Core::Process::spawn() instead of posix_spawn() in placesAndreas Kling
This replaces a bunch of very basic uses of posix_spawn() with the new Core::Process::spawn().
2021-07-26Settings: Tweak initial window sizeAndreas Kling
2021-07-26Settings: Add a very simple Settings applicationAndreas Kling
This is really just a launcher app that gathers all the installed apps in the "Settings" category and presents them in a single window.