bash - Run script on login gnome -
i installed cairo dock in gnome , hide/remove standard dash in gnome. followed instructions on cairo website (here). if run code in terminal works run on startup:
dbus-send --session --type=method_call --dest=org.gnome.shell /org/gnome/shell org.gnome.shell.eval string:'main.overview._dash.actor.hide();'
i created gedit file code in ~/desktop
, set execute permissions. used startup application (gnome-session-properties
) run on startup doesn't work. next thing tried add bash
in front of path script in startup application gui. no succes either. tried write shell script nano (as explained here):
#!/bin/bash #hide gnome dash dbus-send --session --type=method_call --dest=org.gnome.shell /org/gnome/shell org.gnome.shell.eval string:'main.overview._dash.actor.hide();'
saved script in ~/desktop
, add in startup application gui. didn't work. saved script in ~/.config/autostart
failed well. on startup dash still there.
i'm new ubuntu , trying learn please clear :)
a shell script named .gnomerc in home directory automatically sourced each time log in gnome session. can put arbitrary commands in there; environment variables set in script seen program run in session.
note session not start until .gnomerc script finished; therefore, if want autostart long-running program, need append & program invocation, in order detach running shell.
Comments
Post a Comment