2

Here's my .desktop file content

[Desktop Entry]
Encoding=UTF-8
Name=wifite
Comment=WiFite , fight for WiFi
Exec=pantheon-terminal -e 'wifite --help' 
Icon=wifite
Terminal=true
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=false

I even used this Exec=gksudo pantheon-terminal -e '/usr/bin/x11/wifite.py'. But nothing works

  • I have added an answer.Mark it as answer if it works – Suici Doga Jun 24 '16 at 13:57
2

Try changing the Exec line in the file to

pkexec pantheon-terminal -e "bash -c 'wifite;$SHELL'"

or (alternate version)

pantheon-terminal -e "bash -c 'pkexec wifite;$SHELL'"

Then try the .desktop file and see if it works :)

NOTE : I changed gksudo to pkexec so that you have a better looking password prompt.

  • Using pkexec it gives this "error accessing /usr/bin/x11/wifite.py : no such file or directory – user591721 Jun 24 '16 at 17:03
  • And using gksu it gives this "gtk-message: failed to load mofule" pantheon-filrchooser-module" and some gtk warning 3619 unable to locate theme engine in module_path "pixmap" – user591721 Jun 24 '16 at 17:07
  • I just changed this 'gksudo wifite;$shell' " and it runs with error like i mentioned in 2nd comment and than it runs wifite but at sametime quits itself – user591721 Jun 24 '16 at 17:19
  • Dude this line works exec=pantheon-terminal -e "bash -c 'pkexec wifite;$shell'" thankyousomuch – user591721 Jun 24 '16 at 17:38
  • On my laptop exec=pantheon-terminal -e "bash -c 'pkexec wifite;$shell'" works.The previous one doesn't because you are pointing to a non-existant file – Suici Doga Jun 25 '16 at 1:34
0

easy fix is, Go to AppCenter. Install Xterm then it works if you have Terminal=true

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.