Wednesday, July 1, 2009

Xubuntu 9.04 user-level login scripts

Here is how to get a custom script to run at XFCE startup:

  1. Create a generic startup script and save it as custom_startup.sh. You can put anything in the script; in there now is only a logger so you know it's working.
    #!/bin/sh
    # This script is run automatically by xfce4-desktop during system startup.
    logger -i "Running the custom startup script"
    

  2. Create the following entry as /home/me/.config/autostart/MyStartup.
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.9.4
    Type=Application
    Name=MyStartup
    Comment=
    Exec=bash /home/me/Scripts/startup_script.sh
    StartupNotify=false
    Terminal=true
    Hidden=false
    

No comments: