Difference between pages "Find out a window's application" and "Build and install gphoto2"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
 
Line 1: Line 1:
If you have a window on your desktop and you want to know which application it belongs to, [[open a console]] and enter the command
+
gphoto2 is a utility to download pictures from a [[digital camera]].
[[xprop]]
+
 
and click on the window you are interested in. You will get an output like
+
To [[build]] and [[install]] it, [[find out your distribution]] and proceed accordingly
[...]
+
 
WM_CLIENT_LEADER(WINDOW): window id # 0x3200001
+
= SUSE Linux 12.1 =
'''_NET_WM_PID(CARDINAL) = 7661'''
+
* [[open a console]] as root and [[install]] some [[dependencies]]:
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
+
  [[yast]] -i libgphoto2-devel
WM_CLIENT_MACHINE(STRING) = "tweedleburg"
+
* download the source code from http://sourceforge.net/projects/gphoto/files/gphoto/
WM_NORMAL_HINTS(WM_SIZE_HINTS):
+
* [[extract]] it, in this example version 2.4.14:
                program specified minimum size: 0 by 0
+
  cd
                window gravity: NorthWest
+
[[tar]] xvzf Downloads/gphoto2-2.4.14.tar.gz
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
+
cd gphoto2-2.4.14/
'''WM_CLASS(STRING) = "Navigator", "Firefox"'''
 
  [...]
 
From this you can tell that the application identifies itself as "Navigator", "Firefox". If this is too unsure for you, have a look at the process ID PID, which is 7661 in the above example:
 
  ps -A |grep 7661
 
  7661 ?        01:00:53 firefox-bin
 
By this you see that the [[process]] that manages the Window is number 7661 and called firefox-bin.
 

Revision as of 18:44, 11 August 2012

gphoto2 is a utility to download pictures from a digital camera.

To build and install it, find out your distribution and proceed accordingly

SUSE Linux 12.1

yast -i libgphoto2-devel
cd
tar xvzf Downloads/gphoto2-2.4.14.tar.gz
cd gphoto2-2.4.14/