PupShutdown-3.0

Miscellaneous tools
Message
Author
CoronelN
Posts: 68
Joined: Wed 22 Dec 2010, 17:18

#41 Post by CoronelN »

Hello, is there any way to remove the message about removing the CD when rebooting ?

i looked at the code and tried commenting the msg but then it wont reboot at all.....

EDIT:

I understood the code :D

Now it reboots, no message waiting for me to remove a CD I dont have :D
However I would like it to have a timer... lets say 10 seconds to abort the shutdown.... just dont know how to implement it :P

Also I managed to add (simple copy paste)
to the Dialog for power off where it also asks to remove the CD
the options to hybernate and suspend.

Quite useful for netbook/notebook users.

I tried to attach the modified file but the forum dont allow me, PM if you like it.
Attachments
PSDhack.png
PSD dialog
(33.46 KiB) Downloaded 1372 times
PSDhackedpoweroffDialog.png
Power off Dialog
(55.47 KiB) Downloaded 1371 times

CoronelN
Posts: 68
Joined: Wed 22 Dec 2010, 17:18

#42 Post by CoronelN »

Toutu or French localization...

I live in france i am married to a french girl... I almost arrived to the point where i understand the french way of thinking....

I mention this regarding the GUI distortion on the French localization.

May I suggest:

Power-Off --> Arrêter le P.C becomes: Arreter
Reboot --> Redemarrer le P.C --> Redémarrer
Log-out --> Démarrer la Console --> Fermer X
Lock Screen --> Xlock bloquer l'écran --> Verrouiller


Restart X --> Relancer le serveur X --> Relancer X
Restart WM --> Relancer JWM --> Relancer WM (it restarts whatever you are running not just JWM)
Manage Task --> Gestionaire de tâche --> Gestion des tâches
Backup flies --> Gadmin - rsync --> sauvegarde (or other single word) that gadmin assumes you know what actually is gadmin....



See a pattern... Simplify the names of your localization and try to keep them as close as possible to the original english ones and the distorsion will be reduced...

I will give a try to spanish localization from the french file to feel i actually did something useful.

Cheerio

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#43 Post by radky »

CoronelN wrote:Toutu or French localization...
Hi CoronelN,

Thank you for your thoughts and recommendations.

I'm preparing a localized version of PupShutdown, which should accept the variance of text strings in different languages. I'll keep you posted. :)
Attachments
PSD-Loc.png
(33.01 KiB) Downloaded 1367 times

CoronelN
Posts: 68
Joined: Wed 22 Dec 2010, 17:18

#44 Post by CoronelN »

Hey Radky

I see you made the dialog wider to accomodate for the long names.

I tried to dl the french hack but the link is broken, i would like to experiment with spanish.

By looking at your code localization is going to be a problem as there are lots of text inside the dialogs.

the ideal would be to replace them all with a VAR and call it in from your code but i dont know how efficient that will be as i understand that bash even thou powerful is not a complete programming enviroment and maybe it will be too long a code + constant VAR calling etc...

I have not looked at the other files in your pet but if i get the time i can try to make a test dirty mod to see if we can read the VARs from a file and load them then u to anyone to localize/personalize the dialogs...

the drawback is that i am not much of a bash programmer but i get my way around

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

experiment with pupshutdown

#45 Post by don570 »

If you want to experiment with another language
First install snow puppy and set language to French
then install this pet. I used Zigbert's method of localization.

__________________
Attachments
PupShutdown-snow-1.6.pet
Experiment with pup shutdown
(64.51 KiB) Downloaded 960 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

PupShutdown-1.6

#46 Post by L18L »

CoronelN wrote:the ideal would be to replace them all with a VAR and call it in from your code but i dont know how efficient that will be as i understand that bash even thou powerful is not a complete programming enviroment and maybe it will be too long a code + constant VAR calling etc...
Using just GNU gettext is working in shell. 8)
see screenshot for Afrikaans and Française.

Code: Select all

