bash script for xgl
I'm trying to create a single link to enable/disable xgl.
So far I have two bash scripts.
#!/bin/bash
gnomesu start_xgl
which calls
#!/bin/bash
gnome-xgl-switch --enable-xgl;killall gdm;gdm
The problem I have I think is that the script itself is being shutdown with gnome session.
It worked once, xgl was enabled, gdm shutdown and then gdm logged into gnome session.
Most of the time though it crashes the x server and a reboot is needed.
Other times it gets to the console but does not restart gdm.
Can anyone see where I am going wrong?
Is there a better way to restart gdm?
|