Page 1 of 1

How do I get a script to run on desktop load?

Posted: 17 Jul 2010, 15:25
by dedanna1029
I don't need it to start on boot, just on desktop load (never got the hang of making a script run on desktop load). Here's what I need to run:

Code: Select all

su
password
/etc/rc.d/postgresql start
exit

I'm not even sure if the "exit" part is necessary?

This is for Arch.

Thanks.

Re: How do I get a script to run on desktop load?

Posted: 17 Jul 2010, 15:39
by dedanna1029
Oh! Here's my current ~/.bashrc:

Code: Select all

# Check for an interactive session
[ -z "$PS1" ] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

Re: How do I get a script to run on desktop load?

Posted: 17 Jul 2010, 16:36
by viking60
dedanna1029 wrote:I don't need it to start on boot, just on desktop load (never got the hang of making a script run on desktop load). Here's what I need to run:

Code: Select all

su
password
/etc/rc.d/postgresql start
exit

I'm not even sure if the "exit" part is necessary?

This is for Arch.

Thanks.

Why dont you just put postgresql in you deamons in rc.conf? (I have never used it - I use Mysql). Or you could have a look at the description in /etc/rc.d/functions

Re: How do I get a script to run on desktop load?

Posted: 17 Jul 2010, 17:02
by dedanna1029
Was thinking about boot time.

Re: How do I get a script to run on desktop load?

