Re: Extension problem with lockscreen

Thanks Florian.  Its good to learn something new. I am copying this to
the list. It is worth sharing.

Thanks again,

On Sun, 2014-06-08 at 20:48 +0200, Florian Müllner wrote:
On Sat, Jun 7, 2014 at 1:07 PM, Norman L. Smith <nls1729 gmail com> wrote:
#!/usr/bin/env bash
pid=`ps -ef | grep $USER | grep "[0-9] gnome-session" | grep -v grep |
cut -c 10-14 | sed "s/ //g"`
/usr/bin/gnome-terminal --window --full-screen
sleep 1
xdotool type "journalctl --user --no-pager --full _PID=$pid "
xdotool key Return

It's probably worth noting that "launch app; wait some random time;
generate input; pray it ended up in the right window" is not the
greatest idea. A much safer option would be something like:

gnome-terminal --window --full-screen -e "journalctl --user --full
_PID=$(pgrep gnome-session)"


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