gnome

How do get a "nice" scale-widget in SWT under Gnome?

Hi, I would need a scale-widget in SWT that looks like the following example: http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Scales.htm If I run this example under Ubuntu (Gnome) the scale looks like this: http:// book.javanb.com/swt-the-standard-widget-toolkit/ch10lev1sec2.html But actually I would prefer to have these steps besid...

Drawing directly to the screen via GTK or GDK

I am working on a demo application for a library me and two colleagues are writing to allow GNOME applications that run audio events though libCanberra to allow users to select visual events to replace them. This is an accessibility-minded effort to help both visually and aurally impaired users gain the benefits of audio alerts and such....

Can a GNOME application be automated? How?

Can a GNOME application be automated? I.e., can I programatically interact with its user inteface? How? ...

Moving from Gnome to XFCE

Hi. I'm using Gnome now and want to install XFCE. Nothing complicated but just curious - do all applications, installed previously on Gnome will be also removed or they would work on XFCE properly after installing XFCE and removing Gnome ? OS: Linux Mint 7 ...

Disable GNOME's automount with Python

Hi, I need to stop GNOME/Nautilus from automagically mounting new devices and partitions as they appear to the system. How can I accomplish this in python? ...

X11: get list of all gnome-terminal windows on my display?

I have two xterms and several gnome-terminal windows active on my X display. However, xlsclients only shows one gnome-terminal client. $ xlsclients luban.local /usr/X11/bin/xterm ohm gnome-terminal luban.local xterm How can I get a list of the gnome-terminal sessions attached to my display? ...

Programatic desktop icon placement

I am looking for a way to programatically get/set the icon positions on the desktop. Clearly there is some "state" stored in a somewhere. Does anybody know here? I am trying to get a proof of concept going on ANY platform so if you know how to do it on XP in gnome, KDE or Mac OS I would really like to hear about it. ...

Smallest Xwindow for Linux

Hi, What is the smallest, friendliest Window Manager that I can run on Linux. I currently use Gnome which is a bit heavy. All I would be needing it for is to run Firefox. Xfce? ...

X11: run a gnome app as another user

I have ubuntu + x11 + gnome. I want to run a graphical application as another user. However, when I start it from the command line using sudo -u otheruser app I get the error "No protocol specified". How can I work arround this? ...

Gui for KDE and Gnome

I want to write a gui to an application that is now CLI that needs to "look good" in both KDE and Gnome DE's, taking optimal advantage of a users settings for appearance. If I select Qt or GTK+ will I be able to do this? Do they integrate well with both DE's? Or does a KDE user need gnome libs and vice versa to run them? My developme...

Changing wallpaper on Linux programmatically

How would I change the wallpaper on a Linux desktop (using GNOME) within a C/C++ program? Is there a system API to do it? ...

Detecting Changed Workspace in Gnome

I'm trying to figure out how to detect when the current user has changed their workspace in Mono. I'm not even really sure how the workspace aspect of Gnome operates. A brief look through Monodoc didn't turn anything up, and I couldn't locate a GConf key that gave me what I wanted either. Update: The method below will ONLY work if Compi...

How to find which program to use for a given mime type in linux?

i need to open a viewer for a given mime type. how to do that in linux. i suppose the method would be specific to desktop environment in use. i want to do this through a C program. ...

Testing for GUI in .bashrc

Is there a good way to test whether I am logging into a text shell or starting a GUI session in my .bashrc? For example, to set my editor to gedit if in gnome and emacs if using a command line. ...

How to prevent a GTK# child window flashing up the Gnome panel in a fullscreen mono/GTK# app

Hopefully the title gives some indication, but what I'm trying to do is create a clone of Q10, a pretty nice text editor for Windows which has no existing Linux or OSX version. Q10 runs fullscreen with a very bare interface, so that you can concentrate on what you're writing without other windows or alerts distracting you. http://www.baa...

How do I change gnome icon per application?

I want to change icons to something different per application. I want to change only nm-applet (gnomes network manager applet) and my volume applet to something different than the icon set. How can I do this? ...

firefox in ubuntu : how to automate basic authentication password confirm dialog

Hi, I have an ubuntu workstation with firefox always open on a (autorefreshing) web page protected by basic auth. At startup, I have autologin and automatic firefox start on the page and I have saved the basic auth credentials. I'd like to confirm in some automated way the username/password dialog box which pops up on the first openin...

How to make python window run as "Always On Top"?

I am running a little program in python that launches a small window that needs to stay on top of all the other windows. I believe this is OS specific, how is it done in GNU-Linux with GNOME? [Update - Solution for Windows] Lovely, I think I got it working. I am using Python 2.5.4 with Pygame 1.9.1 in Eclipse on Vista 64-bit. Thus, thi...

Resources to learn GNOME Application Programming for MFC Programmer ?

I have couple of years of MFC Programming experiance and now want to learn Gnome Application programming. will you please provide me books or reference for it. ...

Gnome Terminal Duplication

Very often I need two gnome-terminal sessions at the same location. Is it possible to open a single terminal, get to the directory I need, and make a duplicate of the terminal so I don't have to type in the cd command (which can get lengthy) a second time in the second window? ...