Announcement

Collapse
No announcement yet.

welcome notification

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] welcome notification

    Dear Friends

    I am using Kubuntu 12.04 LTS. now I want that when I logged in after boot and when I see the my desktop first time (after every boot ) there a message should be displayed like "please Do not Open etc ,,,,," by any mean like Kdialog, zenity or notify-send.

    I made a script like

    #!/bin/bash
    sleep 300s
    notify-send " my message"


    and save this as message.sh

    and I made a entry in /etc/rc.local
    /path/to/file/message.sh

    but it does not work for me if anybody have any idea please share I think it might be due to root because x-server is not running for the root and the scripts is showing
    graphical message which run by rc.local as root

    I aslo create .bash_login file in home directory it works but before Ksplash i want it after loading Ksplash

    please give me solution
    Last edited by farjibaba; Mar 21, 2013, 12:17 AM.

    #2
    Originally posted by farjibaba View Post
    Dear Friends

    I am using Kubuntu 12.04 LTS. now I want that when I logged in after boot and when I see the my desktop first time (after every boot ) there a message should be displayed like "please Do not Open etc ,,,,," by any mean like Kdialog, zenity or notify-send.

    I made a script like

    #!/bin/bash
    sleep 300s
    notify-send " my message"


    and save this as message.sh

    and I made a entry in /etc/rc.local
    /path/to/file/message.sh

    but it does not work for me if anybody have any idea please share I think it might be due to root because x-server is not running for the root and the scripts is showing
    graphical message which run by rc.local as root

    I aslo create .bash_login file in home directory it works but before Ksplash i want it after loading Ksplash

    please give me solution
    Much simpler would be make script:

    Code:
     #! /usr/bin/bash
    sleep 300 && kdialog --msgbox "Try reading a man page"
    Then chmod +x it.

    Next: Settings > Startup and Shutdown > Autostart > Add script.

    P.S. you don't need the sleep line, it will execute only after the desktop is loaded.

    Comment


      #3
      thansk for this
      Please tell me this method to completed from command line or editing some files

      Comment


        #4
        Originally posted by farjibaba View Post
        thansk for this
        Please tell me this method to completed from command line or editing some files
        No GUI access? Well in that case just copy the script to "~/.kde/Autostart/" also you should change #! /usb/bin/bash to #! /usr/bin/sh

        Now in the same folder create a desktop file e.g. script.desktop with contents:

        Code:
        [Desktop Entry]
        Type=Application
        Name=<name>
        Exec=sh ~/.kde/Autostart/<script name>
        Logout, login and tell me if that helped.

        Comment


          #5
          thanks it works

          Comment


            #6
            Originally posted by farjibaba View Post
            thanks it works
            No problem.

            Comment

            Working...
            X