2

I've made a script on My Raspberry Pi (Rasbian Jessie) where I made a .desktop file to launch a Python script from the desktop.

When I open nautilus and go to the desktop path, the file runs. But when I double-click it from the desktop (without root privileges) nothing happens.

Shortcut.desktop

[Desktop Entry]
Version=1.0
Name=Network Monitor
Comment=This is my comment
Exec=python /home/Network_Monitor_Device/Scripts/Interface.py
Icon=/home/Network_Monitor_Device/Scripts/Logo.PNG
Path=/home/Network_Monitor_Device/Scripts/
Terminal=false
Type=Application
Categories=Utility;Application;
StartupNotify=true

Interface.py

#!/usr/bin/env python
import os
import sqlite3
import subprocess
import sys
...

Permissions on .desktop

enter image description here

asked Apr 13, 2017 at 7:29
1
  • The problem was that the permission of Network_Monitor_Device was root. Thanks! Commented Apr 13, 2017 at 7:40

1 Answer 1

1

I found the solution:

The permission of folder "Network_Monitor_Device" was still on root. I've changed it to "Pi" and the script did it!

answered Apr 14, 2017 at 7:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.