LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-16-2005, 09:15 PM   #1
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
Question how to launch applications on x login?


Sorry to ask such a mundane and probably simple question, but is there a script file that I can create in my user directory that will be executed automatically on X login? I've tried a couple obvious names like ".Xsession", ".xsession", and ".xinitrc" but the commands I inserted did not get executed on login. Thanks for any help.
 
Old 06-16-2005, 10:54 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
What ?dm are you using? xdm, kdm or gdm??
 
Old 06-17-2005, 08:09 AM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
i'm using gdm as the login manager, but xfce as my desktop environment. thx.
 
Old 06-17-2005, 08:54 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
From the xfce utilities and scripts manual:
Quote:
startxfce4

The startxfce4 is a convenient script to start an Xfce 4 session from the console. It will give you a session with a taskbar and a panel and with the desktop manager and window manager running.

All programs, or symbolic links to programs, in ~/Desktop/Autostart/ will be run by startxfce4 on startup.

To customize the behaviour of startxfce4, copy the file ${sysconfdir}/xfce4/xinitrc to your personal ~/.config/xfce4/ directory and edit that file. If you install from source, ${sysconfdir} defaults to /usr/local/etc; for binary packages it is often set to /etc.

With the inclusion of a session manager in Xfce 4.2, the preferred way to change startup behaviour is by using the "Save session" option in the logout dialog.
 
Old 06-17-2005, 09:34 AM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
With the inclusion of a session manager in Xfce 4.2, the preferred way to change startup behaviour is by using the "Save session" option in the logout dialog.
Window Maker has a similar "Save session" option -- it's perfect for us lazy users who don't want to edit config files all the time.

However, there are some small window managers that don't have any session manager or autostart files of their own. In such cases it's useful to know that choosing the "Default session" in gdm makes it read the .xsession file (if it exists) in your home directory.
 
Old 06-17-2005, 08:38 PM   #6
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
thanks for the help. what i really wanted to do was to set the keyboard map to dvorak at desktop environment startup. all i needed to do was copy the dvorak keymap to my user directory:

Code:
cd ~
cp /usr/share/xmodmap/xmodmap.dvorak .Xmodmap
 
Old 07-10-2005, 10:38 PM   #7
Daedalus207
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Alternatively, I think adding

Option "XkbLayout" "dvorak"

to your X11/xorg.conf file would've worked.
 
Old 07-11-2005, 06:07 PM   #8
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
yeah, it would have. but i have users that don't type dvorak. i just wanted dvorak for my user account.
 
  


Reply



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 launch programs at login desmondtm Linux - Newbie 1 12-01-2005 04:51 PM
Automaticly Launch program on login, gnome diamonds Linux - General 2 04-10-2005 07:02 AM
applications in Gnome taking forever (minutes) to launch SYS49152 Linux - Newbie 7 05-27-2003 12:22 AM
best place to launch a utility upon login hamster Linux - General 7 05-22-2003 03:07 PM
Applications requiring 'root' to launch.... sankeny Linux - Software 3 10-23-2002 07:49 AM

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

All times are GMT -5. The time now is 01:02 PM.

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