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

Clash 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?
linux-mint x11 startup cinnamon
 |Â
show 4 more comments
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?
linux-mint x11 startup cinnamon
1
Is it executable?
â Arpit Agarwal
Nov 12 '17 at 14:46
It wasn't, but then nor was the other working.desktopfile. I made itugo+xand it still doesn't run on startup.
â Jez
Nov 12 '17 at 17:55
ChangeExec=watch -d sensorswithExec=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 usingXfce4. Maybe the problem is incinnamon, you can try someother DE
â Arpit Agarwal
Nov 12 '17 at 18:19
 |Â
show 4 more comments
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?
linux-mint x11 startup cinnamon
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?
linux-mint x11 startup cinnamon
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.desktopfile. I made itugo+xand it still doesn't run on startup.
â Jez
Nov 12 '17 at 17:55
ChangeExec=watch -d sensorswithExec=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 usingXfce4. Maybe the problem is incinnamon, you can try someother DE
â Arpit Agarwal
Nov 12 '17 at 18:19
 |Â
show 4 more comments
1
Is it executable?
â Arpit Agarwal
Nov 12 '17 at 14:46
It wasn't, but then nor was the other working.desktopfile. I made itugo+xand it still doesn't run on startup.
â Jez
Nov 12 '17 at 17:55
ChangeExec=watch -d sensorswithExec=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 usingXfce4. Maybe the problem is incinnamon, 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
 |Â
show 4 more comments
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
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.
Thanks, works great. I did suggest an edit though which changes the suggested.desktopfile a bit to the one I actually used to get it working.
â Jez
Nov 17 '17 at 12:49
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
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.
Thanks, works great. I did suggest an edit though which changes the suggested.desktopfile a bit to the one I actually used to get it working.
â Jez
Nov 17 '17 at 12:49
add a comment |Â
up vote
3
down vote
accepted
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.
Thanks, works great. I did suggest an edit though which changes the suggested.desktopfile a bit to the one I actually used to get it working.
â Jez
Nov 17 '17 at 12:49
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
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.
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.
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.desktopfile a bit to the one I actually used to get it working.
â Jez
Nov 17 '17 at 12:49
add a comment |Â
Thanks, works great. I did suggest an edit though which changes the suggested.desktopfile 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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Is it executable?
â Arpit Agarwal
Nov 12 '17 at 14:46
It wasn't, but then nor was the other working
.desktopfile. I made itugo+xand it still doesn't run on startup.â Jez
Nov 12 '17 at 17:55
Change
Exec=watch -d sensorswithExec=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 incinnamon, you can try someother DEâ Arpit Agarwal
Nov 12 '17 at 18:19