- This topic has 34 replies, 6 voices, and was last updated Jul 19-3:51 pm by anticapitalista.
-
AuthorPosts
-
July 8, 2022 at 11:51 am #85772Forum Admin
Dave
::The way the exec line is extracted from the .desktop files may need to be rewritten / fixed so that it does not use quotes internally as it is not set to use / extract shell strings…
Since you have the xmodmap command in ~/.desktop-session/startup, try removing the .desktop file with that command from the autostart directory and see if the the other .desktop files and the startup file works. Also copy the ~/.desktop-session/current.log with the .desktop file removed from the autostart directory.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 9, 2022 at 10:32 am #85823MemberPelucia Siffred
::I removed the .desktop file with the command “xmodmap” and did logout, after login still nothing works, the script ~/.desktop-session/startup do not run. I don’t know why it do not run.
The ~/.desktop-session/current.log file is attached to this message. I had to rename it putting the .txt extension to be able to attach it to this post.Attachments:
July 9, 2022 at 8:05 pm #85849Membergreevous
July 10, 2022 at 1:08 am #85865MemberPelucia Siffred
::I put a “&” at the end of command, still not work.
- This reply was modified 10 months ago by Pelucia Siffred.
July 10, 2022 at 6:20 am #85876Membergreevous
::… the script ~/.desktop-session/startup do not run. I don’t know why it do not run…
Indeed, startup does not start. There is no record of this script execution in your log.
July 10, 2022 at 3:26 pm #85895Forum Admin
Dave
::There is another .desktop file with a shell string incorrectly quoted. Maybe try moving that one as well.
Also could you post your ~/.desktop-session/desktop-session.conf file?Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 11, 2022 at 3:12 am #85934MemberPelucia Siffred
::The ~/.desktop-session/desktop-session.conf file has been renamed to desktop-session.conf.txt and attached to this message.
Attachments:
July 11, 2022 at 9:26 pm #85955Forum Admin
Dave
::OK thanks.
Did you try removing the other autostart .desktop file with the shell code in the exec line?
If so and it does not work could you try disabling the xdg autostart to see if the startup script then works?
1) if it does then work please post a compressed file of all the .desktop files in the xdg autostart directories (~/.config/autostart + /etc/xdg/autostart)
2) if it does not please post the output of ls -l ~/.desktop-session/*Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 12, 2022 at 8:13 am #85973MemberPelucia Siffred
::I created a custom script (/usr/local/bin/myconfigs.sh) and write the commands to it, then I created a .desktop file with the line “Exec=/usr/local/bin/myconfigs.sh” (without shell strings) and copy to /etc/xdg/autostart directory, now everything works fine. The problem was solved, however I wold like to make my ~/.desktop-session/startup to work because maybe a I need to use it, so to do some testing, I put a comment on the line ‘#LOAD_XDG_AUTOSTART=”true”‘ to disable the initialization of .desktop files. Now the ~/.desktop-session/startup file runs, but the .desktop files in the /etc/xdg/autostart folder no longer run. I would like a solution so that it is possible to enable autostart and at the same time run the file ~/.desktop-session/startup. Is it possible to enable both at the same time? If I have to choose I’d rather leave autostart enabled because now it’s working.
Another question, the shell strings issue in desktop file autostart is antiX specific or is a Linux common behavior?
All directories you requested have been compressed into a single file and are attached in this message.
I appreciate all of you who wanted to help me, thank you very much.Attachments:
July 14, 2022 at 11:44 am #86087Forum Admin
Dave
::It is possible to enable both at the same time. I have both enabled regularly.
I am not sure about the shell strings in the .desktop file being a problem elsewhere (It is definitely a problem here that could be addressed). I believe that is the regular practice though to put shell commands in their own script and run the script from the .desktop file as you have done. Theoretically they should be placed in the ~/.desktop-session/startup file as this is meant for the shell commands.I am not 100% certain which .desktop file would be causing the issue.
The one is a symlink to elsewhere (start-vidalia-if-tor-is-running.desktop) that I cannot view, but I suspect that this has a exec line calling another script which should be ok.
~/.config/autostart/my-ctrl-alt-backspace.desktop has a bit of an odd exec line (as it contains a :). Maybe try moving that command to the end ~/.desktop-session/startup file and removing the .desktop file.There is also an error logged for notify-osd that the file /usr/lib/notify-osd/notify-osd does not exist (Though I do not believe this is the issue).
Does it actually exist or is this pointing to the wrong file / notify-osd not installed.If the command in my-ctrl-alt-backspace.desktop is not the issue; then all I can suggest for the moment is to move one .desktop file out of the autostart directories at a time till the ~/.desktop-session/startup file works. Hopefully then we will have it narrowed down to one file that can be focused on.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 16, 2022 at 10:51 am #86160MemberPelucia Siffred
::I changed the contents of the ~/.config/autostart/my-ctrl-alt-backspace.desktop file but still the ~/.desktop-session/startup file didn’t run so I moved the my-ctrl-alt-backspace.desktop file to the /etc/xdg/autostart folder and everything ran, the /etc/xdg/my-ctrl-alt-backspace.desktop file and the ~/.desktop-session/startup file. It seems that the “startup” script does not run when there are .desktop files in the ~/.config/autostart folder.
July 16, 2022 at 1:00 pm #86162Forum Admin
Dave
::OK so there is an issue with how the ~/.config/autostart folder is used then.
Could you send one more time the ~/.desktop-session/current.log now with everything working?
Then I can compare it to my testing here when trying to resolve the issue.Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
July 17, 2022 at 3:04 am #86192MemberPelucia Siffred
July 17, 2022 at 3:54 pm #86205Membergreevous
::I changed the contents of the ~/.config/autostart/my-ctrl-alt-backspace.desktop file but still the ~/.desktop-session/startup file didn’t run so I moved the my-ctrl-alt-backspace.desktop file to the /etc/xdg/autostart folder and everything ran, the /etc/xdg/my-ctrl-alt-backspace.desktop file and the ~/.desktop-session/startup file. It seems that the “startup” script does not run when there are .desktop files in the ~/.config/autostart folder.
If /home/demo/desktop-session/startup works, then I advise you to use this particular file, adding your commands to the end of it. This is the easiest way.
Good luck, Pelucia!July 18, 2022 at 5:39 pm #86229MemberPelucia Siffred
::I need both, /etc/xdg/autostart (for system wide config) and ~/.desktop-session/startup for user config. Now both are working (except ~/.config/autostart), so the problem has been solved. Thank you very much.
-
AuthorPosts
- You must be logged in to reply to this topic.