Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #26651 > unrolled thread

open text file on startup

Started byvjp2.at@at.BioStrategist.dot.dot.com
First post2019-04-15 18:34 +0000
Last post2019-04-15 15:24 -0400
Articles 2 — 2 participants

Back to article view | Back to comp.os.linux.misc


Contents

  open text file on startup vjp2.at@at.BioStrategist.dot.dot.com - 2019-04-15 18:34 +0000
    Re: open text file on startup John-Paul Stewart <jpstewart@sympatico.ca> - 2019-04-15 15:24 -0400

#26651 — open text file on startup

Fromvjp2.at@at.BioStrategist.dot.dot.com
Date2019-04-15 18:34 +0000
Subjectopen text file on startup
Message-ID<q92irm$dnu$1@reader2.panix.com>
I want to put kedit todo.txt in the Debian/Quantian starup

I tried putting it in /etc/bashrc but it didn't work

I found somethings about rc.d and init.d???


				    - = -
	 Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus
  blog: panix.com/~vjp2/ruminatn.htm - = - web:  panix.com/~vjp2/vasos.htm
   facebook.com/vasjpan2 - linkedin.com/in/vasjpan02 -  biostrategist.com
  ---{Nothing herein constitutes advice.  Everything fully disclaimed.}---



[toc] | [next] | [standalone]


#26656

FromJohn-Paul Stewart <jpstewart@sympatico.ca>
Date2019-04-15 15:24 -0400
Message-ID<ghk430F9upsU2@mid.individual.net>
In reply to#26651
On 2019-04-15 2:34 p.m., vjp2.at@at.BioStrategist.dot.dot.com wrote:
> I want to put kedit todo.txt in the Debian/Quantian starup
> 
> I tried putting it in /etc/bashrc but it didn't work

Since kedit is a (KDE) GUI editor, and bashrc is only read when
launching (bash) shells, that can't work.

> I found somethings about rc.d and init.d???

Again, no, not for a GUI text editor.  Those directories are for
system-wide start-up scripts that run during the boot process and are
for things such as background daemons and the login manager itself.

What you need to do is look into how your desktop of choice handles
start-up and session management and use those hooks to start kedit when
you log in to the GUI.  You certainly can't start kedit until the GUI is
up, and you really don't want it running outside of a user account, so
after GUI log in is the logical time to do it.

Since you're using kedit, I'm guessing you're using KDE (which I don't
use, so I can't offer any more specific instructions), so you might want
to start by reading:

https://docs.kde.org/stable5/en/kde-workspace/kcontrol/autostart/index.html

Or other docs on KDE's autostart mechanism.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web