LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-15-2011, 09:33 AM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Rep: Reputation: 24
Possible bug - starting Jedit in rc.local fails, but mutes all sounds instead


In 13.1, I added these lines to /etc/rc.d/rc.local
Code:
su - g -c startx
firefox
xrvt
jedit
kwrite
Everything starts except jedit. Yet when I put jedit in at the terminal, it starts normally.

But jedit in rc.local does do something, it mutes all sounds for all users.

Googling the problem produced only the ideas that $JAVA_HOME or $PATH was the problem. But I don't believe that is so in this case:
Code:
root@darkstar:~# echo $PATH
/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin
root@darkstar:~# echo $JAVA_HOME
/usr/lib/java
root@darkstar:~# su g
g@darkstar:/root$ echo $PATH
/usr/local/bin:/bin:/usr/bin
g@darkstar:/root$ echo $JAVA_HOME
/usr/lib/java
g@darkstar:/root$
But even if it were, why should the command to start Jedit produce different actions depending on whether it is executed in a script or at a terminal?
 
Old 04-15-2011, 10:25 AM   #2
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 211

Rep: Reputation: 52
how about trying:
Code:
sleep 6 && jedit &
I use 'sleep [N] && <command> &' using fluxbox startup script with some commands to make them work correctly - it's different, I know, but the principle may be the same for the 'rc.local' script.

Last edited by dh2k; 04-15-2011 at 10:34 AM.
 
Old 04-15-2011, 04:45 PM   #3
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch, Lubuntu 18.04 OpenSUSE Leap 15.x
Posts: 518

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by dh2k View Post
how about trying:
Code:
sleep 6 && jedit &
Tried it in rc.local, made no difference. Tried it in .fluxbox/startup at first without the sleep command and it got halfway, got sounds but no jedit. Tried it in startup again as specified and I got neither sounds nor jedit.
 
Old 04-15-2011, 07:56 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Why are you doing this in rc.local in the first place? Why not just boot into runlevel 4 and use a X session manager of some type to remember that you want those things running when you log into X?
 
1 members found this post helpful.
  


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
[SOLVED] lsroot local exploit *Old Bug, but still Applied* willysr Slackware 7 04-02-2011 03:48 AM
LXer: Microsoft sounds alert on massive Web bug LXer Syndicated Linux News 0 09-21-2010 04:51 PM
Sounds fails at random in Skype bogdan.dusa Linux - Software 1 01-16-2007 06:13 AM
Installed jEdit, only get "Starting Programmer's Text Editor" Nathan1993 Ubuntu 6 03-29-2006 12:02 AM
loop back device fails.... possible bug? ProtoformX Linux - General 7 07-21-2005 05:21 PM

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

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