Commit Graph
49 Commits
Author SHA1 Message Date
Oscar Lesta fed0e6149e Haiku Book: fix typo on _launch_intro.dox.
launch_daemon only understands "no_safemode".

Change-Id: Ib7efb6064a49c35185ffacba3e8642eacd1fe970
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8686
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-12-18 00:17:12 +00:00
Oscar Lesta 2d54103521 mount_server: Tweak the scoring values to avoid (some) false positives.
Before this, having partitions with the same fsName, blocksize, and capacity,
was enough to be considered a match for `initialMountRestore` mode.

That is too prone to false positives.

Now we require those three values, plus either deviceName, or volumeName
(or both) to match, before considering a partition as a valid match for
auto-mounting.

Fixes #19253.

Modifications by waddlesplash: put the score in an enum, and use
bitwise operations in checking the score.

Change-Id: Ifae63cd8e51fe5c8a38130130343a7209bff6d0a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8565
Reviewed-by: waddlesplash <[email protected]>
2024-11-26 20:35:36 +00:00
Oscar Lesta 8ece85d220 configure: let CC default to gcc-x86 on Haiku 32 bits.
Fixes #18935.

Change-Id: I05807d0f38e38b7abaad770fc390d38cbc76f8a5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8503
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-10-25 16:14:43 +00:00
Oscar Lesta 12aa283408 libtracker: avoid Tracker crash while changing resolutions.
After settings Backgrounds to None for all worskapces, I was getting a 100%
reproducible segment violation on "fShowingBitmap->fBitmap->Bounds()" with every
resolution change.

Change-Id: I2a3640a3c33e571d772c1b38b21087346215dca8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8176
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-09-02 15:19:56 +00:00
Oscar Lesta d4b18b5602 Clock: make sure the first on-screen draw uses current time.
This avoids starting the clock at 00:00, just to jump to current time.

Change-Id: I911b60716ab60722e4ac38a3d597ab495fb5945d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8049
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-08-19 15:58:42 +00:00
Oscar Lesta 3761b2f420 etc/profile: locale settings might have changed since SetupEnvironment.
Before this, changing the locale settings via Locale preflet required
a reboot in order for the changes to get picked up by programs running
on Terminal.

Fixes: #18734

Change-Id: I149931c511020f9eb881e71f79d1fd6c647477e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7792
Reviewed-by: nephele nephele <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-07-18 09:23:27 +00:00
Oscar Lesta 13581b3d2a proj2make: some minor improvements.
- Enable use of `find_directory()` when searching for "etc/makefile".
- Fixed a missing return statement on `_l::str()`;
- Fix "STATIC" typo on gAppTypes.
- Removed some superfluous spaces on the output makefile, added a couple
  of missing ones.
- Avoid adding library paths as include dirs.
- Replace BeOS header paths with Haiku's.
- Some minor code style changes, here and there.

Change-Id: I03f221c39e894fb6ab6ffebd95ffe5e749678540
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7786
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-07-02 15:39:43 +00:00
Oscar Lesta 9e2c51c22f package: adjust help text spacing to be less cramped.
Using 4 spaces, instead of two, makes it easier to find
the available commands at a glance.

Change-Id: I2bbfaa323b89ebce490e34a39c4dfd163c23fd06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7784
Reviewed-by: waddlesplash <[email protected]>
2024-06-20 16:18:53 +00:00
Oscar Lesta 1ee3891ab8 gutenprint: update from gutenprint8-5.3.1 to gutenprint9-5.3.4
Requires HaikuPorts#7573 to be merged.

Closes #17836.

Smoke-tested on beta4 32 bits:

Gutenprint printer addon loads libgutenprint.so.9.5.0, shows new
printer models from where to choose from at "install new printer"
time, and "prints something" when using the Print-To-File transport.

Change-Id: Ia40dfd3c2163795e83c2cc173fd510d64c4bf6c9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5969
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Alex von Gluck IV <[email protected]>
2024-03-28 15:56:15 +00:00
Oscar Lesta 5e20a59fa2 TextSearch: improve edge-case in opening of "Set target" BFilePanel.
Do not fail silently if the saved fFilePanelPath doesn't exists, or
otherwise can't be used.

