From: Greg Wooledge <g...@wooledge.org> Date: Mon, 15 May 2023 13:42:52 -0400 Message-id: <[🔎] zgjvhophrprym...@wooledge.org>
Date: Mon, 15 May 2023 21:37:29 +0200 Message-id: <[🔎] 20230515193729.go1694...@zira.vinc17.org> Mail-followup-to: debian-user@lists.debian.org From: Christoph Brinkhaus <c.brinkh...@t-online.de> Date: Mon, 15 May 2023 20:06:49 +0200 Message-id: <[🔎] ZGJ0uYgwoLWV8GMw@lenovo.local> From: <to...@tuxteam.de> Date: Mon, 15 May 2023 20:26:09 +0200 Message-id: <[🔎] zgj5qen53mxbo...@tuxteam.de> From: Joe <j...@jretrading.com> Date: Mon, 15 May 2023 20:30:56 +0100 Message-id: <[🔎] 20230515203056.47030...@jrenewsid.jretrading.com> Thank you, leaders, for posting your replies to my post. I admire your intent to support a perpetual novice. Please once more check the two links that I had posted on the OP. If I want to run a script named script.sh how should I set my system up, like what should the supporting files look like, based on the OP? What would the supporting files look like, if I wanted to run mousepad, a GUI program, after lxsession begins? [To Mr. Wooledge]: Dear Mr. Wooledge, I thank you for your two replies. The essence has been noted: "... Create a ~/.xsessionrc file ... starting your X session. ..." Please inform as to where should I create this file. You also said: "... "mousepad" command ... Does it (mousepad) self-background? ... mousepad & ..." Does self-background mean that if I click on another program, it automatically runs in the background? In that case, yes it does. Mousepad is a plain text editor like the earlier leafpad. Other leaders have already informed you. And yes, you have summarised succinctly when you separately said, " ... I'm fairly certain the OP wants to run this "mousepad" program automatically as part of their X or Wayland session. ..." and "... OP's implied goal of running an X11 client program at user login. ..." [To Mr. Charlie]: Dear Mr. Charlie, Thank you, Mr. Charlie, for your post. But I am afraid that I can't agree to your comment, "... I think the OP is more interested in learning things and was following a tutorial when the question came up. ..." Actually, I am trying to fulfil an objective. [To Mr. Lefèvre]: Dear Mr. Lefèvre, Thank you for posting your comments. I have noted your lines, particularly, "... The /etc/rc.local file is provided by the initscripts package. I would suggest to either install this package ..." Yes, I have checked that if I go to Alt+Ctrl+F1 (or F2,3,4, etc) and type init 3 the lxsession isn't killed. I can kill by the kill -9 `pidof ...` command. Then I can't get back to init 5 (runlevel5) by simply typing. Some changes have happened over many releases. You also mentioned, "... GUI applications like mousepad should not be run from it. They should be run by the DE or WM. If this is not possible, run them just before via a ".xsession" file ..." WM is windows manager. DE is Desktop Environment. For those who will read this post later on, a compact explanation is at https://askubuntu.com/questions/18078/what-is-the-difference-between-a-desktop-environment-and-a-window-manager Thank you, Mr. Lefèvre, for your inputs. Your amended input for your lines, "... he can probably add it to XFCE's session manager. Applications -> Settings -> Session and Startup -> Application Autostart. ..." [To Mr. Tomas]: Dear Mr. Tomas, Thank you, Mr. Tomas, for your inputs. Yes, you are absolutely right about the mousepad program that I am using. I just want to have the mousepad automatically launched whenever I begin my GUI session. [To Mr. Brinkhaus]: Dear Mr. Brinkhaus, Thank you for your input. But owing to the situation clarified by the comments received and summarised above, I will for the time being pause my endeavour with systemd command. But I will get back to you for your input and advice, particularly on "... Have you already enabled your script with the systemd command? This is from the first link you have provided: Enable the service by running the following command "sudo systemctl enable yourscriptname.service" Start the service by running the following command "sudo systemctl start yourscriptname.service" If the service enabled and started please check the output of systemctl --failed. The command systemctl status yourscriptname.service should give information even if the service is running. ..." [To Mr. Joe]: Dear Mr. Joe, Thank you for your reply to Mr. Tomas with a little change: I use the Debian lxde session, having it installed from the Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46. So to my tentative next step: Following Mr. Wooledge's advice, I would "... Create a ~/.xsessionrc file ... starting your X session. ..." A little more tutiion on this, Mr. Wooledge please. Any advice on this, Mr. Lefèvre, particularly, on autostarting applications? Leaders, any advice on this? Also supposing that I would use my screensaver based on "xset dpms force off" at the start of the lxsession, what would be my steps? How should I proceed if I want to automatically have claws-mail or mousepad running when a new lxsession is begun? Thanks and best wishes, Rajib