Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: script executed right after logging

  • Subject: Re: script executed right after logging
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Fri, 11 Aug 2006 14:30:58 +0100
  • Newsgroups: comp.os.linux.misc
  • Organization: schestowitz.com / ISBE, Manchester University / ITS
  • References: <1155287500.038899.174560@74g2000cwt.googlegroups.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ opexoc@xxxxxxxxx ] on Friday 11 August 2006 10:11 \__

> Hi. I am using KDE as my desktop environment and Mandriva 2006
> Official. I wrote some simple script which is to execute
> mozilla-firefox right after logging job :
> 
> ------------THIS SIMPLE SCRIPT--------------
> 
> /usr/bin/mozilla-firefox
> 
> ------------------------------------------------------------
> 
> and I locate it into ~/.kde/Autostart/ . I gave also +x mode for user.
> It is listening:
> 
> [opexoc@localhost Autostart]$ ls -l
> razem 4
> -rwxr-xr-x  1 opexoc root 25 sie 11 11:00 auto*
> 
> Now, when I am entering to KDE the Kwrite program show me the content
> of this script and mozilla-firefox is not executed. Where is a problem
> ? Why mozilla is not executed ?
> 
> best regards,
> opexoc

I am not 100% sure about this, but associate your script with the shell. Add
to it the ".sh" suffix and prepend  "#!/bin/sh" to
"/usr/bin/mozilla-firefox" (i.e. put it on the first line). Otherwise, KDE
will rely on the standard file associations.

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index