LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 01-15-2007, 02:43 AM   #16
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31

the reasons probably is that people either feel that linux still cant works as "plainly" as windows or there are just too many different but similar apps with the same purpose and goal ... even if we want to acheive some restricted goals , they all still seem to compliment each other and we still need them all to be around ...

have just learn how to do things in gtkdialog more "seriously" a bit , here is what you can use to mount an iso but beware ::

Code:
#!/bin/bash

export MAIN_DIALOG='
<window title="Main window" window_position="1" resizable="false">
      <vbox>
    <frame ISO Mount>
      
      <hbox>
      
       <vbox>
 
       <entry accept="filename">
   
         <variable>FILENAME_01</variable>
      <height>30</height><width>450</width>
       </entry>
       <entry accept="directory">
         <variable>FILENAME_02</variable>
      <height>30</height><width>450</width>
       </entry>
 
       </vbox>
       
       <vbox>
        <button>
        <label>Your ISO</label>
        <input file stock="gtk-open"></input>
        <action type="fileselect">FILENAME_01</action>
      </button>
            <button>
        <label>Mount point</label>
        <input file stock="gtk-open"></input>
    <action>print_this</action>
        <action type="fileselect">FILENAME_02</action>
      </button>
      </vbox>
 
       </hbox>
    </frame>
      
    <hbox>
       <text>
         <label>Options:</label>
       </text>
       <entry>
         <default>-o loop -t iso9660</default>
         <variable>OPTIONS</variable>
       </entry>
       <text>
         <label>Browse with filemanager:</label>
       </text>
    <combobox>
      <variable>FILEMANAGER</variable>
      <item>rox</item>
      <item>gentoo</item>
      <item>dillo</item>
    </combobox>    
    </hbox>

    <hbox>
      <button>
        <input file stock="gtk-ok"></input>
        <label>Ok</label>
      <action type="exit">do_mount</action>
    </button>
      <button>
        <input file stock="gtk-cancel"></input>
        <label>Quit</label>
      <action type="exit">Exit_Cancel</action>
    </button>

    </hbox>
       


      </vbox>
      </window>
'

#gtkdialog --program=MAIN_DIALOG

     I=$IFS; IFS=""
    for STATEMENTS in  $(gtkdialog --program=MAIN_DIALOG); do
       eval $STATEMENTS
     done
     IFS=$I
     
echo "--------------------"
echo "$STATEMENTS"
echo "--------------------"

case $EXIT in

 "do_mount")
    mount $OPTIONS $FILENAME_01 $FILENAME_02

    case $FILEMANAGER in
     "gentoo")
        gentoo --root-ok -1 $FILENAME_02
      ;;
     "rox")
        rox -d $FILENAME_02
      ;;
     "dillo")
        dillo $FILENAME_02
      ;;
    esac
    
 ;;
  
 "Exit_Cancel")
    echo "Exit_Cancel"
 ;;
   
esac
give it a filename and run it directly ...

probably something "in-between" are what we can do as a desktop user who always find windows "life-saving" ...


//beware , this works on my puppy and if anything else ... dont laugh ...


[EDIT ::]have just use it on my ubuntu 6.06 , works ok but at least i need to edit 2 lines to something like this ::

<height>24</height><width>450</width>


i dont know why ...

[EDIT ::]have just try it on redhat9 but need to fall-back onto older ways of gtkdialog , and still bascially the same dialog ::

http://web.singnet.com.sg/~alred/gtkdialog_09.jpg


although a bit limited in "features" and not as powerfull as the newer ones but i actually prefer this one ...



.

Last edited by alred; 01-15-2007 at 04:33 AM.
 
Old 01-15-2007, 03:16 PM   #17
colinstu
Member
 
Registered: Apr 2005
Posts: 113

Rep: Reputation: 15
If I memorized the commands I'd just use them for showing off. Buttons can by novices and experts.
 
Old 01-15-2007, 03:26 PM   #18
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
There are several things I do which are just too hard to do in a windowing environment. In that case, the command line and scripting provides the easiest way to get the job done. And, once I have done it once, I can make it as easy to call again as I like.

And I don't use the command line to impress people... actually, I tend to use more graphical tools when others are looking because I don't want to scare them off.

And, if you know the command line... it makes it a lot easier to fix something over a slow connection without needing to drive a couple hours just so you can have a button to click.
 
Old 01-15-2007, 03:45 PM   #19
General
Member
 
Registered: Aug 2005
Distribution: Debian 7
Posts: 526

Rep: Reputation: 31
Too bad programs no longer are setup with function shortcut keys for menu items. It should be like this (although updated to 21st century):
Example.

That way, if you want to click on the menu, you can, if you like you can use function keys instead, since they are written up at top they are easy to see.

I prefer shortcut commands where you type one key, then one other key; much more comfortable to type than typing two keys at the same time.

Instead of...
CTRL+N New Window
CTRL+T New Tab
CTRL+L New Location
CTRL+O Open File
CTRL+S Save File As
CTRL+F Find in this page
CTRL+G Find again

...you have...

F1 (menu appears), N New Window
F1 (menu appears), T New Tab
F1 (menu appears), L New Location
F1 (menu appears), O Open File
F1 (menu appears), S Save File As
F2 (menu appears), F Find in this page
F2 (menu appears), G Find again


We also need a central map of all keyboard commands. A person should be able to make a view screen appear listing all currently available shortcuts for the active window (and all other commands that will be heard by the computer). This would make it easier for programmers to coordinate commands, to make them more organized, and to make it easier for users to remember them. Applications like GNOME Terminal are a pain: you type a command for a curses application and it is sent to GNOME Terminal, not the application within the Terminal.
 
Old 01-15-2007, 04:17 PM   #20
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
Quote:
Originally Posted by colinstu
If I memorized the commands I'd just use them for showing off.
Thats quite a daft statement.
Many things can be done much faster with the command line than with graphical tools, so sometimes using the GUI is "taking the long way home".

As said before each one has their areas of optimal use. One of Windows' biggest downside (imho), is the forced use of the graphical interface, instead of it being optional like with the X window system on *nix. Repairing a broken Windows box is made even harder because if the GUI won't start, you're screwed.
 
Old 01-15-2007, 04:30 PM   #21
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 31
Quote:
Originally Posted by easuter
One of Windows' biggest downside (imho), is the forced use of the graphical interface
What do you mean by "forced use"? You're perfectly free to use a command prompt window under Windows if you want to, just the same as you're free to use a terminal emulator under Linux.
 
Old 01-15-2007, 04:41 PM   #22
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by hand of fate
What do you mean by "forced use"? You're perfectly free to use a command prompt window under Windows if you want to, just the same as you're free to use a terminal emulator under Linux.
Yeah, but you are still forced to use the GUI. If there's something wrong and the gui won't load, in linux you ctl-alt-backspace and fix it on the CLI. In windows, there is no way to get at a raw CLI. Command prompt is fine when things are working in windows, but it's positively useless if the gui breaks.
 
Old 01-15-2007, 05:17 PM   #23
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Quote:
Originally Posted by Cinematography
I never said you had to choose. I use both. I know a lot of people who use both. The argument was about whether or not people should be forced to use the command line. The perfect OS, in my opinion, would have a GUI good enough for casual users who would NEVER want to use the command line, and a command line strong enough for power users who would want to customize and automate ANYTHING.
I agree with that. No one should be forced to use the command line, but the command line should be available.

That's not what the first post was about, though.
 
Old 01-15-2007, 07:06 PM   #24
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
Quote:
What do you mean by "forced use"? You're perfectly free to use a command prompt window under Windows if you want to, just the same as you're free to use a terminal emulator under Linux.
HAHAHAHAHAHA, yeah right. DOS doesn't even compare to a Linux shell environment.
 
Old 01-16-2007, 02:42 AM   #25
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
Quote:
Originally Posted by PatrickNew
Yeah, but you are still forced to use the GUI. If there's something wrong and the gui won't load, in linux you ctl-alt-backspace and fix it on the CLI. In windows, there is no way to get at a raw CLI. Command prompt is fine when things are working in windows, but it's positively useless if the gui breaks.
You took the words right out of my mouth.

@ hand of fate: try starting a windows box in safemode (F8), and selecting what they call the command prompt mode... The graphical interface will start and only then are you given a terminal.
 
Old 01-16-2007, 01:22 PM   #26
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
you can actually replace that editbox with a combobox with listing of all possible mounting options(probably 10 to 20 of them) that you would use ... and change that label of "Your ISO" to something else ... so that it is a kind of "mount everything" windows ...

further more , you can also write-up more similar windows of this type for media conversions , printings , files conversions , cd/dvd authorings etc , etc , etc ... put all of them into your desktop menu ...

sometime you may need a listbox(or a table or a tree or whatever it is call) instead ... can download the source , compile it and have a look at the example directory(there are many ways to run a dialog) if you havent done that ::

ftp://linux.pte.hu/pub/gtkdialog/


btw , dont forget to have a look at xmessage too , maybe there are something that gtkdialog cant do ... and there is python which can also do gtk(i think) , the result would be something like EasyUbuntu ...

have a quick look at all of them and do some quick write-ups before you stick to one of them ... if not , by the time you became old , lazy and reactionary you will know that you actually prefer the older gtkdialog 0.58 ...


[edit ::]i cant see why gui lovers like us cant do this for ourselves , our own write-ups dont even need to be "heuristic" and "intelligent" , everything can even be hard-coded to our own personal needs which only we can understand on our own linux ...


.

Last edited by alred; 01-16-2007 at 01:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing new software and typing in commands. brett1963 Linux - Desktop 3 08-23-2006 10:55 AM
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 12:45 AM
removed dockapps icons and wmconfig icons by mistake ethereal Linux - General 1 09-04-2003 04:54 PM
Icons, icons everywhere, eating resources! Stephanie Linux - General 0 07-09-2001 11:15 AM
How can I start typing in the commands? Rutnut Linux - Newbie 1 12-13-2000 04:48 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration