53 questions
0
votes
0
answers
73
views
How to find icon file in desktop file in python? [closed]
Let's say we have a desktop file:
[Desktop Entry]
...
Name=Firefox
Icon=firefox
...
It says Icon=firefox; where is the firefox icon?
1
vote
0
answers
63
views
Why does my PySide6 DBUS ScreenSaver Signal-Listener not work?
I am currently trying to connect to the Screensaver Signal (org.freedesktop.ScreenSaver - /ScreenSaver - ActiveChanged(bool)) that is emitted when the Screen-Saver is closed:
$ dbus-monitor "...
1
vote
1
answer
353
views
How do I crate a value of type a{sv} for a call to org.freedesktop.Notifications.Notify via DBus?
I'm experimenting with DBus in an attempt to understand the Desktop Notifications Specification.
At the latter link I read that the method Notify has this signature
UINT32 org.freedesktop....
3
votes
1
answer
586
views
Why does my SDL Linux application have the correct icon in the app menu, but not in the taskbar?
I am trying to debug a weird icon problem for my Linux app. When I search for the app in the application menu it shows the right icon but when I run the app itself the icon is broken (it shows the ...
0
votes
0
answers
257
views
How to add application-specific icons to current theme?
I'm writing a GUI application using Python and Qt. In this application I want to "decorate" dialogs and output data with theme icons like document-open or dialog-error. This is easily ...
1
vote
2
answers
2k
views
Gstreamer text overlay from variables on memory
Im running the command such as following and this command broadcasts the video to ethernet port. But here is my question that how I can add overlay onto video where overlay values are stored in shared ...
2
votes
1
answer
120
views
How does the chromeos shelf determine if linux applications are running?
I have a chromebook, with chromeos installed and linux activated.
I have the following files:
/usr/share/applications/experiment.desktop:
[Desktop Entry]
Name=Experiment
GenericName=Experiment
Exec=/...
4
votes
1
answer
670
views
How to use zbus to list block devices?
I want to list all the available block devices in the system using a dbus implementation called zbus.
The UDisks2 documentation mentions a method call on org.freedesktop.UDisks2.Manager interface ...
1
vote
0
answers
205
views
Why does the connection get disposed before WaitAsync completes?
I'm having a problem with DBus usage.
I'm trying to get a notification bubble with a few action buttons up and running.
So far, I've been able to get the bubble to show with
retValue = await ...
2
votes
1
answer
2k
views
Where to install icon for a user-specific application while adhering to FreeDesktop standards?
I have a GUI application that I want to install per-user in a FreeDesktop-compliant manner. Reading the relevant specifications, it seem that a '.desktop' file should be placed in ~/.local/share/...
0
votes
1
answer
55
views
Extend Dbus Service
The bigger goal:
Writing a batch user manager targeted at classroom school environments.
The problem
I want to write a user manager that uses a GUI to add, manage and delete users for classroom ...
-1
votes
1
answer
800
views
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 display ...
1
vote
1
answer
377
views
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 which ...
0
votes
1
answer
496
views
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 ...
0
votes
2
answers
2k
views
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 &...
0
votes
1
answer
179
views
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 from ...
3
votes
0
answers
1k
views
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 ...
7
votes
1
answer
2k
views
D-Bus Desktop Notification using dbus-rs
I would like to send desktop notifications through D-BUS using https://crates.io/crates/dbus.
My current approach is:
let c = Connection::get_private(BusType::Session).unwrap();
//let m = ...
5
votes
3
answers
2k
views
Using XDG directory specification on Java application
I'm trying to follow XDG directory specification on my Java application. I have already used it for application data:
protected String getDefaultDataDir() {
String rootPath = System.getenv("...
1
vote
1
answer
3k
views
How to drag a url to a .desktop shortcut
I have created a new .desktop shortcut in LXDE, and added that shortcut to the "Application Launch Bar". I can drag a file onto the shortcut, and the filename will be passed to a script successfully. ...
6
votes
1
answer
2k
views
PowerManagement.Inhibit works with dbus-python but not dbus-send
I am working on a project where I need to inhibit power management (e.g. suspend) programatically. I am able to do so perfectly from Python:
import dbus
pm = dbus.SessionBus().get_object("org....
2
votes
1
answer
3k
views
Specify an icon and Menu entry for cmake- cpack application
I am trying to create and install package (.deb & .rpm too) for an application I am developing, using CMake and CPack. The package gets created nice and well, however I don't get an entry in the ...
4
votes
3
answers
6k
views
Country and language code detecting
I need to detect user's language and country code in Qt. That codes must be matching standards at http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s04.html.
I've tried QLocale, but it ...
2
votes
2
answers
2k
views
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 **argv)
{
...
31
votes
1
answer
28k
views
How do I access an environment variable in a .desktop file's exec line?
My program requires an environment variable as part of one of its parameters:
myprogram --folder=$HOME/.special
However, if I put this into a .desktop file's exec line, it doesn't work:
Exec=...