Jump to content

how do I start a window from the terminal?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Basix

Basix

    Newbie

  • Members
  • PipPip
  • 11 posts
I have been trying to figure out how gui libraries work, and I found out that programs make system calls that cause the os to run a program, and that there is a program for managing windows (not the os), so what system call would I make to open a window?, I have tried looking in libraries, but I can never figure out someone else's code, I am running Ubuntu linux 10.04, but I also have windows xp so I could try it in that if you only know it for windows, I also have a program installed called "compiz" just in case that is important to know at all:pinguin:

Edited by Basix, 01 August 2010 - 02:55 PM.
forgot the question mark


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It depends on what language you are going to use, and which library. C++ offers gtkmm, Qt, and several others. Python has different libraries. You can also do direct Xwindows calls, Compiz calls, etc.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
A neat but useless cheat you can use is to write a GUI application and then write a shell script that says
#!/bin/bash

open ProgramName


#4
DesperD0s

DesperD0s

    Newbie

  • Members
  • Pip
  • 7 posts
LOL :D Hahaha WingedPanther made me laugh! :)
In terminal just type the name of the application you want to run. On the other hand if you want to set the privilege to some process( i.e. new opened one) you can do it by using command NICE <nameOfTheApplication>.