Re: tdsr

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

 



Just create the file.

On 10/5/2022 5:31 PM, Linux for blind general discussion wrote:
Using ls .bash_login
and sudo ls .bash_login
I am not finding that file.
I am in the home directory.
Am I doing something wrong?

On Oct 5, 2022, at 08:37, Linux for blind general discussion <blinux-list@xxxxxxxxxx> wrote:

If 'bash' is your login shell, try adding the TDSR startup command to .bash_login in your home directory.  That should avoid the problems Tim indicated when a subshell is invoked.

You may have to create that file if it doesn't exist.  It is documented in the 'bash' manual page.


On 10/5/2022 1:17 AM, Linux for blind general discussion wrote:
Or might it be easier to install espeakup, or install Fenrir?
I welcome anyone's ideas.

On Oct 4, 2022, at 15:31, Linux for blind general discussion <blinux-list@xxxxxxxxxx> wrote:

Maybe better to keep logging in, go to cd tdsr,
then type
./tdsr
cd ..
as I already do.
What you had written is far too advanced for me, but thank you.

On Oct 4, 2022, at 08:46, Linux for blind general discussion <blinux-list@xxxxxxxxxx> wrote:

Tim here.  It's a little tricky because, without additional
precautions, you open a shell which launches tdsr, which opens a
shell inside of it, which launches tdsr, which opens a shell
which...you get the idea.

So there needs to be a way for a shell to determine if it's already
inside a running session of tdsr.  This sort of thing is usually
done through setting an environment variable.  For example, I've
done similarly with "tmux", so I have a check in my startup file
(e.g. my ~/.bashrc) that tests

[ -z "$TMUX" ] && tmux

So first you'd want to see if tdsr sets an environment variable.
The documentation might detail this, but if not, you can dump the
environment to a file before running tdsr, then run tdsr, then dump
the environment to another file and compare them, like

$ env | sort > a
$ tdsr
(tdsr)$ env | sort > b
(tdsr)$ comm -13 a b

Hopefully this will show a setting something like a "$TDSR" variable
that you can check.  Then your ~/.bashrc (or whatever your startup
file is) can end with something like

[ -z "$TDSR" ] && tdsr

Because this can go unfortunately sideways, I recommend having one
window/console open, editing your ~/.bashrc and then open a *new*
window (or log in at another console) to test it.  If all goes
right, yay.  If things go sideways, you can quickly flip back to
the first window/console, remove that line from your ~/.bashrc, and
(re)save it.  This saves you a LOT of hassle if you accidentally
create a loop like described at the top of this email.

-Tim

On 2022-10-04 08:21, Linux for blind general discussion wrote:
I have fedora 35, and while in the shell I use tdsr for screen-reader.
To start it, one must use dot slash tdsr.
Is there a way to have this program start whenever logging in at shell?

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list
_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list


_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list




[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]