Why doesn't this .desktop file run on startup?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I'm trying to get the sensors command to run in a console on startup on my Linux Mint 18.2 setup. I've put the following sensors.desktop file into my login user's .config/autostart directory:



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=watch -d sensors
Icon=utilities-system-monitor
Terminal=true
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


I have another .desktop file in there that does run on startup, and this one runs if I double click it from the file explorer, so why does it not run on startup?







share|improve this question
















  • 1




    Is it executable?
    – Arpit Agarwal
    Nov 12 '17 at 14:46










  • It wasn't, but then nor was the other working .desktop file. I made it ugo+x and it still doesn't run on startup.
    – Jez
    Nov 12 '17 at 17:55










  • Change Exec=watch -d sensors with Exec=sh -c "watch -d sensors"
    – Arpit Agarwal
    Nov 12 '17 at 18:06










  • It still doesn't run at startup.
    – Jez
    Nov 12 '17 at 18:13






  • 1




    I just tried your script and it worked fine on login. I am using Xfce4. Maybe the problem is in cinnamon, you can try someother DE
    – Arpit Agarwal
    Nov 12 '17 at 18:19














up vote
3
down vote

favorite












I'm trying to get the sensors command to run in a console on startup on my Linux Mint 18.2 setup. I've put the following sensors.desktop file into my login user's .config/autostart directory:



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=watch -d sensors
Icon=utilities-system-monitor
Terminal=true
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


I have another .desktop file in there that does run on startup, and this one runs if I double click it from the file explorer, so why does it not run on startup?







share|improve this question
















  • 1




    Is it executable?
    – Arpit Agarwal
    Nov 12 '17 at 14:46










  • It wasn't, but then nor was the other working .desktop file. I made it ugo+x and it still doesn't run on startup.
    – Jez
    Nov 12 '17 at 17:55










  • Change Exec=watch -d sensors with Exec=sh -c "watch -d sensors"
    – Arpit Agarwal
    Nov 12 '17 at 18:06










  • It still doesn't run at startup.
    – Jez
    Nov 12 '17 at 18:13






  • 1




    I just tried your script and it worked fine on login. I am using Xfce4. Maybe the problem is in cinnamon, you can try someother DE
    – Arpit Agarwal
    Nov 12 '17 at 18:19












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I'm trying to get the sensors command to run in a console on startup on my Linux Mint 18.2 setup. I've put the following sensors.desktop file into my login user's .config/autostart directory:



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=watch -d sensors
Icon=utilities-system-monitor
Terminal=true
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


I have another .desktop file in there that does run on startup, and this one runs if I double click it from the file explorer, so why does it not run on startup?







share|improve this question












I'm trying to get the sensors command to run in a console on startup on my Linux Mint 18.2 setup. I've put the following sensors.desktop file into my login user's .config/autostart directory:



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=watch -d sensors
Icon=utilities-system-monitor
Terminal=true
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


I have another .desktop file in there that does run on startup, and this one runs if I double click it from the file explorer, so why does it not run on startup?









share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '17 at 13:49









Jez

2931726




2931726







  • 1




    Is it executable?
    – Arpit Agarwal
    Nov 12 '17 at 14:46










  • It wasn't, but then nor was the other working .desktop file. I made it ugo+x and it still doesn't run on startup.
    – Jez
    Nov 12 '17 at 17:55










  • Change Exec=watch -d sensors with Exec=sh -c "watch -d sensors"
    – Arpit Agarwal
    Nov 12 '17 at 18:06










  • It still doesn't run at startup.
    – Jez
    Nov 12 '17 at 18:13






  • 1




    I just tried your script and it worked fine on login. I am using Xfce4. Maybe the problem is in cinnamon, you can try someother DE
    – Arpit Agarwal
    Nov 12 '17 at 18:19












  • 1




    Is it executable?
    – Arpit Agarwal
    Nov 12 '17 at 14:46










  • It wasn't, but then nor was the other working .desktop file. I made it ugo+x and it still doesn't run on startup.
    – Jez
    Nov 12 '17 at 17:55










  • Change Exec=watch -d sensors with Exec=sh -c "watch -d sensors"
    – Arpit Agarwal
    Nov 12 '17 at 18:06










  • It still doesn't run at startup.
    – Jez
    Nov 12 '17 at 18:13






  • 1




    I just tried your script and it worked fine on login. I am using Xfce4. Maybe the problem is in cinnamon, you can try someother DE
    – Arpit Agarwal
    Nov 12 '17 at 18:19







1




1




Is it executable?
– Arpit Agarwal
Nov 12 '17 at 14:46




Is it executable?
– Arpit Agarwal
Nov 12 '17 at 14:46












It wasn't, but then nor was the other working .desktop file. I made it ugo+x and it still doesn't run on startup.
– Jez
Nov 12 '17 at 17:55




It wasn't, but then nor was the other working .desktop file. I made it ugo+x and it still doesn't run on startup.
– Jez
Nov 12 '17 at 17:55












Change Exec=watch -d sensors with Exec=sh -c "watch -d sensors"
– Arpit Agarwal
Nov 12 '17 at 18:06




Change Exec=watch -d sensors with Exec=sh -c "watch -d sensors"
– Arpit Agarwal
Nov 12 '17 at 18:06












It still doesn't run at startup.
– Jez
Nov 12 '17 at 18:13




It still doesn't run at startup.
– Jez
Nov 12 '17 at 18:13




1




1




I just tried your script and it worked fine on login. I am using Xfce4. Maybe the problem is in cinnamon, you can try someother DE
– Arpit Agarwal
Nov 12 '17 at 18:19




I just tried your script and it worked fine on login. I am using Xfce4. Maybe the problem is in cinnamon, you can try someother DE
– Arpit Agarwal
Nov 12 '17 at 18:19










1 Answer
1






active

oldest

votes

















up vote
3
down vote



accepted
+50










Solved the issue. Change the content of sensor.desktop to this



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=gnome-terminal -e 'watch -d sensors'
Icon=utilities-system-monitor
Type=Application
Categories=GNOME;GTK;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


Make sure you have gnome-terminal already installed. If you use some other terminal than replace it accordingly.






share|improve this answer






















  • Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
    – Jez
    Nov 17 '17 at 12:49










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f404040%2fwhy-doesnt-this-desktop-file-run-on-startup%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted
+50










Solved the issue. Change the content of sensor.desktop to this



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=gnome-terminal -e 'watch -d sensors'
Icon=utilities-system-monitor
Type=Application
Categories=GNOME;GTK;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


Make sure you have gnome-terminal already installed. If you use some other terminal than replace it accordingly.






share|improve this answer






















  • Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
    – Jez
    Nov 17 '17 at 12:49














up vote
3
down vote



accepted
+50










Solved the issue. Change the content of sensor.desktop to this



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=gnome-terminal -e 'watch -d sensors'
Icon=utilities-system-monitor
Type=Application
Categories=GNOME;GTK;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


Make sure you have gnome-terminal already installed. If you use some other terminal than replace it accordingly.






share|improve this answer






















  • Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
    – Jez
    Nov 17 '17 at 12:49












up vote
3
down vote



accepted
+50







up vote
3
down vote



accepted
+50




+50




Solved the issue. Change the content of sensor.desktop to this



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=gnome-terminal -e 'watch -d sensors'
Icon=utilities-system-monitor
Type=Application
Categories=GNOME;GTK;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


Make sure you have gnome-terminal already installed. If you use some other terminal than replace it accordingly.






share|improve this answer














Solved the issue. Change the content of sensor.desktop to this



[Desktop Entry]
Name=Monitor sensors
Comment=Monitor temperature sensors
Exec=gnome-terminal -e 'watch -d sensors'
Icon=utilities-system-monitor
Type=Application
Categories=GNOME;GTK;Monitor;
NotShowIn=KDE;
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0


Make sure you have gnome-terminal already installed. If you use some other terminal than replace it accordingly.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 17 '17 at 14:02









Jez

2931726




2931726










answered Nov 16 '17 at 10:16









Arpit Agarwal

33429




33429











  • Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
    – Jez
    Nov 17 '17 at 12:49
















  • Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
    – Jez
    Nov 17 '17 at 12:49















Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
– Jez
Nov 17 '17 at 12:49




Thanks, works great. I did suggest an edit though which changes the suggested .desktop file a bit to the one I actually used to get it working.
– Jez
Nov 17 '17 at 12:49

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f404040%2fwhy-doesnt-this-desktop-file-run-on-startup%23new-answer', 'question_page');

);

Post as a guest