Results 1 to 2 of 2

Thread: gnome-gmail-notifier - postponing startup

  1. #1
    pavkw NNTP User

    Default gnome-gmail-notifier - postponing startup


    I installed gnome-gmail-notifier and set it to start automatically.
    However, as it takes a few seconds for the wireless connection on my
    laptop to start, the notifier reports an error (no connection) and seems
    to stay like this. When I restart it after there is connection it's ok.
    So the question is, is it possible to postpone it's startup (or any
    other app for that matter) or make it start when network manager has
    connected?

    p.


    --
    pavkw
    ------------------------------------------------------------------------
    pavkw's Profile: http://forums.opensuse.org/member.php?userid=22058
    View this thread: http://forums.opensuse.org/showthread.php?t=407426


  2. #2
    pavkw NNTP User

    Default Re: gnome-gmail-notifier - postponing startup


    Ok, here's the simple script that will do it:


    Code:
    --------------------

    #!/bin/bash

    while true; do

    NETWORK_STATUS=`nm-tool|grep State|cut -f2 -d' '`;

    case $NETWORK_STATUS in
    'connected')
    gnome-gmail-notifier
    break
    ;;
    'disconnected')
    sleep 1
    ;;
    esac


    done

    --------------------


    Save, set executable permissions and add to start-up programs instead
    of gnome-gmail-notifier.

    p.


    --
    pavkw
    ------------------------------------------------------------------------
    pavkw's Profile: http://forums.opensuse.org/member.php?userid=22058
    View this thread: http://forums.opensuse.org/showthread.php?t=407426


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •