PupShutdown-3.0
Version 1.4. See main post.
-Removed redundant code; now supports concurrent instances.
-Added default applications selector.
-Added support for standby mode in ACPI compliant laptops and notebooks.
-Added seamless integration with PupApps Launcher and PupControl Panel for easy access to most Puppy applications and system functions.
-Improved compatibility with the Stardust desktop environment (DuDe).
-Removed redundant code; now supports concurrent instances.
-Added default applications selector.
-Added support for standby mode in ACPI compliant laptops and notebooks.
-Added seamless integration with PupApps Launcher and PupControl Panel for easy access to most Puppy applications and system functions.
-Improved compatibility with the Stardust desktop environment (DuDe).
Re: Option "DO NOT SAVE" at shutdown ?
I am running quirky on a bootable usb flashdrive, and at shutdown Quirky tells me that things are already saved in the top laver.radky wrote:Nancy, I think your request could be very useful for those who boot Puppy in flash memory.As you keep rebuilding this pet I take the liberty to ask for the... option "DO NOT SAVE" - at shutdown.
Not sure if you can work around that. Not being able to select no save at shut down is a huge inconvenience when you do not want or need to save changes....killing the power or performing usb interruptus has never appealed to me.
Thom
Version 1.5. See main post.
-Access buttons for System Information and Task Management are now transposed.
-Drop-down lists in the applications selector now show installed programs only.
-After first install, please set default apps as follows: Pref->Configuration options->Apps.
-Supported backup programs include gadmin-rsync, pbackup, pmirror and snap2.
-Supported task-manager programs include htop, lxtask, pprocess and xfce4-taskmanager.
-Shutdown code is now enhanced to comply with most Puppy derivatives and window managers.
-Improved support for the suspend feature of ACPI compliant laptops and notebooks.
-Access buttons for System Information and Task Management are now transposed.
-Drop-down lists in the applications selector now show installed programs only.
-After first install, please set default apps as follows: Pref->Configuration options->Apps.
-Supported backup programs include gadmin-rsync, pbackup, pmirror and snap2.
-Supported task-manager programs include htop, lxtask, pprocess and xfce4-taskmanager.
-Shutdown code is now enhanced to comply with most Puppy derivatives and window managers.
-Improved support for the suspend feature of ACPI compliant laptops and notebooks.
Go to /etc/xdg/templates/_root_.icewm_menu.How do I add PupShutdown to the first-order menu of IceWM in Lupu-511, Lupu-520 and Lupu-525?
To add the PupShutdown entry immediately below the Help entry of the IceWM menu:
Insert the following below line #52:
Code: Select all
prog PupShutdown shutdown24.png PupShutdown
Delete (or comment out) lines 54-65, and replace with the following:
Code: Select all
prog PupShutdown shutdown24.png PupShutdown
Last edited by radky on Mon 18 Apr 2011, 22:40, edited 1 time in total.
May I also thank radky for his huge & welcome contributions to Puppy.
An alternative approach which I have adopted is to edit the quick launch menu in ICEWM to provide icons for CD insert/eject & PupShutdown on the taskbar.
The syntax is slightly different but provides a backdoor to pup control by selecting exit on the shutdown window.
Both can be seen in action here:
http://megaswf.com/simple_serve/1046691/
An alternative approach which I have adopted is to edit the quick launch menu in ICEWM to provide icons for CD insert/eject & PupShutdown on the taskbar.
The syntax is slightly different but provides a backdoor to pup control by selecting exit on the shutdown window.
Both can be seen in action here:
http://megaswf.com/simple_serve/1046691/
- Attachments
-
- screenshot.1.png
- (55.15 KiB) Downloaded 1173 times
ETP,An alternative approach which I have adopted is to edit the quick launch menu in ICEWM to provide icons for CD insert/eject & PupShutdown on the taskbar.
Launching either PupShutdown or PupControl’s Shutdown manager from the quick launch menu of IceWM is an interesting approach. Thanks for sharing.
mickee,Works eggzellently!
Thanks for your positive comments. By the way, you and ETP have great avatars.
localised version of PupShutdown-16
Have you been thinking about localising PupShutdown?
I recently tried Snow Puppy and it had PupShutdown installed.
http://www.murga-linux.com/puppy/viewto ... 94&t=63163
http://www.murga-linux.com/puppy/viewtopic.php?t=66836
Using Zigbert's method I did a quick and dirty localisation so that I
could switch between French and English by changing the country.
You might be interested in the code. It's quite simple.
Install this pet on Snow puppy and switch back and forth between
French and English.
http://www.filedropper.com/pupshutdown-snow-16
Here is what it looks like in French. I had to put in hard blank spaces
to get the buttons to look symmetrical.
______________________________________________________________
I recently tried Snow Puppy and it had PupShutdown installed.
http://www.murga-linux.com/puppy/viewto ... 94&t=63163
http://www.murga-linux.com/puppy/viewtopic.php?t=66836
Using Zigbert's method I did a quick and dirty localisation so that I
could switch between French and English by changing the country.
You might be interested in the code. It's quite simple.
Install this pet on Snow puppy and switch back and forth between
French and English.
http://www.filedropper.com/pupshutdown-snow-16
Here is what it looks like in French. I had to put in hard blank spaces
to get the buttons to look symmetrical.
______________________________________________________________
- mickee
- Posts: 207
- Joined: Tue 08 Feb 2011, 14:59
- Location: Saskatoon SK Canada, Gateway 5300 Laptop, 600MHz Celeron, 384MB RAM, lucid puppy 5.2 (Full Install)
- Contact:
I use that avatar alot. It's actually a 6 inch statue I have, complete with lots of drool. It's from "Mickey and The Runaway Brain" - a sort of Dr. Jekyl/Mr. Hyde cartoon. This version of Mickey Mouse is from when he traded brains with his monster. The funnier part was mickey's voice coming out of the gigantic monster's body, LOL.radky wrote:mickee,
Thanks for your positive comments. By the way, you and ETP have great avatars.
[img]http://i17.photobucket.com/albums/b68/The_Wizard_of_OZ/Lindows-NOT-1.jpg[/img]
Linux is [i][b]NOT[/b][/i] Windows. Doesn't [i][b]PRETEND[/b][/i] to be, Doesn't [i][b]WANT [/b][/i]to be; Don't try to [i][b]MAKE[/b][/i] it be.
Linux is [i][b]NOT[/b][/i] Windows. Doesn't [i][b]PRETEND[/b][/i] to be, Doesn't [i][b]WANT [/b][/i]to be; Don't try to [i][b]MAKE[/b][/i] it be.
Re: localised version of PupShutdown-16
Thank you for promoting the importance of GUI localization. As true for most in the Puppy community, I have followed your recent forum posts with considerable interest, and I applaud your insight and dedication.don570 wrote:Have you been thinking about localising PupShutdown?
I recently tried Snow Puppy and it had PupShutdown installed.
Most of my applications, including PupShutdown, are structured for a certain GUI symmetry that I try to maintain for all global font sizes (72-144 dpi). For some graphical interfaces, a text string that looks OK at 78-dpi may distort the GUI at higher dpi settings. In some instances, by simply adding a few extra characters to certain text strings, a GUI can distort significantly (see below for your example of French localization in PupShutdown at 90-dpi screen resolution).
I could change the format of PupShutdown by increasing the size of the main GUI, and by extending the horizontal dimension of the access buttons, but it would be difficult to anticipate a size that would be sufficient for the translated text of all locales. Also, the large access buttons would appear disproportionate when the localized text strings are small. Even so, I’ll continue to look for ways to embrace localization. Thanks again for your suggestions.
- Attachments
-
- PSD-En.png
- (45.24 KiB) Downloaded 1627 times
-
- PSD-Fr.png
- (49.82 KiB) Downloaded 1671 times
Fluppy shutdown app
Jemimah has written a similar shutdown application for Fluppy 013
It is very simple. Just an hbox and then 3 vboxes inside that hbox.
There is no attempt by Jemimah to control the width of a button.
It works well but doesn't look very fancy...... but then it was probably
written in a rush.
Here's a picture of the French version from
http://www.murga-linux.com/puppy/viewtopic.php?t=65222
___________________________________________________________
It is very simple. Just an hbox and then 3 vboxes inside that hbox.
There is no attempt by Jemimah to control the width of a button.
It works well but doesn't look very fancy...... but then it was probably
written in a rush.
Here's a picture of the French version from
http://www.murga-linux.com/puppy/viewtopic.php?t=65222
___________________________________________________________
script to show width of button
I did a quick experiment to see if buttons can be placed easily
in a window in a script.
Zigbert likes to specify the width of his buttons (and he's the expert)
So I looked at some of his code and made a script.
I made an hbox and then put 4 vboxes inside.
I then experimented with each of the vboxes.
Enclosed is the screen image.
The left hand side vbox is just some non-breaking characters.
The next vbox has a width-request of 100.
The next vbox has a width-request of 200.
Then the far right vbox has a width-request of 100,
but to make the space open I put a few non-breaking characters
in the label <label> </label> .
It seems to work well.
Here's the final script.
in a window in a script.
Zigbert likes to specify the width of his buttons (and he's the expert)
So I looked at some of his code and made a script.
I made an hbox and then put 4 vboxes inside.
I then experimented with each of the vboxes.
Enclosed is the screen image.
The left hand side vbox is just some non-breaking characters.
The next vbox has a width-request of 100.
The next vbox has a width-request of 200.
Then the far right vbox has a width-request of 100,
but to make the space open I put a few non-breaking characters
in the label <label> </label> .
It seems to work well.
Here's the final script.
Code: Select all
#!/bin/sh
export shutdown="
<window title=\"Experiment\" icon-name=\"gtk-stop\">
<hbox>
<vbox>
<text><label> </label></text>
</vbox>
<vbox>
<text width-request=\"100\"><label>First button</label></text>
<button>
<label>Lock</label>
<input file icon=\"lock48\"></input>
<action>/usr/local/apps/Xlock/AppRun &</action>
<action type=\"exit\">Exit-NOW</action>
</button>
</vbox>
<vbox>
<text width-request=\"200\"><label>Second button</label></text>
<button>
<label>Lock</label>
<input file icon=\"lock48\"></input>
<action>/usr/local/apps/Xlock/AppRun &</action>
<action type=\"exit\">Exit-NOW</action>
</button>
</vbox>
<vbox>
<text width-request=\"100\"><label> </label></text>
</vbox>
</hbox>
</window>
"
#echo "$shutdown" | gtkdialog --stdin
gtkdialog3 --program=shutdown --center
unset shutdown
Barry Kauler localisation
Barry Kauler talked about localising the first screen in Puppy
on this thread
http://murga-linux.com/puppy/viewtopic. ... &start=300
_________________________________________________
on this thread
http://murga-linux.com/puppy/viewtopic. ... &start=300
_________________________________________________
Yes, PupShutdown is just one of many GUI options available to close a Puppy session. Jemimah, runtt21, sc0ttman, tazoc, ttuuxxx, zigbert and other developers have included very nice shutdown managers in their Puppy derivatives. Of course, there is also the default shutdown manager available in the menu of all Puppy releases. The choices are many, and localization for many of those would be relatively easy.don570 wrote:Jemimah has written a similar shutdown application for Fluppy 013
Yes, button placement in gtkdialog scripts is relatively easy, and PupShutdown incorporates variable button width-request values to automatically compensate for text-strings which vary in length as the global font size is changed. The question (in my mind) is how to best structure the PupShutdown GUI to accommodate the variability in text-string width inherent in various translations. For example, "Restart X" becomes "Relancer le serveur X" in your example of the French translation for PupShutdown, and that translated text string requires a very wide button when viewed at high screen dpi values, such as 144 dpi. Structuring a gtkdialog GUI to look OK in a narrow range of screen dpi values is not difficult. However, a GUI designed to look OK at 78-96 screen dpi, may not retain the same symmetry or visual appeal when viewed at higher screen dpi values. I will continue to experiment.don570 wrote:I did a quick experiment to see if buttons can be placed easily in a window in a script.
suggestion for pupshutdown
I have a suggestion to help localization.
I suggest that you have two interfaces built into one program.
The interface that is in use would depend on the LANG variable.
For instance if LANG is English then the user gets your attractive interface.
Then when the user changes to another LANG
such as French you would use an inferface like Jemimah's program
which is more favorable to localization.
I don't know of any program that does a change of inferface
simply due to localization but I think it is a possibility.
Zigbert's method of localization is compatible with this idea, I think.
______________________________________
I suggest that you have two interfaces built into one program.
The interface that is in use would depend on the LANG variable.
For instance if LANG is English then the user gets your attractive interface.
Then when the user changes to another LANG
such as French you would use an inferface like Jemimah's program
which is more favorable to localization.
I don't know of any program that does a change of inferface
simply due to localization but I think it is a possibility.
Zigbert's method of localization is compatible with this idea, I think.
______________________________________
Re: suggestion for pupshutdown
Thanks for the suggestion. I'll think about it for a few days.don570 wrote: I suggest that you have two interfaces built into one program. The interface that is in use would depend on the LANG variable.