LinuxQuestions.org
Visit Jeremy's Blog.
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 11-27-2014, 02:05 PM   #1
lgiancri
LQ Newbie
 
Registered: Dec 2005
Location: Italy
Distribution: slackware forever
Posts: 19

Rep: Reputation: 0
Question how to load vncviewer at startup


Hi I'm trying to load "vncviewer -listen" at startup but putting it in rc.local or .xinitrc didn't work. How do I automatically run a program after the window manager has been completely loaded?
thanks, lgiancri
 
Old 11-27-2014, 08:10 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,345
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Desktop Environments commonly have a startup option. It can usually be found in the control center called "Session," but it may be called something else.

Most window managers have a way to start programs on start-up. In Fluxbox, you add the program to your ~.fluxbox/startup file.

Which DE/WM are you using?
 
1 members found this post helpful.
Old 11-28-2014, 02:49 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
rc.local will be executed by root, something you probably do not want
 
Old 11-28-2014, 06:45 AM   #4
lgiancri
LQ Newbie
 
Registered: Dec 2005
Location: Italy
Distribution: slackware forever
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
Desktop Environments commonly have a startup option. It can usually be found in the control center called "Session," but it may be called something else.

Most window managers have a way to start programs on start-up. In Fluxbox, you add the program to your ~.fluxbox/startup file.

Which DE/WM are you using?
Thanks for answering
I'm using Kde in slackware 14.1
 
Old 11-28-2014, 11:20 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,670

Rep: Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786Reputation: 1786
try ~/.kde/Autostart/
 
Old 11-28-2014, 12:08 PM   #6
lgiancri
LQ Newbie
 
Registered: Dec 2005
Location: Italy
Distribution: slackware forever
Posts: 19

Original Poster
Rep: Reputation: 0
solution

Ok I got it!
In every users home there is a .kde/Autostart directory. I put a simple bash file in there and vncviewer loaded neatly after kde.
Thanks everybody for helping.
lgiancri
 
  


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
Changing startup to load an image instead of showing kernel/startup information. orangesky Programming 1 05-25-2010 02:29 AM
Load module on startup Cyhaxor Slackware 4 05-10-2008 10:27 PM
[root@localhost Desktop]# vncviewer 192.168.0.11:2 vncviewer not viewing kde display nickleus Linux - Software 13 10-27-2006 03:58 AM
How to load modules on startup wonker Debian 14 08-27-2006 04:59 PM
Load on Startup ShadowPeo Linux - Newbie 1 02-01-2003 07:53 PM

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

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