Posted: 18 Jul 2010, 21:35
by rvause
In my gnome setup a desktop launcher (http://www.yolinux.com/TUTORIALS/GNOME.html#LAUNCHER) file needs placing in $HOME/.config/autostart/ . The rest happens automatically there.

Re: How do I get a script to run on desktop load?

Posted: 18 Jul 2010, 21:47
by viking60
Yes and to follow that up here is a collection from AUR;
yaourt launcher :A
1 extra/kdeplasma-addons-applets-lancelot 4.4.5-1 [installed] (kde kdeplasma-addons)
Launcher to start applications
2 extra/kdeutils-ktimer 4.4.5-1 [installed] (kde kdeutils)
Countdown Launcher
3 extra/xfce4-quicklauncher-plugin 1.9.4-4 (xfce4-goodies)
plugin that creates 4 little application launcher in the Xfce4 panel
4 extra/xqf 1.0.5-4
A Quake/Quake World/Quake2/Quake3 server browser and launcher for X11
5 community/bashrun 0.16-1
An x11 application launcher based on bash.
6 community/gnome-do 0.8.3.1-2
A launcher application for gnome (like Launchy or Katapult)
7 community/lxlauncher 0.2.1-3 (lxde)
Launcher for Asus EeePC (part of LXDE)
8 community/matchbox-desktop 2.0-2
A PDA style application launcher or 'item browser'.
9 community/matchbox-panel 0.9.3-4
A flexible always present 'window bar' for holding application launchers and small 'applet' style applications
10 community/qemu-launcher 1.7.4-2
GNOME/Gtk front-end for the Qemu x86 PC emulator
11 aur/9menu 1.8-3 (16)
Simple and easily configurable X-menu / program launcher.
12 aur/adeskbar 0.3.9-1 (63)
A Quick Application Launcher
13 aur/adeskbar-archbang 0.22-1 (Out of Date) (5)
A Quick Application Launcher used in ArchBang
14 aur/adeskmenu 0.3.2-1 (0)
A Quick Systray Application Launcher
15 aur/apwal 0.4.5-1 (31)
Apwal is a simple application launcher for Linux together with a powerful editor.
16 aur/bbdock 0.2.8-4 (26)
An application launcher dockapp supporting PNG files and transparency
17 aur/cardapio 0.9.123-1 (13)
An alternative Gnome menu, launcher, and much more!
18 aur/clutk-bzr 224-1 (1)
A general-purpose toolkit for Clutter used by UNR's netbook-launcher.
19 aur/dmenu-launch 0.4.1-1 (6)
A simple Dmenu-based application launcher. Launches binaries and XDG shortcuts.
20 aur/enyo-doom 0.4-1 (8)
GUI launcher for Doom running under the Doomsday and Chocolate Doom engine.
21 aur/epsxe-launcher-bash 0.1-1 (31)
Bash launcher for the Enhanced PSX Emulator.
22 aur/epsxe-launcher-python 0.1-2 (101)
Python launcher for epsxe
23 aur/gnome-do-bzr 1320-2 (120)
A launcher application for GNOME
24 aur/gnome-launch-box 0.4-1 (36)
Quicksilver like launcher
25 aur/go-home-applet 0.2.8-1 (11)
A gnome-panel applet that, when clicked upon, displays the desktop. Used in a netbook-based desktop, the
desktop-window will normally be the launcher.
26 aur/go_big v1.0.3-1 (3)
A full-screen program launcher for GNOME
27 aur/google-appengine-wx-launcher-svn 7-1 (4)
GUI launcher for Google App Engine
28 aur/googlizer 2-1 (7)
A GNOME panel/menu launcher that spawns a Google search of your X clipboard contents
29 aur/hayaku 1.5.2-1 (15)
Application launcher
30 aur/instead-launcher 0.3-1 (13)
launcher and games downloader for INSTEAD quest interpreter
31 aur/itask-ng-svn 739-2 (63)
a taskbar and app-launcher dock, which makes use of composite, but can also be used without.
32 aur/kdeplasma-addons-applets-daisy 0.0.4.23-1 (16)
A simple application launcher for Plasma.
33 aur/kupfer v201-1 (90)
Launcher application written in python. Similar to Gnome-Do / Launchy
34 aur/lancelot-svn 1.7-1 (Out of Date) (8)
Lancelot is an application launcher menu (or ALI) for KDE 4 designed to provide a place from which all your jobs
begin.
35 aur/liblauncher 0.3.6-1 (3)
A library to build launchers
36 aur/liblauncher-0.1 0.1.8-1 (0)
A library to build launchers
37 aur/mfe 0.1.6-1 (36)
A simple, GTK+ frontend / launcher for mednafen, written in python.
38 aur/netbook-launcher 1.5.1-1 (Out of Date) (6)
the desktop-launcher which takes the place of Nautilus
39 aur/netbook-launcher-complete 2.1.18-1 (13)
"(for Gnome 2.30) Netbook-launcher from Ubuntu UNR. Replace the normal menu launcher. To use with
go-home-applet,
40 aur/netbook-launcher-complete-legacy 2.12-0 (0)
"(Gnome 2.28)Netbook-launcher from Ubuntu UNR. Replace the normal menu launcher. To use with go-home-applet,
41 aur/netbook-launcher-efl 0.3.1-1 (0)
UNR legeraging the EFL for lower graphics power systems.
42 aur/netbook-launcher-efl-bzr 168-1 (1)
UNR legeraging the EFL for lower graphics power systems.
43 aur/plasma-klicker-plasmoid 0.1.1-2 (7)
An icon application launcher with zooming.
44 aur/pylotro 0.1.11-1 (3)
LOTRO/DDO Launcher (needed to login to Turbine Inc. servers)
45 aur/quicklauncher-plasmoid 0.5-1 (19)
A plasmoid that reimplements the quicklaunch applet from kde3.5.
46 aur/quicklauncher-plasmoid-svn 1007244-1 (8)
A plasmoid that implements a quicklaunch applet. (Development tree)
47 aur/sliderlauncher-plasmoid 0.1-r16beta (4)
A compact launcher plasmoid that allows one to store lots of launchers in a small amount of space
48 aur/srcds-launcher 1.0.2-3 (1)
Makes starting of srcds orangebox servers easier and faster.
49 aur/staylaunch 0.6.1-1 (4)
*box auto launcher & configurator
50 aur/thinglaunch 1.8-1 (17)
A minimalist application launcher for X
51 aur/usp2 462-1 (34)
Simple menu and launcher for GNOME
52 aur/wmappl 0.71-3 (Out of Date) (9)
wmappl is a simple scrolling application launcher for the WindowMaker dock
53 aur/wncksync 0.2.8-1 (1)
A library to build launchers
54 aur/xhotkeys 0.9.8.3-1 (21)
A simple and easily configurable hotkey launcher in pygtk
55 aur/xqf-svn 825-2 (15)
XQF is a game server browser and launcher for Unix/X11 for many popular games (a qstat frontend)
56 aur/yeahlaunch 0.2-1 (20)
Very simple application launcher which puts a horizontal menu on top of your screen.

Re: How do I get a script to run on desktop load?

Posted: 18 Jul 2010, 23:33
by dedanna1029
I ended up just going ahead and putting postgresql in daemons in rc.conf -- starts nicely. Will keep the other tips here handy though. Thanks!