Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesnt work for me on 13.10 #23

Open
sameersbn opened this issue Feb 25, 2014 · 5 comments
Open

Doesnt work for me on 13.10 #23

sameersbn opened this issue Feb 25, 2014 · 5 comments

Comments

@sameersbn
Copy link

I have setup terminal app to start command as login shell. But undistract.me does not work. In 12.04/12.10 this worked great.

I follow the setup procedure listed here:
http://www.webupd8.org/2013/01/notifies-terminal-commands-completed-undistract-me.html

Undistract.me is downloaded from the default repo's and not from the one listed in the post.

@sameersbn
Copy link
Author

I mostly got it working now.
Instead of setting the terminal app to start a login shell, I added the following to the .bashrc file

if ! [ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$last_command_started_cache" ]; then
  . /usr/share/undistract-me/long-running.bash
  notify_when_long_running_commands_finish_install
fi

Now I see command completion notifications if the terminal window is not the active window.
Is it possible to disable this behaviour, so that the notification is always displayed regardless of whether the terminal window is active or passive.

Typically I would not mind this behaviour, problem is when i use multiple tabs in the terminal window the notification is not raised when a long command is completed in another tab. By forcing the notification to be displayed I could overcome this issue.

Thanks

@ghost
Copy link

ghost commented Apr 14, 2014

I also have Ubuntu 13.10 but undistract-me doesn't work, even if I enable "Run command as login shell" in GNOME Terminal. I had to add the following lines to my .bashrc file to make it work:

. /usr/share/undistract-me/long-running.bash
notify_when_long_running_commands_finish_install

Not sure about the "if" part, so I skipped that.

@ludenticus
Copy link

It doesn't work either in Ubuntu 14.04. However, it produces the expected notifications with the .bashrc lines of @sameersbn

@umpirsky
Copy link

I installed it with apt-get on Ubuntu 15.10, it didn't work out of the box. Comment #23 (comment) fixes it. Thanks.

@coder09
Copy link

coder09 commented Aug 8, 2016

Got it working in Ubuntu 16.04, but as the OP of this comment said. it doesn't work if the the command is running on the active terminal. it will be swell, if there is a way around it as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants