- This topic has 34 replies, 6 voices, and was last updated Jul 19-3:51 pm by anticapitalista.
-
AuthorPosts
-
July 3, 2022 at 9:28 am #85541Member
Pelucia Siffred
I copy some .desktop files to /etc/xdg/autostart directory, but they are not starting following boot. I already edited ~/.desktop-session/desktop-session.conf and change the LOAD_XDG_AUTOSTART=”false” to LOAD_XDG_AUTOSTART=”true”, but it didn’t work anyway.
The file ~/.desktop-session/startup also does not run on startup and the file permissions are correct (0755).
What is wrong? How to fix this? I am using antiX-21 64 bits and zzzfmJuly 3, 2022 at 12:49 pm #85545Forum Admin
Dave
::Are you using a min-* option when you log in? This disables all startup items.
Are you using a different login manager that slimski? Then desktop-session is likely not used with the other login manager.Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 3, 2022 at 10:37 pm #85559MemberPelucia Siffred
::Hi Dave, thanks for answering my question. I don’t know if I’m using the min-* option when you log in, how can I check this?
I am using the default login manager and all default configuration. I just booted the system with a live CD and remastered it with some new applications and .desktop files in the /etc/xdg/autostart directory. I haven’t changed any settings, the settings I’m using are the defaults of antiX live CD. I didn’t create any new users, I’m using the default live CD (the demo user).July 4, 2022 at 10:19 pm #85589Forum Admin
Dave
::How is it that you have remastered a live cd?
As far as I know you cannot boot a live cd and remaster onto the same live cd as this is a read only system. Are you using another drive as well?Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 4, 2022 at 11:21 pm #85592MemberPelucia Siffred
::I choose my harddrive as destination of the remastered ISO, not a readonly media. I am using Easy2Boot to boot the antiX’s .iso file that I copy to my usb stick. I use the antiX’s live snapshot tool to generate de new ISO file and choose my harddrive to receive the remastered ISO. The remastered ISO works perfectly as expected (all programs I install go in remastered ISO), however the autostart do not work. The only thing did not work is autostart. The remaster is made successulfy.
July 5, 2022 at 11:34 am #85606Moderator
christophe
::That’s clever. 😉 However, since I don’t know anything about how Easy2Boot operates, let me ask you this:
Which programs are you trying to autostart, that do not start?
What happens if you try to run that exact command in a terminal – what is the output?confirmed antiX frugaler, since 2019
July 6, 2022 at 1:54 am #85649Forum Admin
Dave
::Ok. So you are live booting the remastered iso every time. Not running an installation or a persistence file.
The min- option (or other session options: rox-, space-, jwm-, etc) should be selectable from the boot menu “f” buttons, or the grub boot options. Once booted you can select a different session by pressing f1 at the login screen. If past the login screen you can select another session by menu -> desktop -> other desktop -> *-wm. (This can also be done by editing ~/.desktop-session/default-desktop and rebooting.)
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 6, 2022 at 7:30 am #85654MemberPelucia Siffred
::Hi christophe, the .desktop files I’m using are custom files that I created myself. Before posting my problem on this forum, I had already tested the .desktop files by clicking on them with the mouse button and selecting “Execute” and everything worked fine, but the autostart doesn’t work.
Here is the contents of the desktop file that autostart does not run:[Desktop Entry] Encoding=UTF-8 Name=Keyboard and Mouse Exec=sh -c 'xmodmap -e "pointer = 3 2 1 4 5 6 7 8 9 10" && setxkbmap br' Icon=input-mouse Terminal=false Type=ApplicationIf I click the mouse and select “Execute” everything works fine, but the autostart does not run the .desktop file.
July 6, 2022 at 7:33 am #85655MemberPelucia Siffred
July 6, 2022 at 4:44 pm #85673Forum Admin
Dave
::OK, what does ~/.desktop-session/current.log say?
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 7, 2022 at 7:20 am #85696MemberPelucia Siffred
::The file is attached in this answer, but I don’t know how to interpret it.
In the file there is the line below:desktop-session: run: eval sh -c 'xmodmap -e "pointerIs this line the one causing the problem?
- This reply was modified 10 months ago by Pelucia Siffred.
- This reply was modified 10 months ago by Pelucia Siffred.
- This reply was modified 10 months ago by Pelucia Siffred.
Attachments:
July 7, 2022 at 9:49 am #85709Membergreevous
::… The file ~/.desktop-session/startup also does not run on startup…
Commands for ~/.desktop-session/startup :
xmodmap -e “pointer = 3 2 1 4 5 6 7 8 9 10” &
setxkbmap br &Does it really not work?
July 7, 2022 at 4:47 pm #85726Forum Admin
Dave
::It looks like they are running.
What is the contents of your ~/.desktop-session/startup file?
Also what are the contents of the .desktop files you are trying to use?Edit:
I see the one above. Is this the only one?
It looks like there is an issue with the quoting and the eval interpreter- This reply was modified 10 months ago by Dave.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 8, 2022 at 8:59 am #85764MemberPelucia Siffred
::greevous, I don’t know why but my ~/.desktop-session/startup file doesn’t run at login time. File permissions are correct (0755). I added the following line to the ~/.desktop-session/startup file for testing:
touch /home/demo/Downloads/TESTING.txtThe ~/.desktop-session/startup file does not run and does not create the TESTING.txt file.
Here is the contents of the ~/.desktop-session/startup file:#!/bin/bash touch /home/demo/Downloads/TESTING.txt xmodmap -e "pointer = 3 2 1 4 5 6 7 8 9 10" & setxkbmap br & ## fix HiDPI screen if necessary. ## Not needed if there is no HiDPI screen autoscale-antix ## Only use ONE (or neither) ## Simple script to check for connectivity (NCA). ## If no network connection is detected, activate wi-fi networks, open connman and go straight to the wi-fi connections tab. network-check-antix & ## OR More comples tool (NCR) that provides on screen info while waiting for a network connection to be established. ## NRS reports in both GUI and non-GUI environments. #network-readiness-state & ## Puts connman gui monitor icon on the taskbar #cmst -m & ## Uncomment if using pulseaudio (you need to install it). Make sure it starts before volumeicon. pulseaudio -D & ## Puts a volume icon on the taskbar volumeicon & ## Enable/Disable automounting automount-antix & ## Puts a flag on the taskbar to show which keyboard is being used if more than 1 keyboard layout is detected fbxkb-start & ## Uncomment for easy search from the taskbar #search-bar-icon & ## Uncomment the following line to mount Samba and/or NFS shares #connectshares & ## Uncomment to show the configuration gui of a running ssh-conduit-x11vnc server (you need to install ssh-conduit-antix) #ssh-conduit-x11vnc.sh gui & ## Uncomment to use clipboard manager #clipit & ## Use pkexec (you need to install policykit-1-gnome) #/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & ## Uncomment both to show wicd networking monitor (you need to install wicd). #wicd-client -t & #grep -q "START_DAEMON=no" /etc/default/wicd || wicd-client -t & ## Uncomment after installing apt-notifier #apt-notifier & ## Enable Mouse Configuration at Startup #ds-mouse -all & ## Uncomment if using network-manager (you need to install it) #nm-applet & ## Create a bootchart image if bootchart was run test -e /etc/live/config/bootchart \ && (sleep 6 && test -e /var/log/bootchart.tgz \ && ! test -e ~/bootchart.png \ && pybootchartgui)& ## Used on live system only (sleep 5 && toram-eject) &- This reply was modified 9 months, 4 weeks ago by Pelucia Siffred.
- This reply was modified 9 months, 4 weeks ago by Pelucia Siffred.
- This reply was modified 9 months, 4 weeks ago by Pelucia Siffred.
July 8, 2022 at 9:15 am #85769MemberPelucia Siffred
::Dave, you’re right, it looks like there’s an issue with the quoting and the eval interpreter, so the file runs if I click the mouse button and select “Execute”, but it doesn’t run with autostart. In fact I have verified that other .desktop files are running on startup.
I don’t know how to solve this eval interpreter problem. -
AuthorPosts
- You must be logged in to reply to this topic.