• The autostart desktop icon doesn't work.

    It is the content of my desktop icon, please help
    I put them in ~/.config/autostart/, it doesn’t work, but I can open them manually.

    [Desktop Entry]
    Comment[zh_TW]=xrandr --output HDMI1 --set "Broadcast RGB" "Full"
    Exec=xrandr --output HDMI1 --set "Broadcast RGB" "Full"
  • @s9209122222
    Which desktop are you using?
    Do you launch through terminal with gtk-launch FullRangeRGB or other command? I guess just clicking the file doesn’t work you will need to create a launcher for it (at least i can’t launch .desktop from /usr/share/applications directly)
    If you want to launch a command on startup you can launch through script also.

  • @fernandomaroto It will work if I double click on it, but it won’t open at startup.

  • interesting, then i guess the desktop is already set as executable (unless you set the file manager to execute it)
    Just in case open a terminal in that folder and type chmod +x [the_name_of_your_desktop.desktop] (perhaps the command doesn’t need the file extesion…
    Then reboot and see if it’s launched on startup…

  • @fernandomaroto It doesn’t work, I still need to double click it.
    Would it be caused by the desktop environment? I am using Deeping Desktop Environment.

  • .desktop files do not need to be executable, except if you would want to lauch them by doublke-clicking, for example as launcher on the desktop.

    • Try putting “evince” as the command: if evince launches upon the next login, then you know it is not an issue with the desktop file itself
    • Perhaps delaying the command somewhat may help: change the command to
    Exec=sh -c 'sleep 5 && xrandr --output HDMI1 --set "Broadcast RGB" "Full"'```
    This will delay the command by 5 seconds (adjust as needed). That might be needed, because gnome shell might not like you are changing the xserver settings while it is starting up.
  • @s9209122222 I don’t know… i never tried to launch a .desktop file from startup, i usually create a .sh script.
    Try to follow @antimony instructions and see if it works, if not i’d recommend using a script until you find the proper solution…

  • hi! i discoverd mate desktop need another line in the .desktop file, perhaps your desktop need it too, example:

    [Desktop Entry]
    Name=Autostart example
    Comment=This file shows that the line below is needed for MATE to autostart an executable

  • There is indeed such a line for gnome-shell:
    but there is no need to add it. When the line is there with “false”, it effectively will prevent the autostart.

icon52 autostart10 work6 Posts 9Views 1524
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.