anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#1
The logout dialog box we have is fine, it works well, but I'm thinking of replacing it with the one shown in the screenshot.

Here is the code.

Code: Select all

#! /bin/bash
# Exit dialogue box for antiX. 
# Name: exitantix Make it executable and put in /usr/local/bin

action=$(yad --width 300 --entry --title"System Logout" \
    --image=gnome-shutdown \
    --button="gtk-ok:0" --button="gtk-close:1" \
    --text"Choose action:" \
    --entry-text \
   "Power Off""Reboot""Suspend""Hibernate""Logout""Lock Screen")
case $action in
    Power*) cmd="shutdown.sh" ;;
    Reboot*) cmd="reboot.sh" ;;
    Suspend*) cmd="antixsuspend.sh" ;;
    Hibernate*) cmd="antixhibernate.sh" ;;
    Lock*) cmd="xlock" ;;
    Logout*) cmd="logouthelper.sh" ;;
    *) exit 1 ;;        
esac

eval exec $cmd
It uses yad and no gtkdialog. It should also be easy to internationalise.

Comments welcome.
Posts: 279
afab4
Joined: 17 Oct 2009
#2
Seems to work well. I personally prefer the buttons on the original vs. the drop down box on the new one.
Posts: 609
dark-D
Joined: 02 Jun 2008
#3
i'm for the original. it's easier on the eye and matches antixcc. but everybody with their opinion.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#4
I would prefer the older one as well, all the options are at one click while in the new one it can take 1-3 clicks.
I really like oblogout, and have used it with antix before. The only problem I have found with it is that when using multiple screens it will center across all of them
Posts: 173
DeepDayze
Joined: 09 Sep 2011
#5
Dave wrote:I would prefer the older one as well, all the options are at one click while in the new one it can take 1-3 clicks.
I really like oblogout, and have used it with antix before. The only problem I have found with it is that when using multiple screens it will center across all of them
Sounds like a bug in oblogout then, as it should ideally appear only on what is Screen 1.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#6
Your Distro. Translation. My Bike. My Looks and ride and feel.

I'll live with what ever comes out. If I don't likey. That is what customising is for.

My comment is based on.
It should also be easy to internationalise.
Posts: 903
plvera
Joined: 11 Oct 2008
#7
I vote for the new one.
Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#8
I just found out that the Debian repository no longer has the i386 package for gtkdialog. It turns out that nobody stepped forward to continue maintaining it.

Thus, I'm turning to PyGTK, as using the antiX Linux gtkdialog scripts is not a viable option for the new Mint-based Swift Linux I'm working on. There's an example of a PyGTK dialog box with buttons and actions at
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://en.wikibooks.org/wiki/PyGTK_For_GUI_Programming/Signals"
linktext was:"http://en.wikibooks.org/wiki/PyGTK_For_ ... ng/Signals"
====================================
.

The advantages of PyGTK:
1. It will certainly be supported, because it's part of Python.
2. Python is already included with antiX Linux and Linux Mint, so relying on PyGTK doesn't require using precious MB.
Posts: 112
chrishall57
Joined: 18 Apr 2009
#9
Another vote for the existing exit box.
Posts: 128
Hannes Worst
Joined: 31 Jan 2009
#10
Anti, the script of your suggested logout dialog box is indeed easier to adjust, but the existing one is more visually appealing.