more lxrandr-autostart.desktop[Desktop Entry]Type=ApplicationName=LXRandR autostartComment=Start xrandr with settings done in LXRandRExec=sh -c 'xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60.00 --output eDP --mode 1920x1200 --rate 60.00 --left-of HDMI-A-0'OnlyShowIn=LXDESo exactly how would I specify that I wanted to start chrome when lxde starts up?$HOME/.config/autostart is a directory with startup files in it, not a single file.
Here is an example from one of my systems that sets up 2 monitors. The "OnlyShowIn" variable means this specific is only seen when you are configuring LXDE. There is probably documentation somewhere on the format of these files.
more lxrandr-autostart.desktop
[Desktop Entry]
Type=Application
Name=LXRandR autostart
Comment=Start xrandr with settings done in LXRandR
Exec=sh -c 'xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60.00 --output eDP
--mode 1920x1200 --rate 60.00 --left-of HDMI-A-0'
OnlyShowIn=LXDE
The LXDE autostart file is located at the users ~/.config/lxsession/LXDE/autostartWhat is the usual location of an autostart file for lxde?
Does this file get created automatically when you install LXDE?The LXDE autostart file is located at the users ~/.config/lxsession/LXDE/autostart
Yes it is a generic desktop file, but for something I needed to create by hand. A lot of application do have them in /usr/local/share, but not all.I'm not using LXDE, but reading sample on comment #2, it looks to be a generic *.desktop file.
Not all ports / pkgs has one, but www/chromium should have /usr/local/share/applications/chromium-browser.desktop
. Try copying it into the mentioned directory.
If you dig into the startup code of some DEs (I think "awesome" was the easiest to figure out for me) they look in a few standard places for desktop files (like a PATH) but not all applications put their files on that path. So you may need to manually edit stuff to get the "automatic" part.Using provided *.desktop file would be the easiest way for DEs, but I think DEs usually have GUI panel to enter sufficient info to create one per-user basis.
I believe /usr/local/share/applications is the place to store *.desktop files.they look in a few standard places for desktop files (like a PATH)
By the way, ports supports the DESKTOPDIR variable, which is set to ${PREFIX}/share/applications by default.I believe /usr/local/share/applications is the place to store *.desktop files.
Maybe not all ports (especially ones existing from before the variable is introduced) uses it. And some would NOT have *.desktop at all even if it's actually a desktop app. Sorry, forgot which ones were.By the way, ports supports the DESKTOPDIR variable, which is set to ${PREFIX}/share/applications by default.
No it does not. Only when you start something lxDoes this file get created automatically when you install LXDE?
I thought it did, because I have used it in the past, but I don't have one now.
I know I can create it, but I thought it got created automatically.
I have lxpanel and lxterminal but no lxsession. I just wondered where it came from. ie does it get created automatically or manually.
Maybe what to predefine for autostart on configuring home directory of the user that first runs it would be somehow listed by upstream or ports maintainer(s).No it does not. Only when you start something lx
It is created automatically. Are you using perhaps a display manager (sddm, lighdm, ly, slim)?Does this file get created automatically when you install LXDE?
I thought it did, because I have used it in the past, but I don't have one now.
I know I can create it, but I thought it got created automatically.
I have lxpanel and lxterminal but no lxsession. I just wondered where it came from. ie does it get created automatically or manually.
Should be.Like i said it is created on the start of an lx application not on the install