hi all, i'm using lxde with lubuntu. i need to do a init job from the startup. So i write my job in /etc/xdg/lxsession/Lubuntu/autostart
$cat /etc/xdg/lxsession/Lubuntu/autostart
...
@lxterminal -e myjob.sh
...
in myjob.sh, some background mount jobs and some frontground show details are running concurrently. but by default, device mount config in pcmanfm(~/.config/pcmanfm/lubuntu/pcmanfm.conf
[volume]
mount_on_startup=1
mount_removable=1
autorun=1
then i modified them to 0.
$sudo myjob.sh
OK, it's quiet now. while autostart work in /etc/xdg/lxsession/Lubuntu/autostart still pop window when mount command run.
can any one show me where the config file should i modify to get a autostart quiet way!?
how to mount device in quiet way?
-
- Posts: 45
- Joined: Wed Aug 07, 2013 4:28 am
- Location: Trantor
Re: how to mount device in quiet way?
I'm not absolutely sure I understand and I've even less sure these ideas will help but . . .
Maybe try appendingto the lines that result in the line(s) that bring the the terminal the script is running in forward. If that doesn't do it, try using wmctrl to name the terminal it's running in something early in the script and then put a wmctrl command to put the window in the background immediately after the command that brings it to the foreground. That may cause it to flash momentarily but it may be an improvement.
Maybe try appending
Code: Select all
&>/dev/null