Fontconfig for iOS

I download the Fontconfig-2.9.0.tar.gz from here http://freedesktop.org/software/fontconfig/release but I don't know how to cross compiling it for iOS. I need a fontconfig.a for iOS, can somebody...

dbus glib bindings UDisks Error

void device_added() { printf("Added \n"); g_main_loop_quit (loop); } void device_removed() { printf("Removed\n"); g_main_loop_quit (loop); } int main (int argc, char...

Playing a wav file using pulseaudio APIs?

For example, this is how to use pulseaudio: http://freedesktop.org/software/pulseaudio/doxygen/pacat-simple_8c-example.html but I'm not clear on how I can simply play a wav file or an ogg file for...

How to compile a basic D-Bus/glib example?

I'm trying to learn how to use D-Bus with C bindings. I've never used D-Bus before. I'm following this tutorial, which I assume is the official one (Freedesktop.org). I've read it until this...

HarfBuzz getting started

I cannot find the guide to get started with using HarfBuzz in my own app. I looked here: http://freedesktop.org/wiki/Software/HarfBuzz/ This seems to be the official page of HarfBuzz. I looked...

Python+D-Bus+BlueZ 5: can't read property of object?

This is on Gentoo Linux. I'm trying to get BlueZ 5 to tell me whether my bluetooth headset is connected or not. I have read and re-read the D-Bus « documentation » on freedesktop.org but it...

Cross-platform method to obtain the user's configuration home directory in Python?

My program needs to store some configuration files. The major operating systems seems to have a designated location to place those; for instance, on Freedesktop.org compliant systems, it will be...

Error importing gi

This is the command I am trying to run and its output: $ python2 Python 2.7.8 (default, Sep 24 2014, 18:26:21) [GCC 4.9.1 20140903 (prerelease)] on linux2 Type "help", "copyright", "credits" or...

Installing gphoto2 on mac os x Yosemite - issue with ./configure

I am trying to install gphoto2 on my macbook pro. I installed the tar.gz from their website and from terminal I cd Downloads and run ./configure as the README file recommends doing. I keep...

Installed canopy python gives floating point exception when running setup

I've installed canopy python on a suse linux server and when trying to run the set up for command line use I get a floating point exception. I get it just running the ~/Canopy/bin/_python, so it...

Get list of applications for opening a specific file

How can I get a list of applications that are capable to open a specific filetype / MIME-type? I'm searching for a desktop-environment independent solution on Linux. I found the possibilty to get...

Timeout when trying to access QtDBus Objects that where created in a Windows system service

I want to create a Windows system service using QT/MinGW which communicates with other applications over DBUS (from freedesktop.org). For the moment DBUS is running as a "service" by meaning of it...

Icon path lookup in Qt

Qt supports the icon theme lookup by returning a QIcon. But for my QML view I need the icon path instead of a QIcon. Is there a way to get either the path from the looked up icon or to do a lookup...

check for reparented window close events

I am trying to make a xlib traybar for X11 where it embeds the tray icons using XEMBED as described in the tray specs. However when I close the application with the tray icon it just removes it...

Should A Program Create XDG Folders?

Let's say I'm writing a program, and I want it to follow the XDG Base Directory Specification for where it puts its files (app foo uses $XDG_CONFIG_HOME/foo as the directory for configuration...

Set system time using Qt through DBus

I try to set system time using Qt through DBus in the following way: #include <QDBusConnection> #include <QDBusInterface> #include <QDBusMessage> #include <QDebug> #include <QDateTime> #include...

What does the X-MultipleArgs in the Desktop Entry file mean?

All of the sample Desktop files have X-MultipleArgs=False --- but what does this mean? The X- means it's an extension so it's not defined in the FreeDesktop specification. But I can't seem to...

Strange PulseAudio monitor device behaviour

Faced strange PulseAudio monitor device (i.e. audio input device which plays sound sent to speaker) behaviour. I've reduced code from my real project to simple example based on code from...

Where can I get the xdg menu hierarchy

I've consulted the following articles and many more, but still don't understand one question -- What menu hierarchy do freedesktop (or Ubuntu or any modern distro) use? Where can I get a list of...

freedesktop XEmbed systray client code in C, Xlib

I've been trying to implement a systray icon using straight C and Xlib, going along with the freedesktop specification [0]. I can't seem to get my Window to embed into my desktop manager's...

GTK allow open files with new vala application

I'm developing a media player with Vala and I want to be able to open audio files with this application (once it is installed). In .descktop files I added the following MIME types to indicate...

Low Level DBus C API main loop

When trying to use a callback function for a DBus reply I get stuck on creating a good/well working main loop. What I want to do is simple, make a DBus call and specify a function which should be...

Can't set title for terminal window when launched from Gnome menu launcher

I added a new Gnome menu option to launch a custom script application. I am using Redhat 6, Gnome 2. This is all working but when it launches in a new terminal window I cannot get the title to...

Python properly and effectively obtaining DBUS object path (e.g. /org/bluez/dev_XX_XX_XX_XX_XX_XX/playerY)

I would like to get the device path for bluez-based A2DP bluetooth player that I am creating. I am stuck implementing Play/Pause/Next/Previous commands efficiently, because the dbus availability...

Open file with default application from Vala?

What's the best way to open a file in the default application from Vala? A bit like how xdg-open works.

PulseAudio cannot read buffers at consistent rate

I want to record my microphone and process in real time, eg. show an oscilloscope view of the microphone signal. I've tried 3 ways to get the data out of PulseAudio and they all perform the same. ...

Stop systemd service with DBus method

I have a server client application and I want to stop the server on Linux properly with systemd. The server and client are implemented in Java, running on JRE 1.8. I figured out the most elegant...

How do I get Geoclue Geolocation in Python? - What is desktop id parameter?

I'm trying to get the location (lat/lon) using GeoClue for Linux, and the Python interface (gir1.2-geoclue-2.0 package). The documentation for c nearly matches the api functions here, but I'm not...

installing jupyter notebook on an Amazon AWS

I have some AWS server that I am trying to install jupyter notebook on. I do the following steps: Go to my home directory and make a virtual environment using python3.6 -m venv env Activate the...

How can I fetch all systemd1 devices?

I wrote the code below to try and detect if a specific device is attached through USB. I'd like to iterate through the attached devices. def scanCameraInterfaces(self): ud_manager_obj =...

Relevant tags