OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: shanet on August 23, 2006, 04:08:30 pm

Title: Adding A Shell Script To The Tabs
Post by: shanet on August 23, 2006, 04:08:30 pm
Hi all,
I was wondering if you could advise me on adding something to the tabs in cacko on my sl-c1000, so that I can access it as an icon. I go in through tab settings and what have you, and everything is normal, but it won't allow me to enter the file I want executed (it's a shell script) as a new application. I have tried placing it in locations in the $PATH and it still tells me the application can not be found. The dialog also offers a list of applications, all of which are real, but I have no idea how to get my shell script onto this list. I know it can be done, as a few of the application launchers are scripts, but I don't know how to do it myself. It won't let me put the absolute path to the script there, perhaps I can change the tabs in an editor? I can't find any other threads with a similar problem (I assume I'm the only one who couldn't figure it out)

Thanks
Title: Adding A Shell Script To The Tabs
Post by: bam on August 23, 2006, 06:17:31 pm
Quote
Hi all,
I was wondering if you could advise me on adding something to the tabs in cacko on my sl-c1000, so that I can access it as an icon. I go in through tab settings and what have you, and everything is normal, but it won't allow me to enter the file I want executed (it's a shell script) as a new application. I have tried placing it in locations in the $PATH and it still tells me the application can not be found. The dialog also offers a list of applications, all of which are real, but I have no idea how to get my shell script onto this list. I know it can be done, as a few of the application launchers are scripts, but I don't know how to do it myself. It won't let me put the absolute path to the script there, perhaps I can change the tabs in an editor? I can't find any other threads with a similar problem (I assume I'm the only one who couldn't figure it out)

Thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=139554\"][{POST_SNAPBACK}][/a][/div]


on stock/sharp rom you can goto /home/QtPalmtop/apps/[tabname]/
make a copy of any *.desktop file, rename it to the program name
edit the file and where it says the original program name just enter your /path/to/script.sh/py/or whatever
make sure the script is executeable.

btw you can edit the displayed name and the icon as well in that [app_name].desktop file

to see it in the tab just goto tab config and exit it, that way it'll refresh your desktop
Title: Adding A Shell Script To The Tabs
Post by: shanet on August 23, 2006, 06:46:59 pm
Quote
Quote
Hi all,
I was wondering if you could advise me on adding something to the tabs in cacko on my sl-c1000, so that I can access it as an icon. I go in through tab settings and what have you, and everything is normal, but it won't allow me to enter the file I want executed (it's a shell script) as a new application. I have tried placing it in locations in the $PATH and it still tells me the application can not be found. The dialog also offers a list of applications, all of which are real, but I have no idea how to get my shell script onto this list. I know it can be done, as a few of the application launchers are scripts, but I don't know how to do it myself. It won't let me put the absolute path to the script there, perhaps I can change the tabs in an editor? I can't find any other threads with a similar problem (I assume I'm the only one who couldn't figure it out)

Thanks
[div align=\"right\"][a href=\"index.php?act=findpost&pid=139554\"][{POST_SNAPBACK}][/a][/div]


on stock/sharp rom you can goto /home/QtPalmtop/apps/[tabname]/
make a copy of any *.desktop file, rename it to the program name
edit the file and where it says the original program name just enter your /path/to/script.sh/py/or whatever
make sure the script is executeable.

btw you can edit the displayed name and the icon as well in that [app_name].desktop file

to see it in the tab just goto tab config and exit it, that way it'll refresh your desktop
[div align=\"right\"][a href=\"index.php?act=findpost&pid=139571\"][{POST_SNAPBACK}][/a][/div]

Brilliant, that's exactly what I needed to know. Thanks.
Title: Adding A Shell Script To The Tabs
Post by: bam on August 23, 2006, 11:03:03 pm
np....glad to help