I'm a long-time Mac user making the switch to Ubuntu. I have programming experience in Objective-C and REALbasic.
I want to develop native looking applications that will look pretty in the Gnome environment that Ubuntu uses.
Three questions:
What would fit better for me - Java or Python (I'm happy to learn something else if it is a b...
To access desktopcouch the documentation suggest to use oauth. Using the samples in the O'Reilly book "CouchDB - the definite guide" I want to use CURL (or another command line tool if appropriate) to work with desktopcouch. I guess I would need a script to query the key store to retrieve the oauth token and add it to the CURL string. Id...
How would you lock the screen of an active X session, through an SSH connection? My test platform is Ubuntu 10.04.
The command "gnome-screensaver-command --lock" works when run from inside the X session, but fails from the SSH session, presumably because SSH doesn't have immediate access to X. Is there a workaround?
...
I want to check which Window Manager the user is using (like GNOME or KDE etc.). How do I do that?
...
Hi,
I was wondering if this was possible. Mostly I want to understand what GNOME does exactly? Couldn't one just run applications, given the availability of GTK+, and of course X11? Of course, I'm not sure (which is why I'm asking the question), but it looks to me that GNOME just "organizes" the GUI to make it more of a desktop, and of...
Because I know that a simple API call handles setting the custom folder icons in Windows, I looked for an API method to set custom folder icons in Linux.
But in this thread, I saw that there is no such a way. Also I learnt that each desktop environment has its own way to set custom folder icons. The way of KDE is clearly described ther...
I want to make gnome-terminal behave in such a way that when the
end user selects a region on the terminal (with a mouse or mouse
key), it gets automatically copied into the clipboard. Is it
possible at all? If so, how?
...
I was wondering how I could do something like this (source) using Qt. I looked through the documentation but couldn't find any method to check if an external process is running.
if [ "$(pidof ksmserver)" ]; then
echo "KDE running."
# KDE-specific stuff here
elif [ "$(pidof gnome-session)" ]; then
echo "GNOME running."
# GNOM...
I'm trying to write a Gnome applet in Python. In fact, I've written the app and I'm stuck when it comes to packaging it.
I started by looking into distutils. The problem I ran into right away was that when specifying py_modules, an extension of .py is expected. However, Gnome applets are basically shell scripts. (That use the Python int...
Hi,
I was wondering and also try to do it, how to lock and suspend computer using dbus interface. I am able to suspend system using org.freedesktop.UPower with method Suspend(). I also am able to lock system using org.gnome.ScreenSaver with method Lock(). But how to do it at the same time?
Is it good way to use signal Suspend ? or the...
I'm trying to write a simple "hello-world"-type program using the python-evince package for lucid-lynx gnome, that embeds Evince in a python-gtk window. The samples I've found on the web go like this:
import evince
import gtk
w = gtk.Window()
w.show()
e = evince.View()
w.add(e)
e.show()
document = evince.document_factory_get_document...
I have an application written in python, I would like it to be able to "minimize" to the gnome panel, much like how gnome's rhytmbox minimizes to the panel. Is it easily possible to do this?
I've run the examples from here but failed to get any of them working and those don't seem to be exactly what I'm looking for. Any good places to ...
Sample code:
JFrame jFrame = new JFrame("Test");
jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jFrame.setLocationRelativeTo(null);
jFrame.setSize(600, 600);
jFrame.pack();
// jFrame.setLocationRelativeTo(null); // same results
jFrame.setVisible(true);
Is this the OpenJDK's fault? I recall hearing...
When working on projects that use different character encodings I find myself constantly switching the character encoding of a terminal. In some terminals (e.g. gnome-terminal) you can create profiles for different terminals (say, profile "Project A" for the project that uses UTF-8 and profile "Project B" for the one that uses ISO-8859-1...
(see edits)
I'm developing a QT/c++ application under gnome.
The application a main window and QListBox child window.
Both of these windows show up as separate main windows when I alt-tab away from the application.
How can I make it so that only one window is shown when I (or later the user) uses alt-tab?
I am guessing this behav...
I have a ASUS laptop with Fedora 13. My problem is that any USB storage I connect does not automount. I have other computer with Fedora 13 which does not have the problem.
I have not be able to find any difference in configuration between my laptop and other computers that work.
So to try to trace down the problem I started to looomk f...
Hello,
my development server has a running Gnome-Desktop. I am connected to it by a ssh session. The Gnome-Session and the ssh session are running with the same user.
How to I start a Gnome-application (for example gedit) from the ssh remote session so that it appears on the remote servers Gnome-Desktop?
Thanks a lot,
Hacksteak25
...
I'm trying to make embed Evince (libevview-2.30) in a Python and a C program, but it doesn't work. I'm using Ubuntu Lucid. Here is my C code:
#include <gtk/gtk.h>
#include <evince/2.30/evince-view.h>
#include <evince/2.30/evince-document.h>
int main(int argc, char *argv[]){
GtkWidget *window;
EvDocument *document;
EvDocumen...
Hey all,
I'm working on a Firefox NPAPI plugin + XPCOM component. I've run into a dilemma: Given a file downloaded from the Internet (say a PDF or PNG) how do I start the default helper application to display that file on Linux using C/C++?
Currently I'm using the system function call to invoke the gnome-open command and passing it the...
How do I get correct colors associated with my KDE or Gnome profile on Linux?
java.awt.SystemColor seems to give me root (?) account colors, at least colors definitions doesn't match my settings (whereas on Windows everything is fine).
Are there any APIs that let me access current user's Window Manager color settings from Java?
...