Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-09-2009, 10:16 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
edit gdm

I am dual booting windows and centos on several lab machines. I want to add a button to the gdm screen that will reboot to windows. I have linux as the default in grub.conf. I have this script: echo "savedefault --default=2 --once" | grub --batch; reboot and would like to have this script execute upon clicking the reboot to windows button. Is there any way to edit the gdm to do this?


Last edited by whitsonj; 09-09-2009 at 10:18 PM.
Old 09-11-2009, 07:20 AM   #2
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
Check your /etc/gdm/gdm.conf file... there is a section in it describing how to add custom commands.

# This section allows you specify up to 10 custom commands. Each of the
# commands can be defined by the seven parameters listed below. In each of the
# descriptions of the parameters N can take on any values between 0 and 9,
# i.e. CustomCommand0=,CustomCommand1=,...,CustomCommand9=. The numbers
# can have gaps as long as they fit within predefined set of 10, and their
# placement order within this section and with respect to each other is
# not important.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with GDM (GDM user does not exist error) utkarshrawat Linux - Software 1 09-25-2007 09:39 AM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 07:59 AM
GDM doesn't work: Authdir /usr/var/gdm does not exist jimhap Linux - Newbie 11 06-08-2007 05:22 PM
Cant edit gdm.conf remotely ??? alex_lev Ubuntu 1 11-19-2006 03:11 PM
gdm overwrites /etc/gdm/Session/fluxbox _flaab_ Mandriva 0 12-21-2003 11:58 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration