WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Adding a script to the wbar  (Read 2164 times)

Offline Markis145

  • Newbie
  • *
  • Posts: 2
Adding a script to the wbar
« on: November 18, 2018, 10:48:14 AM »
Hello! I'm new to Tiny Core and I want to add a icon to the wbar that calls a script which requires user interaction (basically the script asks for a user and password) by terminal before it launches freerdp2.0 with the username and password introduced, so it's easy for the final user to use it.
I've followed this page on the wiki http://wiki.tinycorelinux.net/wiki:creating_custom_command_icons_in_wbar and it doesn't work for me. The icon is added to the wbar but when I click it, nothing happens.
If I use the script normally in the terminal, it works fine.


Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Adding a script to the wbar
« Reply #1 on: November 18, 2018, 11:44:51 AM »
Hi Markis145

For interactive shell scripts

Code: [Select]
#!/bin/sh
xterm -e "/path/to/your/script"

xterm  is a symbolic link to the currently installed terminal emulator. aterm by default.
Download a copy and keep it handy: Core book ;)

Offline Markis145

  • Newbie
  • *
  • Posts: 2
Re: Adding a script to the wbar
« Reply #2 on: November 19, 2018, 04:44:56 AM »
It worked! Thank you so much.