Re: Nosh and Speakup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Le 13/06/2021 à 00:30, Chris Brannon a écrit :
> Trevor Astrope <astrope@xxxxxxxxxxx> writes:
>> Is anyone familiar with nosh? Specifically, its terminal emulator? It
>> claims to provide a linux-256color terminal type.  It provides user
>> space virtual terminals and the blurb below indicates it uses a
>> framebuffer, so I'm guessing it doesn't work with speakup out of the
>> box.

Well, in a previous version of the Slint installer I had included fbterm to help
users with low vision, as it can display characters of an arbitrary size so
a small script in the installer computed the maximum character size with which the dialog boxes fit in the screen size considering the values of col and lines.

But if people wanted speech (using speakup) I indeed had to not use fbterm.

To allow both speech and big character size at the same time I considered using nosh, as if I understand well it can provide an output as discrete characaters
and in the frame buffer as the same time. At least that's how I read:
https://jdebp.uk/Softwares/nosh/brltty.html

Additionally if accurate this would kill two birds in one shot, allowing both
speech and braille outputs.

Another thing that interest me in nosh is that if I understand well it can be
used as a dbus launcher for systems that want to use dbus-broker but do not
include systemd (as a reminder, the launcher of dbus-broker is the sole
component of dbus-broker that needs systemd), after a quick read of:
https://jdebp.uk/Softwares/nosh/guide/per-user-dbus-demand-start.html
https://jdebp.uk/Softwares/nosh/guide/commands/dbus-daemon-launch-helper.xml

But (two big "but"):
1. So far I failed miserably to build the nosh package in Slint (end of the log
attached)
2. I am not ready to replace Slint's init system by nosh (however, according to
https://github.com/tacatac/archnosh nosh can be run as service manager only)
My dream would be that it would suffice to use the shell script
dbus-daemon-launch-helper to do that, this is just a dream, isn't it?

Sorry to have pushed this thread way out of tracks but thanks for reading.

Cheers,
Didier
#!/bin/sh -e
## **************************************************************************
## For copyright and licensing terms, see the file named COPYING.
## **************************************************************************
#
# Note: This script does NOT need to be set-UID/set-GID to anything.

case "${DBUS_STARTER_BUS_TYPE}" in
system)
	opts=''
	run='/run'
	;;
session)
	opts='--user'
	run="${XDG_RUNTIME_DIR:-/run/user/`id -u`}"
	;;
*)
	echo 1>&2 "$0: ${DBUS_STARTER_BUS_TYPE}: Not a known bus type."
	exec false
esac

if test 0 -ge $#
then
	echo 1>&2 "Usage: $0 desktop_bus_service_name(s)..."
	exec false
fi

if	>/dev/null 2>&1 command -v system-control &&
	2>/dev/null system-control ${opts} is-service-manager-client
then
	for dbus_service
	do
		dbus_service="`basename \"${dbus_service}\" .service`"
		echo "${dbus_service#dbus-}"
	done | 
	xargs -- system-control ${opts} -- reset --verbose --
elif	>/dev/null 2>&1 command -v initctl &&
	2>/dev/null initctl ${opts} is-service-manager-client
then
	for dbus_service
	do
		dbus_service="`basename \"${dbus_service}\" .service`"
		echo "${dbus_service#dbus-}"
	done | 
	xargs -- initctl ${opts} -- reset --verbose --
elif	>/dev/null 2>&1 command -v systemctl &&
	2>/dev/null systemctl ${opts} is-service-manager-client
then
	for dbus_service
	do
		dbus_service="`basename \"${dbus_service}\" .service`"
		echo "${dbus_service#dbus-}"
	done | 
	xargs -- systemctl ${opts} -- reset --verbose --
elif	>/dev/null 2>&1 command -v initctl &&
	2>/dev/null initctl ${opts} version | grep -F -q upstart
then
	for dbus_service
	do
		dbus_service="`basename \"${dbus_service}\" .service`"
		echo "${dbus_service#dbus-}"
	done | 
	## Vanilla upstart initctl does not have "reset".
	xargs -- initctl -- start ${opts} --
elif	>/dev/null 2>&1 command -v systemctl &&
	test -S "${run}"/systemd/private
