summaryrefslogtreecommitdiff
path: root/Base
AgeCommit message (Collapse)Author
2023-05-16ps: Add `-u` option, to list processes associated with specified usersSam Atkins
2023-05-16ps: Add `-p` option, and distinguish it from `-q`Sam Atkins
2023-05-16ps: Allow `-q` option multiple times, and separated by spaces or commasSam Atkins
Several differences here: - Passing `-q` multiple times will add them together, instead of the last one overwriting the previous ones. - `-q` PIDs can be separated by commas as well as spaces. - We check that the PIDs are integers while parsing the arguments, instead of later on. The "parse a list of things as an option" is extracted into a helper function, because we're going to want the same logic for `-g`, `-G`, `-p`, `-t`, `-u`, and `-U`.
2023-05-16ps: Add the `-a` option, to list all processes associated with terminalsSam Atkins
2023-05-16ps: Add the `-A` optionSam Atkins
This is identical to our existing `-e` option, but both are required by POSIX.
2023-05-16Base: Add man page for pgrepTim Ledbetter
2023-05-15Base: Add man page for pidofTim Ledbetter
2023-05-13Userland+Base: Don't run NetworkSettings in elevated modeFabian Dellwing
2023-05-13Base: Add man page for topTim Ledbetter
2023-05-13Base: Add a test page to load a video element with <source> childrenTimothy Flynn
This verifies we cycle through the source children until we land on one with a video we can play.
2023-05-13FontEditor: Allow application to launch without a fontthankyouverycool
Since LibFSAC requires a reified window before loading a font, it makes sense to have a safe null state for the app. This lets us stay alive after a failed file request on startup, handle failure at any point during initialization, and claw back memory from all our font RefPtrs. A default startup font or none at all can now be set in FontEditor.ini
2023-05-12Base: Run `SpiceAgent` as a user serviceCaoimhe
This allows it to read/write to the user's clipboard properly. Prior to this, it would be writing to the Clipboard server running under the window user, which doesn't impact other users (like anon). Co-authored-by: Daniel Bertalan <dani@danielbertalan.dev>
2023-05-09Base: Add some Arrows & General Punctuation to Csilla Regular 12Cubic Love
Csilla Regular 12 is used for inline code in LibMarkdown. It was missing basic arrows and ellipsis needed by man pages referencing menu items. I have added these and some extras. General Punctuation https://www.unicode.org/charts/PDF/U2000.pdf 2010, 2012-2026, 2032-203A, 203F-2040, 2044, 2047-2048, 204B Arrows https://www.unicode.org/charts/PDF/U2190.pdf 2190-2193
2023-05-09Base: Improve some application man pagesCubic Love
- FontEditor.md - Magnifier.md - Presenter.md - Terminal.md Where an arrow is indicated by -> turn it into an actual arrow → (U+2192 Rightwards Arrow). This looks much neater. Inspired by Notion doing this automatically when you type "->". I've made various corrections: fixing grammatical errors, removing unnecessary or adding-in missing spaces. Made the style of references to menu items more consistent. Generally I've tried to make the pages read better. Terminal has had more adjustment than the others as its Settings were recently changed and the man page now reflects this.
2023-05-09Userland: Show "Ladybird" instead of "Browser" in titles, menus, etcAndreas Kling
While the binary is still called "Browser" for now, let's make it clear that we're converging on a single name for this application.
2023-05-07netstat: Add -e argumentFabian Dellwing
This adds information about the user owning the process to our netstat output. We do not fully match the behaviour of Linux as we don't show an inode information.
2023-05-07Base: Add web server tip to Tips-and-Tricks(7)Cubic Love
Add the very useful tip of how to transfer files from QEMU to your host machine via the built-in web server.
2023-05-07Base: Improve Assistant App Icon (16px)Cubic Love
I've been unsatisfied with the current Assistant app icon (16px). After trying many variations, I have ended-up with this. The changes may be slight, but the bow tie now has a more natural shape including a more prominent knot, bringing it more inline with the 32px version. Plus the shading has been tweaked.
2023-05-07Everywhere: Run spellcheck on all documentationBen Wiederhake
2023-05-06Base+Snake: Capitalize snake skin namesCubic Love
In Snake, the menu for choosing a skin looked messy due to inconsistent capitalization. Two skins names were entirely lowercase. For the sprite-based skins, the menu takes the name of each skin's directory, so I have capitalized these. Capitalizing the original snake skin required more change than simply renaming a directory.
2023-05-05LibGUI: Make `Application`'s construction fallibleLucas CHOLLET
The pattern to construct `Application` was to use the `try_create` method from the `C_OBJECT` macro. While being safe from an OOM perspective, this method doesn't propagate errors from the constructor. This patch make `Application` use the `C_OBJECT_ABSTRACT` and manually define a `create` method that can bubble up errors from the construction stage. This commit also removes the ability to use `argc` and `argv` to create an `Application`, only `Main`'s `Arguments` can be used. From a user point of view, the patch renames `try_create` => `create`, hence the huge number of modified files.
2023-05-05Base+Minesweeper: Move assets from /icons/ to /graphics/Cubic Love
The graphics directory is a more suitable home for game assets.
2023-05-05Base+FlappyBug: Move assets from /icons/ to /graphics/Cubic Love
The graphics directory is a more suitable home for game assets.
2023-05-05Base+ColorLines: Move assets from /icons/ to /graphics/Cubic Love
The graphics directory is a more suitable home for game assets.
2023-05-05Base+LibChess: Move assets from /icons/ to /graphics/Cubic Love
The graphics directory is a more suitable home for game assets.
2023-05-05Base+CatDog: Move assets from /icons/ to /graphics/Cubic Love
The graphics directory is a more suitable home for demo assets. Also, update the example presenter file which uses a CatDog sprite.
2023-05-05Base+LibCards: Move card backs from /icons/ to /graphics/Cubic Love
The graphics directory is a more suitable home for game assets. Also, move card backs into their own subfolder in preparation for a themes subfolder for card fronts.
2023-05-05Base: Demonstrate ArgsParser and format strings in cli project templatekleines Filmröllchen
This demonstrates both an option and an optional positional argument, as well as some simple format string printing with {}.
2023-05-05Base: Split out cpp-library template files into actual fileskleines Filmröllchen
These were part of the postcreate script previously, but with the new powers of sed, we can text-replace the library name and make changing them much more convenient.
2023-05-05Base: Adjust serenity-application template with some cpp-gui pieceskleines Filmröllchen
Namely, the window title and size are carried over, since a larger window with a more readable "Example Application" title is better to understand. I also took the opportunity to add a missing trailing newline to the generated CMake file.
2023-05-05Base: Remove the cpp-gui HackStudio templatekleines Filmröllchen
This template is essentially an older version of the serenity-application template, it does not compile anymore and is therefore entirely redundant.
2023-05-04Base: Add some SVG `<radialGradient>` examplesMacDue
2023-05-01Userland+Base: Treat ".webp" files as images :^)Andreas Kling
2023-04-29Base: Fix incorrectly closed tag in welcome.htmlMacDue
2023-04-28Base: Add SVG gradients test pageMacDue
2023-04-26nc: Add -n option to suppress name resolutionFabian Dellwing
2023-04-26nc: Add -p optionFabian Dellwing
With this change we support the well-known and shorter way to create a listener on all interfaces: `nc -lvp 1337` instead of: `nc -lv 0.0.0.0 1337`
2023-04-26nc: Sort command line arguments alphabeticallyFabian Dellwing
2023-04-25Userland: Remove "Inspector" program and related utilitiesAndreas Kling
This program has never lived up to its original idea, and has been broken for years (property editing, etc). It's also unmaintained and off-by-default since forever. At this point, Inspector is more of a maintenance burden than a feature, so this commit removes it from the system, along with the mechanism in Core::EventLoop that enables it. If we decide we want the feature again in the future, it can be reimplemented better. :^)
2023-04-25Base: Update reference to Help man file locationTim Ledbetter
2023-04-25cal: Add the `-y` option to show the current yearKarol Baraniecki
Without `-y`, to show the current full year you'd have to specify which one: `cal 2023`. Adding `-y` makes it possible to see the full current year without remembering what year we are in. This option is also stolen from FreeBSD :^) Additionally, validate args: prevent passing both -3 and -y at the same time. Passing both `--three-month-mode` and `--year` to `cal` doesn't make sense. You'd either want the one or the other.
2023-04-25cal: Add the `-3` optionKarol Baraniecki
This allows to view just the previous, current, and next month simultaneously. The idea for this is shamelessly stolen from FreeBSD :^)
2023-04-25cal: Get default week start day from CalendarKarol Baraniecki
Making it configurable in system settings :^) The --start-day option can still overwrite this global default. This change makes it no longer possible to use unveil: as we have to load the Calendar config file, which might be in a dynamic location. It's also neccessary to add `cpath` to the pledge, as opening a nonexistent config file with Core::ConfigFile::open_for_app creates it.
2023-04-25cal: Make start of the week configurableKarol Baraniecki
Making all the other parts of the world happier :^) Add a `--starting-day` (`-s`) option to be compatible with GNU cal, which has a similar option. The GNU option takes allows passing either an int or a day name. Let's do something similar using weekdays we already have in AK/DateConstants.h. Also add myself to the copyright header, as by now I've modified most of the lines in this file.
2023-04-25cal: Only show year next to each month in one-month-modeKarol Baraniecki
Additionally rename a loop variable in serenity_main() because after introducing the `Header` enum IMO it's less readable with `i`.
2023-04-25cal: Display month namesKarol Baraniecki
For now let's use them from AK/DateConstants.h, in accordance with the FIXME those propably should be provided by the locale.
2023-04-25cal: Mark the current day as inverted textKarol Baraniecki
...instead of putting a star `*` next to it. This makes `cal`s output much prettier, and gets rid of one FIXME. :^) Don't use the escape sequence from the deleted FIXME - \e[30;47m would set the background to white and foreground to black - which presumably wouldn't do much on a light-theme terminal. Instead use \e[7m which sets the color as "inverted".
2023-04-25cal: Don't accept passing a [day]Karol Baraniecki
Every other cal implementation just highlights the current day instead of letting you specify a custom one to highlight. It doesn't seem to be that useful, and is currently broken - no day gets highlighted at all, because the `target_day` global is never written to. Moreover, this complicates parsing the arguments. This commit also fixes parsing a case where just a year is provided to `cal` - for example `cal 2023`.
2023-04-24Kernel: Allow configuring a Jail to not impose PID isolation restrictionLiav A
This is quite useful for userspace applications that can't cope with the restriction, but it's still useful to impose other non-configurable restrictions by using jails.
2023-04-23LibSQL: Redesign heap storage to support arbitrary amounts of dataJelle Raaijmakers
Previously, `Heap` would store serialized data in blocks of 1024 bytes regardless of the actual length. Data longer than 1024 bytes was silently truncated causing database corruption. This changes the heap storage to prefix every block with two new fields: the total data size in bytes, and the next block to retrieve if the data is longer than what can be stored inside a single block. By chaining blocks together, we can store arbitrary amounts of data without needing to change anything of the logic in the rest of LibSQL. As part of these changes, the "free list" is also removed from the heap awaiting an actual implementation: it was never used. Note that this bumps the database version from 3 to 4, and as such invalidates (deletes) any database opened with LibSQL that is not version 4.