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


Groups > comp.os.linux.misc > #26656

Re: open text file on startup

From John-Paul Stewart <jpstewart@sympatico.ca>
Newsgroups comp.os.linux.misc
Subject Re: open text file on startup
Date 2019-04-15 15:24 -0400
Message-ID <ghk430F9upsU2@mid.individual.net> (permalink)
References <q92irm$dnu$1@reader2.panix.com>

Show all headers | View raw


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.

Back to comp.os.linux.misc | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web