LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-15-2014, 03:34 PM   #1
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
How to auto-start X/graphical programs in xmonad upon log in through kdm on Fedora 20


Solution:
xmonad-start checks for a '~/.xmonad/session' file and runs it:

if [ -r $XMONAD_DIR/session ]; then
sh $XMONAD_DIR/session
fi

or alternatively :
either put a check in /etc/X11/xinit/Xsession
like

# GDM provides either a command line as the first argument or
72 # provides 'failsafe', 'default' or 'custom'. KDM will do the
73 # same at some point
74 if [ "$1" != "default" -a "$1" != "custom" ]; then
75 if [ -f "$HOME/.xprofile" ]; then
76 . $HOME/.xprofile
77 fi
78 exec $CK_XINIT_SESSION $SSH_AGENT /bin/sh -c "exec -l $SHELL -c \"$1\""
79 fi
80 ;;

and optionally refine for also checking against $1 being xmonad-start

Last edited by Geist; 03-16-2014 at 07:56 AM.
 
  


Reply

Tags
autostart, fedora 20, kdm, xmonad



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
Auto-start Programs eggoz Linux - Software 5 06-12-2006 02:10 AM
KDM won't auto-start after power failure ltb Linux - Newbie 1 03-16-2005 04:59 PM
Auto Start Programs for Any X LinuxGeek Linux - Software 4 01-04-2005 07:44 AM
auto-execute programs in graphical mode ? manub Linux - Newbie 12 02-02-2003 06:41 AM
Graphical Auto-Login without using KDM or GDM soda Linux - General 7 12-01-2002 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:58 AM.

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