Questions tagged [gnome]

For questions about code that uses any of the GNOME libraries.

GNOME is a desktop environment, composed entirely by free and open-source software. Mostly used on Linux, but also supported by BSD derivates. GNOME Shell is the official user interface to the desktop environment.

Developed by the GNOME Project, under GPL and LGPL Licenses.

Links:

1430 questions
12
votes
7 answers

Java: JFrame.setLocationRelativeTo(null) not centering the window on Ubuntu 10.04 / gnome 2.30.2 with OpenJDK 1.6.0_18

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); //…
captain poop
  • 215
  • 1
  • 2
  • 5
12
votes
11 answers

Access aliases in Gnome "Run Application" dialog

I'd like to be able to run my aliases from my .bashrc in the "Run Application" dialog that comes up when you hit Alt+F2 in Ubuntu/Gnome. Does anyone know how to do this?
Brad Parks
  • 66,836
  • 64
  • 257
  • 336
12
votes
1 answer

Is there a way to append to an existing gnome canvas bpath in Python?

I am trying to make a simple drawing application using Python and gnomecanvas. Sadly, there appears to be no documentation for the Python bindings for gnomecanvas whatsoever. Thus, I am bumbling around using code samples and trying to guess from the…
KitB
  • 510
  • 2
  • 16
11
votes
3 answers

Gnome 3 and .desktop files - What exactly does "Allow/Disallow lauching do"?

I know that when creating a .desktop file, one can set the metadata::trusted as true and false, in order to be able to launch the icon as an executable. What is intriguing me however is the fact that: When right-clicking on the .desktop file and…
Lango
  • 323
  • 5
  • 17
11
votes
8 answers

Shell script changing desktop wallpaper

Could you write the easiest possible shell script that will change the desktop wallpaper (in Ubuntu) in regular intervals (e.g. 1 minute). Wallpapers will be saved in particular directory (e.g. $HOME/wallpapers). I need only basic functionality. 1)…
xralf
  • 3,312
  • 45
  • 129
  • 200
11
votes
6 answers

Gnome-terminal not starting due to error in python script related to GI

When I run gnome-terminal, I get the following error: Traceback (most recent call last): File "/usr/bin/gnome-terminal", line 9, in from gi.repository import GLib, Gio File "/usr/local/lib/python3.4/dist-packages/gi/__init__.py",…
user3597931
11
votes
2 answers

Display notifications in Gnome Shell

How can i send notifications in GNOME through a python program? I have tried python bindings like pynotify,python-notify2, but the all give pop-up notifications which are temporary. Is there any python bindings to give notifications on the message…
rohitnambisan99
  • 121
  • 2
  • 6
10
votes
1 answer

How to create nautilus C extensions

I'm trying to create a Nautilus extension in C, but there are just Python examples and helps. Almost no documentation and literally no examples, but just some complete extensions which are long and hard to understand for a beginner. I need just a…
Stefano d'Antonio
  • 5,874
  • 3
  • 32
  • 45
10
votes
1 answer

Debian device descriptor read 64 error 71

When I install debian on a computer without gnome, it gives me the above error when I connect usb device to my computer. But when I install gnome, the usb port works fine. How to get rid of this?
sanksr
  • 111
  • 1
  • 1
  • 4
10
votes
2 answers

How to remove the Title Bar of Gnome applications

Problem I have one Ubuntu20 Desktop(Gnome) and I want it to be fully black and ideal. As reference, I have taken one Ubuntu20 Server and Installed openbox on it. I hided the title bar of all the applications in OpenBox by editing the configurations…
10
votes
3 answers

How to block a linux program from being print screened?

I need to prevent my users from print screening the data that my program displays. Right now the idea I have is to make it a full screen program, where probably calling any other linux shortcuts or applications is blocked, and the print screen key…
Khushman Patel
  • 1,066
  • 2
  • 13
  • 23
10
votes
1 answer

Would you recommend JavaScript for GNOME desktop apps?

With the arrival of the new GNOME Developer Center I stumbled across JavaScript bindings for the gobject libraries. Now I would love to read a comment from an expert if he (or she) would recommend / consider using those for a desktop application.…
f4lco
  • 3,728
  • 5
  • 28
  • 53
10
votes
4 answers

How to distribute `.desktop` files and icons for a Python package in Gnome (with distutils or setuptools)?

Currently I'm using the auto-tools to build/install and package a project of mine, but I would really like to move to something that feels more "pythonic". My project consists of two scripts, one module, two glade GUI descriptions, and two .desktop…
Magnus
  • 4,644
  • 1
  • 33
  • 49
10
votes
1 answer

GLib-GIO-Message: Using the 'memory' GSettings backend. Happened in Ubuntu 16.10 after going from GNOME to Unity to GNOME again

GNOME in Ubuntu 16.10 has been working great for me on my HiDPI laptop. As linux users with HiDPI displays know, chaning the window scaling factor is necessary to make the machine usable without an electron microscope. Today I logged out, logged…
Gavin Ridley
  • 371
  • 3
  • 15
10
votes
4 answers

Android Device Monitor not found JDK Path

I'm using Arch Linux with Gnome. I open Android Studio by the desktop item. The code editor works fine, the device manager starts correctly and the app run like a charm, but when I try to open the Device Monitor, I get this error: A Java Runtime…
Juliano Grams
  • 525
  • 1
  • 5
  • 17