LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-12-2009, 06:47 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Faster gnome session startup by delayed programs start


Hello

[Was posted in the Desktop forum but no replies after 6 days]

For faster Gnome session startup, I'm trying to start non-essential applications after allowing interaction with the Desktop.

Some success by System→Preferences→Sessions→"Startup Programs" and deselecting them all except for GnomeStartupProgramsDelayed.sh:
Code:
#! /bin/bash
# Quick and dirty proof of concept to start programs at Gnome session startup with a delay
sleep 60; /usr/bin/wallpaper-tray &
sleep 10; /usr/bin/gkrellm &
Issues arising from this are:
  1. After Gnome session startup displays an empty desktop, there is what seems like an excessive delay before it draws the background and populates it with icons. How can I find out what is happening during this time? I've enabled debug in /etc/gdm/gdm.conf but AFAIK this only logs up to "DEBUG: Running /etc/gdm/Xsession default for c on :0" so stops at just the point I want!
  2. When gkrellm starts it grabs focus. Possible to stop this? I guess that's a GKrellM issue, not gdm.
  3. In System→Preferences→Sessions→"Current Session", listed programs include GnomeStartupProgramsDelayed.sh but ps does not list it so it has exited. WallpaperTray is also listed but when it is made to exit it disappears from the list. How to tell gdm to drop a program from the list when it exits or before?
The most relevant information found so far is at:
I'm stumped for now and suspect many people would use the technique if it could be made tidy and robust, so all suggestions welcomed.

Best

Charles
 
Old 05-18-2010, 07:57 AM   #2
kate9954
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
Delaying Startup Applications

I really wish I could help you. For me, the only thing lacking in making Gnome the perfect desktop environment is a way to delay applications starting up.

I want, for example, for qBittorrent to download to an encrypted drive. Having it start automatically is handy, but it would be nice to give me time to mount the drive before it starts. And so on.

I was a Windows tech for twenty years, but I'm a complete Linux newbie. C'mon, guys, is there anyone who can help this guy out?

Many thanks,

Kate
 
Old 06-21-2010, 07:19 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks Kate

That post was getting lonely! I never did get any further; I switched to Xfce instead of Gnome. An XfceDelayedAutostart.sh script is working simply, as hoped.

One suggestion: what happens if you move everything off the desktop? Does Gnome start any faster?

One solution for what you want to do would be to write a shell script to do it, run from the autostart feature. The most common way for shell scripts to participate in the desktop GUI is with zenity but the little-known yad is a lot easier to use and more powerful.

If the encrypted drive is external it might be possible to automate everything -- so when it is plugged in you are prompted to authenticate and, when that is successful, qBittorrent is started.
 
  


Reply

Tags
faster, gdm, login, session, startup



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
Faster gnome session startup by delayed programs start catkin Linux - Desktop 0 07-06-2009 12:21 PM
Session Startup for KDE & Gnome Problem (fixed!) linuxStudent11 Fedora 0 06-15-2007 10:38 AM
Remove programs from Gnome session properties FraQture Linux - Newbie 1 10-18-2005 01:43 AM
Start programs at startup and get rid of current saved session Shwiing Linux - Software 2 08-04-2005 01:14 AM
Gnome session startup config cam2004 Linux - General 0 04-16-2005 12:27 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:35 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