Welcome
|
FAQ
|
Downloads
|
Wiki
Tiny Core Linux
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Learn Tiny Core. View Tiny Core
Screen Shots and Videos
.
Home
Help
Login
Register
Tiny Core Linux
»
Tiny Core Base
»
TCB Q&A Forum
»
Adding a script to the wbar
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Adding a script to the wbar (Read 2224 times)
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.
Logged
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.
Logged
Download a copy and keep it handy:
Core book
;
)
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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Tiny Core Linux
»
Tiny Core Base
»
TCB Q&A Forum
»
Adding a script to the wbar