-1

I'm a beginner in lua OS: Manjaro XFCE

If I run from terminal desktop notification with notify-send or zenity it works. for instance:

notify-send -t 4000 'Displays for 4 secs' "understood!!"

However, I can make it work from a lua script.

#!/usr/bin/lua

print ("basic test")

notify-send -t 4000 'Displays for 4 secs' "understood!!"

How to fix this, I tried several ways, incl os.execute(), but without success.

Thanks

DarkWiiPlayer
  • 6,871
  • 3
  • 23
  • 38
user2718593
  • 111
  • 8

1 Answers1

3
os.execute("notify-send -t 4000 'Displays for 4 secs' 'understood!!'")
DarkWiiPlayer
  • 6,871
  • 3
  • 23
  • 38