Default to B_USER_DIRECTORY, and print the issue to stdout at least.

Change-Id: If08720fa0d6d91bb7bd4b5a922be7136012aae95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7536
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-03-21 16:04:11 +00:00
Oscar Lesta 1ddf7e73a5 Terminal: change some shortcuts again.
hrev57608 changes conflict with the use of left-option-as-meta (#18832).

Avoid that by using:

- CMD+left/right for switching tabs, and Shift+CMD+left/right for moving them.
- Ctrl+Shift+up/down for one-line-at-a-time scrolling.

Should fix #18832, but I'm still not happy with those scrolling shortcuts.

Also: removed some `(mod & B_COMMAND_KEY)` checks that don't make much sense
on `BView::KeyDown()`. They were there since hrev26038.

Change-Id: I8d276d18057d309b786f0480c27071cf084b38ef
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7495
Reviewed-by: humdinger humdinger <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-03-21 09:40:09 +00:00
Oscar Lesta ea989da7f1 SetupEnvironment: export XDG_STATE_HOME env var.
Fixes: #18257.

Change-Id: Id7f81b4be3b63f383963f0d752e6ffeda41c3945
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7506
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2024-03-07 15:53:06 +00:00
Oscar Lesta 5c5467233d tests: fix format warnings on GetMouseTest.
Was giving:

"warning: long int format, different type arg (arg 2)"

On beta4 32 bits.

Change-Id: Ifd50eaff8d40bf31d24db4441b15aad5590b8c95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7502
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
2024-03-03 19:35:30 +00:00
Oscar Lesta 7eefe785ff keymaps: fix empty "right option" key.
Fixes #18833.

Change-Id: I5d46ea11581af48e6fd6f38003a589ca700b07f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7497
Reviewed-by: nephele nephele <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2024-03-03 15:09:55 +00:00
Oscar Lesta c9d1e840ac Terminal: try to fix SHIFT+{Arrow,Home,End} keys handling.
This allows programs running on Terminal to do things like select text using
SHIFT+arrows, and SHIFT+{Home,End} (tested with "mcedit" and "turbo" editors).

Moved Terminal's shortcut for:
 - "Switch to nex/previous tab" to: B_OPTION_KEY+{left,right}.
 - "Scroll Up/Down" to: B_OPTION_KEY+B_SHIFT_KEY+{Up,Down}

(B_OPTION_KEY+{Up,Down} seems to be captured elsewhere?)

References for the added escape sequences:

https://www.emacswiki.org/emacs/CuaModeTerminalProblems

Change-Id: I1b418f003355348dee454fbc680a09c220e80a3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7241
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-02-27 20:17:24 +00:00
Oscar Lesta cccb5efb11 acpi_{ac,lid,thermal}: avoid SMAP related KDLs.
While these three worked just fine on my old Atom N450 based netbook,
all caused:

"PANIC: SMAP violation user-mapped address [...] touched from kernel [...]"

on a newer netbook with a Celeron N4020 CPU, before this change.

Side note / drivers status:

- acpi_ac works pretty decently on both machines.
- acpi_lid wrongly returns 0 until you close the lid for the first time.
  Reports correct values after that, but seems to cause power_daemon's
  event loop thread to peg one core to 100%.
- acpi_thermal readings are a mixed bag. Critical temp values Seem OK on
  both machines. Current value generally OK on the older machine, very wrong
  on the newer (reports 429496728.6 C).

Change-Id: Ia387a0bd5b21bdba1de0f0cd9ded814aa1ecdc26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7432
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2024-02-27 15:40:57 +00:00
Oscar Lesta eb2154fd47 acpi_ac & acpi_lid: return early if read position is not zero.
This avoids things like `cat /dev/power/acpi_{ac,lid}/0`
pegging CPUs to 100%, and the command never finishing.

Followed similar code already present on the acpi_thermal driver.

Change-Id: I5f13137716c36170608ab7e9dcbca628f48a138d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7397
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-02-08 09:15:18 +00:00
Oscar Lesta 3e8df064cd usb_rndis: fix minor copy/paste and typo errors.
Change-Id: Ie75b763ec241a12bad107e1b48f89079c462c248
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7396
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2024-02-05 07:54:24 +00:00
Oscar Lesta ed6d7787bf acpi_ac: fix driver build.
Change-Id: Ie698dfdb402bd2eb1ed24c0f760458782708eb3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7365
Reviewed-by: Adrien Destugues <[email protected]>
2024-02-01 21:31:21 +00:00
Oscar Lesta 2e1f37d6de AboutSystem: update RAM size on replicant instantiation.
Fixes #18696

Change-Id: If56670a756b4512732edd6846c8055a89d8e3a4f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7174
Reviewed-by: waddlesplash <[email protected]>
2023-12-04 02:38:44 +00:00
Oscar Lesta 8561b2c894 AboutSystem: update CPU info on replicant constructor.
This is similar to changes made in hrev56526 and hrev56815,
but for CPU related info this time.

Extracted some new _Get*() methods for the code that will get
called from both the normal and the replicant constructors
of SysInfoView.

Re-arranged the code a bit so the BStringViews get created /
updated in the order they appear on the GUI.

Change-Id: I2a371ec623e0b4d7497056fae6d5346b98d07ee2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6396
Reviewed-by: John Scipione <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2023-04-28 18:37:13 +00:00
Oscar Lesta fa39528cf9 AboutSystem: update kernel date from the replicant constructor.
Extracted a _GetKernelDateTime() function, and used that to get the value
for the kernel date/time text, and to update it at replicant's instantiation
time.

Fixes #18149.

Also: changed the _Get*() methods to return BString instead of const char*.

Change-Id: I908fe25f39355b3d46f504bd0d8a5fdef1af67f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6158
Tested-by: Automation <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2023-03-10 15:03:46 +00:00
Oscar Lesta 26eb736c44 acpi_thermal: report temps in Celsius on acpi_thermal_read()
Change-Id: I94e52acff35a3bde5094b0e14e08443f0b196e5d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6137
Tested-by: Automation <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-03-09 18:27:17 +00:00
Oscar Lesta 805eb54a62 drivers: remove uninit_hardware() from misc/kdl and misc/test
GCC complained of missing prototype for "uninit_hardware()" and,
as -Werror is enabled for these targets, build was broken for them.

While src/system/kernel/device_manager/legacy_drivers.cpp supports
that hook in legacy drivers binaries:

- no header mentions it.
- these two were the only places in-tree that implemented that hook.
- both were basically no-ops.

Change-Id: Ifb08846351b92a2d0fbbe95db2eee0e424ae5997
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6180
Tested-by: Automation <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-03-09 18:25:11 +00:00
Oscar Lesta b4567c396c acpi_lid: avoid possible memory leak
Also: removed a now unnecessary line-break.

Change-Id: I86ceda3a437d075ff8a611df1a93cceefe3ce82b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6054
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2023-02-09 18:17:09 +00:00
Oscar Lesta a780ec8653 acpi_ac: update "last_status" on acpi_ac_notify_handler()
* Extracted an "acpi_ac_update_status()" function.
* Use that for both "acpi_ac_init_driver" and "acpi_ac_notify_handler".

This ensures that "acpi_ac_read()" returns the correct (current) status.

Change-Id: I4f8f35037180c10fe507b9abfda3a8a169349c13
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6048
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2023-02-08 18:01:01 +00:00
Oscar Lesta d778c82da4 acpi_lid: fix build on 64 bits.
Change-Id: I1d5b374db37edfa546b1c0d4909c08c779fd392d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6044
Reviewed-by: Fredrik Holmqvist <[email protected]>
2023-02-05 21:06:12 +00:00
Oscar Lesta 07d5ef79d2 virtualkeyboard: fix building of target "<input>virtualkeyboard".
Fixes a "-Werror=write-strings", and a linking, error.

Change-Id: Iceb768a14e7d091796523640a2e94cb848848f44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5980
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2023-01-05 21:52:31 +00:00
Oscar Lesta 59b54f3810 poke: use phys_addr_t for mem_map_args's physical_address field
This is needed to fix usage of POKE_GET_PHYSICAL_ADDRESS on
x86 32 bits (with PAE).

Change-Id: Ic00185ec7fcf9b6666ad6169a752d8b8edd2b61b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5975
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2023-01-02 15:02:32 +00:00
Oscar Lesta 18edaef38c dstcheck & fortune: set B_BACKGROUND_APP flag
To avoid dstcheck appearing on Deskbar's Recent applications menu
right after boot.

Noticed that /bin/fortune was also missing this flag.

Change-Id: I18e166d83d85613a99903b0805565647b7d4d001
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5949
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-12-22 05:24:54 +00:00
Oscar Lesta f34d1d77f9 Shortcuts: detect keypresses even when the lock keys are set
Shortcuts was a bit overzealous while filtering out modifiers on
B_KEY_DOWN message handling.

This allows to enter keys regardless of the state of caps, scroll, or
num-lock modifiers.

Change-Id: Ie204f8e7938214ca68f45404026c7959216e0fc7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5943
Reviewed-by: Jessica Hamilton <[email protected]>
2022-12-17 03:27:47 +00:00
Oscar Lesta 1cae9edcc7 ramfs: add B_FS_IS_REMOVABLE as a workaround for #18137
This work-arounds the issue of the VirtualMemory preflet showing
RAM FS volumes as valid storage options for the swap file.

Removing B_FS_IS_PERSISTENT didn't work as I originally expected,
causing problems when attempting to write/delete entries on RAMFS
mounts after that.

Kudos to waddlesplash for the B_FS_IS_REMOVABLE alternative.

Change-Id: Id5ba1fa192b63b944cf59413a7f580ebb608e50d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5911
Reviewed-by: waddlesplash <[email protected]>
2022-12-14 18:36:48 +00:00
Oscar Lesta 3af8011358 env vars: move XDG Base Dirs variable exports to SetupEnvironment
This makes sure that apps get access to these variables regardless if
they are started from a shell or from GUI (double-click from Tracker,
desklink, etc).

Fixes #18130.

Change-Id: I82e2884e460fad7d6ec16e7b624c5cd2fcf807df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5897
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-12-13 01:49:55 +00:00
Oscar Lesta 62b6a4c615 mount_server: BPartition::ContentName() returns a BString now.
Change-Id: I9a236f6a28826d9394265081c3ebf6e96290fa54
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5770
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2022-11-01 01:05:35 +00:00
Oscar Lesta dfd7e48a6c Partitioner: fixed warnings, and usage of BPartition::ContentName()
Not particularly high priority (this being a test) but... I came across
these while searching for code still needing updates after the changes
on BPartition::ContentName().

Change-Id: I05e8d6c02ba34688cee4f0b55e4e782243b0af4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5769
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2022-11-01 01:05:35 +00:00
Oscar Lesta 62ea448683 TextSearch: do not trigger new grep searches unnecessarily.
Opening and closing a file from the results window with Pe, for
example, was triggering unnecessary new grep searches, when only
the attributes or other metadata on the file got changed (and
not its content).

That new search was also changing the focus from the results view
to the search field (making one lose the position on that list,
specially annoying with large number of results).

Avoid that by not monitoring/reacting to B_ATTR_CHANGED, and not
reacting to B_STAT_CHANGED if the only flag is B_STAT_CHANGE_TIME.

Change-Id: I56d34c93da94acf36890abe458da45d26a334593
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5763
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2022-10-28 16:35:19 +00:00
Oscar Lesta b2a47f1f5a AboutSystem: update hrev from the replicant constructor.
Extracted a _GetOSVersion() function, and used that to get the value
for version text, and to update it at replicant instantiation time.

Should fix #17957.

Change-Id: Ifc964c3646743a503fd756c902d102977e35e73d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5724
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2022-10-11 15:39:48 +00:00
Oscar Lesta 7c7357f07c AboutSystem: make static constants out of some member variables.
This avoids using them while uninitialized (as could happen when
using the archive constructor.

Fixes #17955.

Change-Id: If75354216b9731b3273d79aec787cd0140a6175e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5723
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2022-10-11 15:36:47 +00:00
Oscar Lesta 6eff9ae623 Sounds preflet: don't reuse variable names.
This fixes "issue 2" from #17150, that only manifested on x86-64.

Also: moved the "menu" variable declaration closer to its usege.

Change-Id: If44f84a8d5ee2bd662c312aec26359c857db5a93
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5720
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2022-10-06 18:16:49 +00:00
Oscar Lesta 0449ac1e6a BootManager: fix usage of BPartition::ContentName()
This one got changed in hrev56463. Fixes #17969.

Credit for the proper fix: Jérôme Duval.

Change-Id: Ia7ab07573538031f4794efce9e0feba37b7b9bda
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5714
Reviewed-by: Jérôme Duval <[email protected]>
2022-10-05 16:27:30 +00:00
Oscar Lesta eb198a09e9 checkstyle.py: Python 3 compatibility, part two.
Previous patch was tested only with single files arguments, thus
missing the usage of "os.path.walk()" (that was removed on 3.0).

Use "os.walk()" instead, that has been available since Python 2.3.

Change-Id: Ia290bebaa950466ac5f1d978f0a5e710a8e3da88
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5696
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-10-02 09:33:59 +00:00
Oscar Lesta c907db6c62 Tracker: fix build with DEBUG=1
Change-Id: Ieaaf23b0780f50837153634ad3e82eda6e5978f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5700
Reviewed-by: waddlesplash <[email protected]>
2022-09-27 19:12:54 +00:00
Oscar Lesta 5d7ed80a63 /bin/pidof: add it to regular images and to the Haiku package.
Change-Id: I07cbc6b715ee5d549ec4fcaf9b28398ee6ffb3dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5697
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-09-26 14:50:02 +00:00
Oscar Lesta dee0cb7098 checkstyle.py: make it compatible with Python 3.x
* Change prints to be compatible with 2.x and 3.x.
* Use html.escape instead of cgi.escape on Python >= 3.8.
* Make integer division explicit.

Change-Id: Ib9b236816e8fa07741c02d0e79629c4aa0ed6676
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5603
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-09-10 11:25:07 +00:00
Oscar Lesta 8fc394c12d pkgman: change default search scope
* Reduce default search scope to: "name", "summary", and "provides".
* Add a new "--search-scope=<scope>" option that allows to either limit
  the search to packages names (-s name), or to replicate the previous
  behavior of searching everywhere in the package info (-s full).

Motivation for the change:

The ever increasing number of packages available for Haiku was impacting
pkgman search usefulness, as it easily returns too many packages (what a
wonderful problem to have :-D).

Limiting the default search scope helps with that, and the old behavior
is kept "just an option away".

Change-Id: I5b456b90137237134eee7ca7ee501bf8e3767440
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5616
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2022-09-06 20:31:38 +00:00
Oscar Lesta e4d44d82aa Sounds preflet: small UX improvements.
* Disable BMenuField unless a sound event is selected.
* Changes in the MenuItem enable/disable the play button as necessary.
  (previously only changes in the EventList did that).
* Enable the play button when BFilePanel is closed (after selecting valid file).

Fixes the (still reproducible) UI/UX portion of #17150.

Change-Id: I5b5d00cc7fce00a0d0f908bbaff883169f38f855
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5613
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2022-09-06 17:48:26 +00:00
Oscar Lesta 83a4315c94 /bin/pidof: add a basic "pidof" command.
Change-Id: Ia70d3280d46cf9f5770f8c83a5941ea5b1b8dfe7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5599
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2022-09-06 05:57:07 +00:00
Oscar Lesta 2226d2eef7 tty: Fix TCFLSH and TCSBRK ioctls.
These two recieve integer values from userland (termios).
Cast them accordingly.

Should fix #17861. Tested on 32 and 64 bits.

Change-Id: Ic5eb53d2732354f86a82f59aab4917ad1851cfc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5545
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2022-08-13 10:55:48 +00:00
Oscar Lesta c4af8d0676 pc_serial: fix divisor values for baudrates 1200 and 1800
Change-Id: I57981b4c6f1b1ed22bea98d1199e86919f5ff30d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5544
Reviewed-by: Jérôme Duval <[email protected]>
2022-08-12 11:35:28 +00:00