trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: May 2014

Re: [trinity-users] Starting yakuake with specified colours on log in by a user

From: Jan Stolarek <jan.stolarek@...>
Date: Mon, 12 May 2014 19:19:34 +0200
> Thank you for your response.  I found that if in the session manager I
> select "Restore previous session" and if at the most recent log out
> from that session yakuake was activated, yakuake will be started on
> the next log in by the same user, and will open in my home directory.
Yes, that's exactly how session management works. Is this solution not satisfactory (aside from 
the colors issue)?

> This part of your message I do not understand.  What is the "context
> menu in Yakuake"?
It the menu you get by right-clicking in Yakuake terminal. It allows you to set fonts, colors, 
etc. Once you've done that you need to select "Save as default" from the menu. An alternative is 
to select "Use Konsole settings" to have Yakuake always mimic Konsole settings (as the option 
name implies).

> I tried the following script, called "yakuake-start", in directory
> ~/.trinity/Autostart:
>
> 	#!/bin/bash
> 	yakuake --bg black -- fg green
> 	cd ~
>
> and unchecked the "restore previous session" option described above.
> On log in yakuake started but the colour options were ignored.
I actually know nothing about these command-line color options - can't help here.

> Furthermore, the cd command was also ignored; yakuake opened in the
> directory ~/.trinity/Autostart, not in my home directory.
Yes, that's exactly what you told it to do :-) That `cd ~` is not a command executed in yakuake 
but in the shell process that is running the script. If you want a newly opened shell to start in 
a particular directory you can do this by editing your ~/.bashrc. I don't know how to execute a 
script on yakuake start, but I suppose that's doable. Try googling this.

Janek