I was able to get Ubuntu to authenticate with Active Directory and now I am working on mounting their network shared drive. The question is, where to I place the script to mount the drive? It cannot be placed in one of the rc*.d directories since those get ran at boot time and the user needs to authenticate before the drive can be mapped. Calling the script in their .profile file is not reasonable either since that only works on a per user basis. Is there a single common file that all users run at login where I can call my script?
The solution was to create a launcher and place it in /etc/xdg/autostart/
What is a launcher, just a shell script?
Im not exactly sure, but if you right click on your desktop there is a Create Launcher option. My launcher contains a link to my shell script in /usr/share:
Code:#!/usr/bin/env xdg-open [Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Icon[en_US]=start Name[en_US]=startup Exec=sh /usr/share/startup.sh Name=startup Icon=start
Interesting, good to know. How did you ever find out about this?
Ubuntu forums![]()
I'm a dumb ass - you can just put scripts in /etc/profile.d/. The users .profile calls /etc/profile which runs all the .sh scripts in /etc/profile.d/. No need for a crappy launcher...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks