gnome

volume/mixer manipulation in GNOME

What is the Right Way for a well-behaved program in a GNOME environment to manipulate the mixer? (volume, muting, etc) DBus? ALSA directly? something else? ...

nautilus extensions: where are the docs??

I've googled and googled and I can't find the docs for writing extensions to Nautilus. ...

How do you get the icon, MIME type, and application associated with a file in the Linux Desktop?

Using C++ on the Linux desktop, what is the best way to get the icon, the document description and the application "associated" with an arbitrary file/file path? I'd like to use the most "canonical" way to find icons, mime-type/file type descriptions and associated applications on both KDE and gnome and I'd like to avoid any "shelling ...

Gnome icons pack

Does anyone know where can i find this icon set for download (pngs + svgs) http://www.iconspedia.com/search/gnome/0/ and also, is the icons license allows it to be used in commercial applications? ...

DBus Python Problems

When I'm trying to get the idle time of the gnome screensaver in seconds, through dbus, python throws an TypeError. In the documentation I found for the screensaver sessionIdleTime, it returns a unsigned integer. http://www.gnome.org/~mccann/gnome-screensaver/docs/gnome-screensaver.html#gs-method-GetSessionIdle However, when I'm in the...

GTK+ Startup Notification Icon

In Gnome, whenever an application is started, the mouse cursor changes from normal to an activity indicator (a spinning wheel type thing on Ubuntu). Is there any way to inform Gnome (through some system call) when the application has finished launching so that the mouse cursor returns to normal without waiting for the usual timeout of 30...

In Mono/Gnome, how can I look up the icon for a mime type?

Gnome.Icon and Gnome.ThumbnailFactory both want me to pass in a URI of a file whose icon I want -- I only have a MIME type, which I want to look up an icon for. Is there a GNOME C# API function which will give me what I want? Ideally the prototype would just be: Gdk.Pixbuf LookupIcon (string mime_type); ...

How might I grab all windows with a certain word in their titles?

I'm running gnome and have a program that spawns off a large number of separate processes each with its own gui window. I'd like to be able to selectively grab open windows whose titles match a certain pattern to close them. Anyone know a way to do this easily ? ...

Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I'm looking for something as simple as shell scripting, but I'm not restricted to that. Will write a program for it if that's a better or simpler approach. The idea is to create a script/program to monitor some condition (e.g. availability of a...

linux clipboard read/write in C

I done lots of googling but I am still unsure on how to proceed. What's the most common way of reading/write to the clipboard under Linux? I want both support for Gnome & KDE desktops. Updated: do I take there isn't an easy solution and one must "aggregate" together multiple sources (gnome, kde) in order to craft a solution? ...

Installing TortoiseHG on Gnome in Ubuntu 9.10?

I followed the following steps to install TortoiseHG on Ubuntu 9.10 using the following document: http://bitbucket.org/tortoisehg/stable/wiki/nautilus I get the following error in my ~/.xsession-errors evolution-alarm-notify-Message: Tue Dec 1 23:28:26 2009 sys:1: GtkWarning: Refusing to add non-unique action 'HgNautilus::00None' ...

Looking for advice on how to develop applets for Gnome / Ubuntu

I am a linux (mostly ubuntu) user with a reasonable understanding of how the system works (although I am certainly not a linux guru!). In the past I have developed small cross-platform desktop applications in python/GTK and I delivered them to clients as self-contained filetrees, so that the only dependencies were Python itself and GTK. ...

Submenu items in Nautilus right-click menu

Hello. I am trying to write an extension for nautilus, which add an item to the menu that appears when you right-click a file (as shown in image) However, I would like to add a submenu to my custom menu item. I downloaded a 'nautilus-python' package which includes examples of how to write extensions for Nautilus (and so far it turned...

Color a Button after subprocess has finished

I have a Tk python program that creates a list of python files in the current directory and generates a button for each of them. When you click a button the corresponding python program is launched via subprocess in a new gnome-terminal. I'd like to switch the button's color to red after the subprocess has finished executing on the new t...

Giving focus to GNOME docked window

I've got a GTK/GDK docked window that I need to give keyboard focus to, so accelerator keys (shortcuts) work. Does anybody know if GNOME even allows a docked window to have keyboard focus, and if so, how can I enable it? Thanks, Mike ...

Grab Focus for Frame after Shortcut Pressed in wxPython on GNOME

I'm building an app that uses global shortcut keys (using python-keybinder), but there's a problem. The frame pops up and raises properly but doesn't have focus. I have to click on frame. After I press my keyboard shortcut my frame appears, but it is not focused. I can see that the frame I was focused on previously (e.g. my Firefox fra...

which GUI based C++ IDE is commonly used for gnome applications

which GUI based C++ IDE is commonly used for developing gnome applications? I am asking specifically for the gnome-system-monitor because I would like to fiddle around with it. And I would like to do it with a nice GUI based C++ IDE. I thought that Anjuta is the default IDE for gnome applications. But when I fetch the sources there are...

java gui without desktop environment

Is it possible to use java gui frameworks (such as Swing, SWT or javaFX) without desktop environment, such as Gnome? ...

Accessing samba shares with gio in python

I am trying to make a simple commandline client for accessing shares via the python bindings of gio (yes, the main requirement is to use gio). I can see that comparing with it's predecessor genome-vfs, it provides some means to do authentication stuff (subclassing MountOperation), and even some methods which are quite specific to samba ...

Detect enter/exit session under KDE/Gnome without DBUS

I have implemented a systray icon in C++ using Xlib. I try to detect the enter/exit session events using the X Session Management Protocol, but latest GNOME versions are giving me trouble. Is there any reliable way to detect it without moving to DBUS? I am trying to avoid DBUS to be as legacy-compatible as possible. ...