# Everyday Applications

---

# Essential Desktop Applications

_Peios / Using Peios / Everyday Applications_

> Choose the desktop tool for a file, account, or system task.

GXWI Essentials is a suite of desktop applications for everyday work and
system administration. Each application is installed separately. They run
inside your GXWI session and use your account's access rights; opening an
administration window does not give it additional authority.

The suite supplies applications, not the desktop compositor or shell.
Fenesh and Fenestra provide separate desktop interfaces. Their launchers
can open the applications installed on the machine.

## Choosing an application

Use the application whose scope matches the task:

| Task | Application |
|---|---|
| Browse, copy, move, or remove files | File Explorer |
| Edit a small text file | Text Editor |
| Run a shell or terminal program | Terminal |
| Inspect running processes and sessions | Task Manager |
| Control or define a service | Services Manager |
| Inspect disks and mounts | Disk Manager |
| Configure interfaces, name resolution, or firewall rules | Network Manager |
| Inspect registry keys and values | Registry Editor |
| Change machine time, locale, startup, or name | System Settings |
| Install, update, or remove packages | Package Manager |
| Enable or disable installed feature definitions | Feature Manager |
| Upgrade the Peios release | Upgrade Peios |
| Change your own account settings | My Settings |
| Administer local users, groups, and privileges | Principals Manager |
| Manage certificate trust | Security Policy |
| Read events, logs, and metrics | Event Viewer |

The file dialog and permissions editor are shared dialogs opened by these
applications. They are not standalone launcher tasks.

## Reading an outcome

A displayed setting is not proof that its consuming service accepted it.
After a change, read the application's result and check the affected
service, file, or connection. A disabled control or incomplete view can
mean access was refused; it does not mean the underlying object is absent.

Two interfaces have explicit implementation limits. Disk Manager's change
forms do not modify storage. Network Manager marks several firewall
activity displays as **Example data**. Their guides describe what remains
real and what needs separate verification.

The command manuals use the executable names `gxwi-file-explorer`,
`gxwi-text-editor`, and `gxwi-terminal`, alongside the other `gxwi-*`
application names.

---

# File Explorer

_Peios / Using Peios / Everyday Applications_

> Understand file browsing, opening, clipboard operations, and deletion.

File Explorer shows a directory and opens its contents with the installed
applications. A window owns its current directory, selection, and sort
order. Devices showing the same session window see that shared state;
open another window to browse a different location independently.

## Opening an entry

Opening a folder navigates into it. Opening an executable starts it.
Other files use an application that declares support for their file type:
your default takes precedence over the machine default, then the available
candidates are ordered by title. The entry menu lets you choose another
candidate.

The listing identifies file types from their names without reading every
file. When an unknown type is opened, File Explorer can check whether its
contents are text. This probe reads at most 4 KiB from a regular file; it
does not wait for data from a pipe or device. A directory's menu offers
applications that open
directories, including Terminal when it is installed.

A directory listing displays at most 2,000 entries and reports when the
limit is reached. An incomplete listing is not evidence that an omitted
file is absent.

## Copying and moving

Cut and copy select an entry for a later paste. That selection is shared
between File Explorer windows through the session runtime directory.
Without that directory, the selection belongs to one window.

Pasting a copy under an occupied name chooses a copy name. Pasting a cut
entry does not overwrite an existing name; the entry remains selected for
a later move. Copying a directory includes its contents and runs while the
window continues to respond.

## Removal and permissions

Delete asks for confirmation and removes the entry. A directory is removed
with its contents. There is no trash or undo store, so preserve anything
you need before confirming.

**Permissions** opens the shared descriptor editor. File Explorer retains
a handle to the selected object so applying a descriptor targets that
object even if its name changes. The dialog does not supply extra rights.
It offers the access list and the owner for editing as the kernel allows,
found by opening the object for the right to change each one alone. Those
opens read nothing and never conflict with other programs' opens. Where
the kernel cannot say, as for a device or pipe, both are offered and the
kernel decides when you apply. See [The Permissions Editor](/peios/using-peios/permissions/the-permissions-editor.md) and
`gxwi-file-explorer(1)`.

## Names that are not UTF-8

A filename that cannot be displayed as UTF-8 uses replacement characters
in the listing. Local navigation, rename, and deletion retain the original
filename bytes, so identical-looking labels do not identify the same entry.
The shared clipboard accepts only UTF-8 paths and reports other paths as
unsupported rather than silently changing their names.

## Filenames and launching applications

File Explorer keeps the original filename when selecting or changing a file.
The application launch protocol carries UTF-8 text. If a filename cannot be
represented as UTF-8, File Explorer reports that it cannot open the file
through another application. It does not change the filename or launch a
different file. The same check applies when opening a terminal in a folder.

---

# Managing Files

_Peios / Using Peios / Everyday Applications_

> Copy, move, rename, or remove an entry in File Explorer.

Use File Explorer to organize files within the access your account has.
Copying keeps the original; cutting and pasting moves it. Deleting removes
it without a trash folder.

## Before you start

You need File Explorer in a running GXWI desktop and access to the source
and destination directories. Keep a separate copy before deleting data
you might need again.

## Copy or move an entry

1. Open **File Explorer** from the launcher and navigate to the source
   directory.
2. Open the entry's context menu and choose **Copy** or **Cut**.
3. Open the destination directory in this or another File Explorer
   window. Open the directory's context menu and choose **Paste**.
4. Wait for the operation's result before starting another operation on
   the same entry.

## Check the result

Inspect the destination entry and open it when appropriate. A copy leaves
the source intact; a successful move removes it from the old directory.
If a cut name is already occupied, choose a different destination or rename
an entry after reviewing what is there.

## Rename or delete

Select **Rename** from an entry's context menu and enter an unused name.
File Explorer refuses an occupied destination instead of replacing it.

For deletion, review the selected entry, choose **Delete**, and read the
confirmation. Confirm only the intended entry and subtree. Check the
listing afterward; a refusal means the operation did not complete as
requested and needs review, not repeated confirmation without inspection.

Use the directory context menu to create a new folder or file. Its name
must identify a new entry. The manual `gxwi-file-explorer(1)` describes
launch arguments and listing limits.

---

# Editing Text Files

_Peios / Using Peios / Everyday Applications_

> Open, save, and resolve external changes to a small text file.

Text Editor edits one file per window. Unsaved text belongs to the
application window, so reconnecting a browser does not discard it. Closing
the application window asks about unsaved changes.

## Before you start

You need Text Editor in your GXWI session and permission to read the file.
The editor accepts UTF-8 text without NUL bytes, up to 349,525 bytes. Use a
tool suited to larger or binary files when a file exceeds those limits.

## Edit and save

1. Open a text file from File Explorer, or start **Text Editor** for a new
   document.
2. Make the intended change. Press **Ctrl+S** to save. A new document asks
   for a name when first saved.
3. To save under another name, press **Ctrl+Shift+S** and choose an unused
   name. This operation does not overwrite an existing file.

## Check the result

Read the result shown by the editor and confirm that the document has no
unsaved changes. Saving an existing file writes it in place,
preserving its identity rather than replacing it with another file.
Uniform CRLF line endings are preserved; mixed endings are written as LF.

## Changes made elsewhere

The editor checks the file every two seconds. If another program changes
it while your buffer is unchanged, the editor reloads it. If both versions
changed, it asks which to keep. Read both the conflict and the file's
purpose before discarding either version.

Saving in place is not an atomic replacement transaction. Keep a backup
when editing a file whose previous contents need to remain recoverable.
See `gxwi-text-editor(1)` for the supported input and shortcuts.

---

# Using a Terminal

_Peios / Using Peios / Everyday Applications_

> Open a shell or a terminal program in your desktop session.

Terminal runs a shell or another program on a pseudoterminal inside the
desktop. The running terminal belongs to the application, so a browser
reconnection shows the terminal state that remains on the machine.

## Before you start

You need Terminal installed and a running GXWI session. Commands run with
your account's permissions and can change files or system settings within
those permissions.

## Open and use the terminal

1. Open **Terminal** from the launcher. It starts your configured absolute
   shell path, or `/bin/sh`, in your home directory.
2. Enter a command and press **Enter**. Programs that need a desktop
   connection inherit the session environment.
3. Use **Ctrl+Shift+C** to copy selected text and **Ctrl+Shift+V** or
   **Shift+Insert** to paste.

## Check the result

Read the program's output and exit status as you would in another
terminal. Ending the shell closes its window. Closing the application
window hangs up the terminal, which can terminate work still running in
it. Closing a browser page is a different operation from closing the
application window.

To open a shell in a folder, use the folder's application menu in File
Explorer. The command interface also accepts one absolute directory path,
or a program followed by its arguments; see `gxwi-terminal(1)`.

The desktop retains its own keyboard shortcuts while the terminal has
focus. A shortcut reserved by the desktop does not become input to the
terminal program.

## When input waits

Terminal keeps up to 1 MiB of pending input in each browser page. It sends
that input in order as the running program accepts it. If the buffer fills,
typing pauses while the program catches up; its output continues to appear.
A paste that does not fit the remaining space is refused in full with a
message. Wait for the program to read, or paste a smaller amount.

If the connection breaks with input pending, Terminal warns that some input
might already have reached the program. It does not replay that input after
reconnecting, because replaying a command could run it twice. Input already
received by the application might still reach the program. Check the output
before deciding what to type again. The warning remains after reconnection
until you start entering new input.

---

# The File Dialog

_Peios / Using Peios / Everyday Applications_

> Understand what an application does when it asks for a file or a folder.

The shared file dialog lets an application ask you for a file to open, a
name to save, or a folder. The dialog chooses a path; the calling
application opens, writes, or uses that path. A successful selection does
not grant the caller new filesystem rights.

The dialog shows folders first and filters files by the kind the caller
requested. **Up**, **Home**, and the path field change the location.
**Hidden files** includes names beginning with a dot. In save mode, the
selected kind can supply a missing extension, and an occupied name asks
for confirmation.

An application that asks for a folder gets a dialog that shows folders
only. **Choose Folder** chooses the folder you picked or, with nothing
picked, the folder you are in; the dialog shows which path it will choose
before you press it. Only an application that asks for a folder can be
given one: opening and saving never return a folder, and opening one goes
into it instead.

The dialog can also create a folder, rename an entry, or delete it.
Deletion is real: a directory goes with its contents. The dialog runs as
you and disables operations it cannot perform.

Canceling, pressing **Esc**, or closing the dialog reports cancellation to
the caller. The dialog also ends when its caller closes the input
channel. It is not meant to be started as a standalone launcher task.

Developers use the file-choosing protocol or the companion Rust client.
The protocol's shared contract belongs to the Peios userspace
specifications; this suite owns the dialog implementation. See
`gxwi-file-dialog(1)` for transport and lifecycle details.

The selection protocol returns a UTF-8 path. A path that cannot be
represented as UTF-8 is refused explicitly and leaves the dialog open.
Local operations still identify the original entry independently of its
displayed label. Rename refuses an occupied destination, including one
created after the dialog's initial check.