then
	for dbus_service
	do
		dbus_service="`basename \"${dbus_service}\" .service`"
		## Vanilla systemd systemctl does not have "reset".
		if systemctl is-enabled --quiet ${opts} -- "${dbus_service#dbus-}"
		then
			systemctl start ${opts} -- "${dbus_service#dbus-}"
		fi
	done
elif	>/dev/null 2>&1 command -v service &&
	>/dev/null 2>&1 command -v chkconfig
then
	for dbus_service
	do
		dbus_service="`basename \"${dbus_service}\" .service`"
		## Vanilla System 5 rc service does not have "reset".
		if chkconfig ${opts} "${dbus_service#dbus-}" is-enabled
		then
			service ${opts} "${dbus_service#dbus-}" start
		fi
	done
else
	echo 1>&2 "$0: Cannot determine a command for starting services."
	exec false
fi
redo-ifchange[4]: ERROR: /etc/system-control/convert/per-user: Cannot find .do file to use.
redo-ifchange[3]: ERROR: convert/per-user/at-spi-dbus-bus.service.who: Not done.
redo-ifchange[2]: ERROR: convert/per-user/at-spi-dbus-bus.service: Not done.
redo-ifchange[3]: ERROR: systemd/system/service-manager.socket.who: Cannot find .do file to use.
redo-ifchange[2]: ERROR: systemd/system/service-manager.socket: Not done.
redo-ifchange[4]: ERROR: /etc/system-control/convert/per-user: Cannot find .do file to use.
redo-ifchange[3]: ERROR: convert/per-user/gconfd.service.who: Not done.
redo-ifchange[2]: ERROR: convert/per-user/gconfd.service: Not done.
redo-ifchange[4]: ERROR: /etc/system-control/convert/per-user: Cannot find .do file to use.
redo-ifchange[3]: ERROR: convert/per-user/per-user.conf.who: Not done.
redo-ifchange[2]: ERROR: convert/per-user/per-user.conf: Not done.
redo-ifchange[1]: ERROR: all-misc: Not done.
services/default.do: services/system-wide.conf.who: Don't know what to use to build this.
redo-ifchange[3]: ERROR: services/system-wide.conf.who: Not done.
redo-ifchange[2]: ERROR: services/system-wide.conf: Not done.
services/default.do: services/exim4-smtp-relay@.service.d/os-dependant.conf.who: Don't know what to use to build this.
redo-ifchange[4]: ERROR: services/exim4-smtp-relay@.service.d/os-dependant.conf.who: Not done.
redo-ifchange[3]: ERROR: services/exim4-smtp-relay@.service.d/os-dependant.conf: Not done.
redo-ifchange[2]: ERROR: services/exim4-smtp-relay: Not done.
services/default.do: services/dbus-broker.service.d/os-dependant.conf.who: Don't know what to use to build this.
redo-ifchange[4]: ERROR: services/dbus-broker.service.d/os-dependant.conf.who: Not done.
redo-ifchange[3]: ERROR: services/dbus-broker.service.d/os-dependant.conf: Not done.
redo-ifchange[2]: ERROR: services/dbus-broker: Not done.
services/default.do: services/dbus-daemon.service.d/os-dependant.conf.who: Don't know what to use to build this.
redo-ifchange[4]: ERROR: services/dbus-daemon.service.d/os-dependant.conf.who: Not done.
redo-ifchange[3]: ERROR: services/dbus-daemon.service.d/os-dependant.conf: Not done.
redo-ifchange[2]: ERROR: services/dbus-daemon: Not done.
services/default.do: services/exim4-smtp-submission@.service.d/os-dependant.conf.who: Don't know what to use to build this.
redo-ifchange[4]: ERROR: services/exim4-smtp-submission@.service.d/os-dependant.conf.who: Not done.
redo-ifchange[3]: ERROR: services/exim4-smtp-submission@.service.d/os-dependant.conf: Not done.
redo-ifchange[2]: ERROR: services/exim4-smtp-submission: Not done.
redo-ifchange[1]: ERROR: all-services: Not done.
redo: ERROR: all: Not done.

[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]

  Powered by Linux