Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 07 Oct 2015, 04:28
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
gtkdialog install/uninstall script v2.
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message

Joined: 15 Nov 2014
Posts: 9

PostPosted: Fri 25 Sep 2015, 08:15    Post subject:  gtkdialog install/uninstall script v2.  

My before script was have many bugs
( My fault Embarassed )
Now buttons working ( gdi-0.7.tar.gz )

Now I want control "Disable" "Enable" from variables. ( gdi-0.8.tar.gz )
Because, when You click (for example) button Kde Unistall, then "no" button was changed, but not should be. ( gdi-0.7.tar.gz )

( gdi-0.8.tar.gz )
When I click Uninstall or Install KDE button
will open window from FuncWarningAsk
then when I click "yes" or "no" variables ABLE1 and ABLE2 should be changed, (Disable, Enable for button)
I want control from "WarningAsk" window buttons inside gdi window,
because from function (from other winddow - WarningAsk window) I can not do this, so I added <action function="$variable">... (variable=Dosable or Enable) to "gdi" window
and I'm trying control with variables from FuncWarningAsk.
Gdi window not working, because first want read variables from functions,
which are empty. ( FuncABLE , functiontest )
awk: fatal: cannot open file `/tmp/gdi/action2' for reading (No such file or directory)

File not exist because will created after click button.

How it fix, how build, is it possible ?

PS: Script don't remove or install for now, so not will broke system,
and this way script is save
but when run first check which desktop enviroments you have installed
grep -h "Name=" /etc/X11/dm/Sessions/* | cut -c 6-

I have
$ grep -h "Name=" /etc/X11/dm/Sessions/* | cut -c 6-

This is FuncButtonsActivity, which control which button must me disabled and which ball should be red and green.
I write this because maybe not all people use gdm display manager.

Filename  gdi-0.8.tar.gz 
Filesize  13.06 KB 
Downloaded  6 Time(s) 

Filename  gdi-0.7.tar.gz 
Filesize  13.1 KB 
Downloaded  5 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0225s ][ Queries: 12 (0.0029s) ][ GZIP on ]