#!/bin/bash
#PupShutdown 1.6
#Copyright 2011 GPL3
#Roger Grider (radky)
# i18n L18L
export TEXTDOMAIN=pupshutdown
.
.
.
#ENVIRONMENT_LANG=`echo $LANG | sed "s/\(..\).*/\1/"` ##detect language 
#case $ENVIRONMENT_LANG in
#af)	PUP_POWEROFF="Power-Off   "
#	PUP_REBOOT="   Herlaai      "
#	PUP_PROMPT="Aan Prompt "
#	PUP_LOCK=" Skermsluit  "
#	PUP_RESTART="Herbegin X  "
#	PUP_RESTARTWM="Herbegin WM "
#	PUP_TASK="Beheer Taak   "
#	PUP_BACKUP=" Backup Files  " ;;
#*)	PUP_POWEROFF="  Power-Off    "
#	PUP_REBOOT="    Reboot      "
#	PUP_PROMPT="   Log-Out      "
#	PUP_LOCK="Lock Screen   "
#	PUP_RESTART="  Restart X     "
#	PUP_RESTARTWM=" Restart WM   "
#	PUP_TASK="Manage Task   "
#	PUP_BACKUP=" Backup Files   " ;;
#esac
	PUP_POWEROFF=$(gettext "  Power-Off    ")
	PUP_REBOOT=$(gettext "    Reboot      ")
	PUP_PROMPT=$(gettext "   Log-Out      ")
	PUP_LOCK=$(gettext "Lock Screen   ")
	PUP_RESTART=$(gettext "  Restart X     ")
	PUP_RESTARTWM=$(gettext " Restart WM   ")
	PUP_TASK=$(gettext "Manage Task   ")
	PUP_BACKUP=$(gettext " Backup Files   ")
#About dlg...
.
And here is the language template file pupshutdown.pot

Code: Select all

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PupShutdown 1.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-06-21 17:26+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: PupShutdown:85
#, sh-format
msgid "  Power-Off    "
msgstr ""

#: PupShutdown:86
#, sh-format
msgid "    Reboot      "
msgstr ""

#: PupShutdown:87
#, sh-format
msgid "   Log-Out      "
msgstr ""

#: PupShutdown:88
#, sh-format
msgid "Lock Screen   "
msgstr ""

#: PupShutdown:89
#, sh-format
msgid "  Restart X     "
msgstr ""

#: PupShutdown:90
#, sh-format
msgid " Restart WM   "
msgstr ""

#: PupShutdown:91
#, sh-format
msgid "Manage Task   "
msgstr ""

#: PupShutdown:92
#, sh-format
msgid " Backup Files   "
msgstr ""
make spanish:

Code: Select all

msginit --locale=es
will create es.po

Code: Select all

geany es.po

fill msgstr with Spanish translation and then

Code: Select all

msgfmt es.po -o - > /usr/share/locale/es/LC_MESSAGES/pupshutdown.mo

Start in Spanish:

Code: Select all

LANGUAGE=es /usr/local/PupShutdown/PupShutdown
If your locale is es do not need LANGUAGE=es :lol:
Attachments
PupShutdown-1.6.png
(39.64 KiB) Downloaded 3449 times

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

Re: PupShutdown-1.6

#47 Post by radky »

Hi Don570 and L18L,

Sorry for the delay in releasing a localized version of PupShutdown. :oops:
I've been involved in other projects, but I hope to upload the next version of PupShutdown in the near future.

Thanks for your patience ! :D

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#48 Post by radky »

Version 1.7. See main post.
1 - Enhanced access to configuration options.
2 - Enhanced access to suspend features in ACPI compliant notebooks.
3 - Added option to enable or disable the ‘Remove CD

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

review pupshutdown

#49 Post by don570 »

It works great in French and English!!

I have a suggestion for an improvement.

I find it a bit confusing that a couple of the buttons
do nothing when first clicked.

When the application is run for the first time,
you should check for the existence of 'pmirror'
and 'pprocess' and if they are installed you
should connect them to the corresponding
buttons in the window.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

Re: review pupshutdown

#50 Post by radky »

don570 wrote:It works great in French and English!!

I have a suggestion for an improvement.

I find it a bit confusing that a couple of the buttons
do nothing when first clicked.

When the application is run for the first time,
you should check for the existence of 'pmirror'
and 'pprocess' and if they are installed you
should connect them to the corresponding
buttons in the window.
Thanks for the suggestion. An update is on the way. :)

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#51 Post by radky »

Version 1.7.1 See main post.
1 - New feature: when PupShutdown is first installed, the updated pinstall script checks for file-backup and task-manager applications, and automatically assigns default selections to the GUI buttons. (thank you Don570)
2 - Bug Fix: The Yad and Zenity font-color selectors will now recall Hex color values from the prior session. This auto-recall feature is not enabled for the Xdialog color selector.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

review of pupShutdown 1.7.1

#52 Post by don570 »

I've installed the software in Fluppy 13 lang_pack(French version)
And it's a great addition.

Some observations:

The heading of the window in French is 'PSD-LOC'
Something French or even just PupShutdown
would be preferable.

You have a choice of Labels or headings. I would like
'Fluppy' to be on that list.

When you click on the 'Log Out' button
there is no warning. A warning of loss of data would be nice.

_____________________________________________

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

Re: review of pupShutdown 1.7.1

#53 Post by radky »

don570 wrote:I've installed the software in Fluppy 13 lang_pack(French version)
And it's a great addition.

Some observations:

The heading of the window in French is 'PSD-LOC'
Something French or even just PupShutdown
would be preferable.

You have a choice of Labels or headings. I would like
'Fluppy' to be on that list.

When you click on the 'Log Out' button
there is no warning. A warning of loss of data would be nice.
Hi don570,

Thank you for the suggestions.

For the localized version only, I will upload PupShutdown-LOC-1.7.2 which should address your observations. The heading of the main GUI is now PupShutdown. Fluppy has been added to the Name drop-down list. Keep in mind, for the Name entry field, you can type any name you wish, and it will remain until you change it at a later date. Lastly, tool-tip warnings have been added to the Power-Off, Reboot and Log-Out buttons. You may want to check the French translation. :)

Thanks for including PupShutdown in the Fluppy 13 lang_pack.

radky

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#54 Post by Flash »

Radky, I only just noticed this seriously useful program. :oops:

Or rather, it will be useful if it solves a serious shortcoming of the standard shutdown for multisession Puppy. The problem occurs only rarely, thank goodness; when it does happen, it's a nasty one.

Here's the problem: when I choose shut down -> Save to CD, if things don't go exactly right for some reason, there's no way to back out of the shutdown sequence and return to the desktop so I can try to fix whatever is wrong. I have to just power off the computer and lose all the changes I wanted to save to the CD. :(

I will try your program, but I won't have time to thoroughly test it for a while. Can you tell me if it allows me to back out of a stalled shutdown and return to the desktop?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#55 Post by radky »

Flash wrote:Radky, I only just noticed this seriously useful program.

Or rather, it will be useful if it solves a serious shortcoming of the standard shutdown for multisession Puppy...Here's the problem: when I choose shut down -> Save to CD, if things don't go exactly right for some reason, there's no way to back out of the shutdown sequence and return to the desktop so I can try to fix whatever is wrong. I have to just power off the computer and lose all the changes I wanted to save to the CD...Can you tell me if it allows me to back out of the shutdown and return to the desktop?
Hi Flash,

PupShutdown is a simple GUI for selecting different shutdown options available in most Puppy builds. When you select the 'Power-Off' (or 'Reboot') option for your multisession shutdown, the PupShutdown program quickly exits after calling Puppy's wmpoweroff (or wmreboot) script, at which point the shutdown process is fully controlled by that Puppy script.
davids45 wrote:I've been having a possibly similar problem to Flash with my new desktop set-up and most recent Puppies based on Lupu-525...The computer has a radeon HD5450 graphics card...Boot parameters like radeon.modeswitch=1 have been suggested but I don't know I have a Frugal Save-file problem until it's too late.
Hi davids45,

Your frustration is shared by many. The "radeon.nomodeset=1" parameter is frequently helpful for display problems with radeon graphics, but resolving issues with graphics recognition can be frustrating. Unfortunately, PupShutdown is just a menu program, with no solution for your problem. :(

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#56 Post by Flash »

Thanks :)

(I split David's post from this thread and started its own thread with it, in the Beginners section.)
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69321][color=blue]Puppy Help 101 - an interactive tutorial for Lupu 5.25[/color][/url]

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

idea for pupshutdown

#57 Post by don570 »

Image

This is an idea I had .

This would avoid the need of a preference setting
for a remove CD warning.

The user would just have to click the button once.

______________________________________________--

Another problem I found is with the color setter with Fluppy013

/usr/bin/gcolor2 isn't launched. Very minor.
___________________________________

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

Re: idea for pupshutdown

#58 Post by radky »

don570 wrote:This would avoid the need of a preference setting for a remove CD warning. The user would just have to click the button once.
Hi don570,

If the shutdown dialog is permanently dismissed by the one-time button click, a user would not have the option to enable the dialog at a later date. Of course, this assumes a few may actually prefer the optional dialog :) . I’ll keep your suggestion in mind, but I think the current enable/disable option is very easy to access in Preferences, and this may appeal to those want more control of their Puppy configuration.
don570 wrote:Another problem I found is with the color setter with Fluppy013... /usr/bin/gcolor2 isn't launched.
As fate would have it, the Xdialog ‘colorsel’ box option calls the GTK+ color selector (not gcolor2).
http://xdialog.free.fr/doc/box.html#COLORSEL
Also, PupShutdown now support the Yad and Zenity color selectors.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#59 Post by radky »

Version 1.7.2 See main post.
- Added automatic recovery for aborted sessions of the Xdialog color selector.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#60 Post by radky »

Version 1.7.3. See main post.
-Added support for non-root environment (fido).

Post Reply