Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
1
votes
1
answers
114
views
GTK apps UIs look broken in Debian
What is the problem and how to fix it? `gdmap` looks like this: [![screenshot of gdmap][1]][1] I think it has to do with GTK. I'm using Debian 12 with KDE and Wayland. On a nearly identical machine gdmap looks fine. I have libgtk-3-0 and libgtk-4-1 installed and when I enter `sudo apt-get install gd...
What is the problem and how to fix it?
I think it has to do with GTK. I'm using Debian 12 with KDE and Wayland. On a nearly identical machine gdmap looks fine. I have libgtk-3-0 and libgtk-4-1 installed and when I enter
gdmap
looks like this:

sudo apt-get install gdmap
nothing is asked to be installed and I already tried reinstalling. Other apps like Firefox and Lutris look normal.
It's not only gdmap but also other apps, namely VeraCrypt which I installed locally and GParted. The icons can't be seen. LibreOffice is also broken and looks like very old software.
mYnDstrEAm
(4708 rep)
Nov 22, 2024, 12:15 PM
• Last activity: Jul 13, 2025, 05:41 PM
8
votes
3
answers
12915
views
gtk-launch only works when present working directory is Desktop
I just figured out how to manually create a `.desktop` file which allows a program to be launched by issuing the command `gtk-launch` [program.desktop]. Problem is it only seems to work if my present working directory is the Desktop directory for my username. Thus when I enter the command `gtk-launc...
I just figured out how to manually create a
.desktop
file which allows a program to be launched by issuing the command gtk-launch
[program.desktop]. Problem is it only seems to work if my present working directory is the Desktop directory for my username. Thus when I enter the command gtk-launch program.desktop
it runs.
The problem is when I try to enter gtk-launch /home/userName/Desktop/program.desktop
. Instead I get a message from terminal saying: **gtk-launch: no such application.** I know the file is there and cat works just fine reading it.
Why does gtk-launch only seem to be working from inside Desktop? Can I get around this? I'm using Kali linux with GNOME from a persistent USB.
Shadow43375
(261 rep)
Sep 19, 2017, 12:14 AM
• Last activity: Jul 12, 2025, 03:50 AM
4
votes
1
answers
8831
views
How do I make all GTK applications use a custom DPI setting?
After upgrading from Debian 8 to Debian 9, the text editor Pluma (a Gedit fork) no longer use my custom DPI setting. I noticed the same thing with the editor Geany. Here are my Xft settings in `~/.Xresources`: Xft.antialias: true Xft.autohint: false Xft.dpi: 100 Xft.hinting: true Xft.hintstyle: hint...
After upgrading from Debian 8 to Debian 9, the text editor Pluma (a Gedit fork) no longer use my custom DPI setting. I noticed the same thing with the editor Geany. Here are my Xft settings in
Leafpad (with DejaVu Sans 10):
~/.Xresources
:
Xft.antialias: true
Xft.autohint: false
Xft.dpi: 100
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
Xft.rgba: rgb
The other Xft settings above are picked up Pluma, however. On the other hand, the text editor Leafpad correctly uses the DPI setting. Any clues? I use the window manager Blackbox started from a console.
Pluma (with DejaVu Sans 10):


August Karlstrom
(1986 rep)
Jun 21, 2017, 10:32 AM
• Last activity: Jul 11, 2025, 09:05 AM
3
votes
1
answers
2250
views
How to use my existing custom GTK theme (Arc) with gtk-window-decorator when using Compiz?
I'm currently using Compiz 0.8 to get blur effects and transparency, in place of xfwm4. I had been using Emerald to provide window borders, but I was unhappy with the selection available there. I would prefer to use my GTK theme window borders (the ones I get when I run `xfwm4 --replace` in the term...
I'm currently using Compiz 0.8 to get blur effects and transparency, in place of xfwm4. I had been using Emerald to provide window borders, but I was unhappy with the selection available there. I would prefer to use my GTK theme window borders (the ones I get when I run
I'm running Arch Linux with XFCE. The Arch Linux wiki provided me with the same answer that a lot of other pages did - to use gsettings to change some entries. This didn't work, probably because (as the wiki page says, albeit without any elaboration) that Compiz-reloaded, the project that represents the continued maintenance of the Compiz 0.8 project, have switched to using Marco instead of Metacity.
So that leaves me at a loss. The change was rather recent, and Compiz is pretty far past its prime, so I can't find much on how to deal with this issue with the recent changes.
xfwm4 --replace
in the terminal).
It turns out you can pass the command gtk-window-decorator --replace
to use the standard GTK window borders. However, these use some sort of default theme that looks really out of place. I have no idea how to change it.

Jay
(43 rep)
Feb 14, 2017, 10:16 PM
• Last activity: Jul 9, 2025, 12:07 AM
2
votes
2
answers
410
views
GtK Version Incompatibility
I'm trying to run a program called foxglove-studio, as part of a research package that someone built and successfully ran on a different machine. The program, even when run standalone, gives the following error: ```(process:86809): Gtk-ERROR **: 15:28:15.808: GTK 2/3 symbols detected. Using GTK 2/3...
I'm trying to run a program called foxglove-studio, as part of a research package that someone built and successfully ran on a different machine. The program, even when run standalone, gives the following error:
(process:86809): Gtk-ERROR **: 15:28:15.808: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported
My understanding is that this is implying that the program is trying to launch in GTK version 4, but the program was built assuming GTK 2/3, and so there is some version incompatibility. However, my Ubuntu installation came with GTK 4 and GTK 3 packages both installed.
Is there a way to force this program to run in GTK 3 without diving into the source code? I've seen solutions for other programs with similar GTK errors, but, unless I'm mistaken, the command line arguments their solutions use appear to be program specific.
AncientSpark
(121 rep)
Jun 4, 2025, 04:38 PM
• Last activity: Jun 30, 2025, 11:14 AM
4
votes
2
answers
9727
views
How do I change Xfce 4 "theme" tab colors?
I recently switched over to Xfce and really enjoy it. However, when I went in to my settings to change the appearance, the theme that I liked best was "Xfce-dusk" with one exception: The default colors for application tabs are so dark that it's hard to tell where they are. I hunted around for a litt...
I recently switched over to Xfce and really enjoy it. However, when I went in to my settings to change the appearance, the theme that I liked best was "Xfce-dusk" with one exception:
The default colors for application tabs are so dark that it's hard to tell where they are.
I hunted around for a little while looking anywhere I could to see where the styles for the tabs are set in the theme configuration file and couldn't find anything that looked like it would do what I need.
The file I've found to define the theme was:
/usr/share/themes/Xfce-dusl/gtk-2.0/gtkrc
But looking through that file, I can't find anything that seems to apply.
Any suggestions? Normally I'm a command-line only sort of guy and don't really know much about WMs or theming, and don't even know the terms of what I'm trying to modify, so my Google searches are coming up painfully empty.
Here is a screenshot of the type of tabs I want to modify
.

Eric Ryan Harrison
(151 rep)
Sep 1, 2010, 11:10 PM
• Last activity: Jun 22, 2025, 11:05 PM
1
votes
1
answers
2370
views
Problem with GTK applications
I did an upgrade with `yaourt -Syuu` but when I rebooted, my Xfce didn't work. So I installed KDE and it worked perfectly. When I tried to run firefox, this is the output: process:5495): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed firefox: symbol lookup error: /usr/li...
I did an upgrade with
yaourt -Syuu
but when I rebooted, my Xfce didn't work. So I installed KDE and it worked perfectly.
When I tried to run firefox, this is the output:
process:5495): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0'
failed
firefox: symbol lookup error: /usr/lib/libpangoft2-1.0.so.0 If you want
: undefined symbol: hb_buffer_set_cluster_level
with mousepad:
(mousepad:5517): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed
(mousepad:5517): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed
(mousepad:5517): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed
(mousepad:5517): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed
(mousepad:5517): GtkSourceView-CRITICAL **: gtk_source_style_scheme_get_id: assertion 'GTK_IS_SOURCE_STYLE_SCHEME (scheme)' failed
mousepad: symbol lookup error: /usr/lib/libpangoft2-1.0.so.0: undefined symbol: hb_buffer_set_cluster_level
and chromium:
/usr/lib/chromium/chromium --ppapi-flash- path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=18.0.0.233: symbol lookup error: /usr/lib/libpangoft2-1.0.so.0: undefined symbol: hb_buffer_set_cluster_level
Searching a while I found libpangoft2-1.0.so
is in lib32-pango or Pango.
sudo pacman -S lib32-pango
advertencia: lib32-pango-1.36.8-1 está actualizado -- reinstalando
resolviendo dependencias...
buscando conflictos entre paquetes....
Paquetes (1) lib32-pango-1.36.8-1
Tamaño total de la instalación: 0,50 MiB
Tamaño neto tras actualizar: 0,00 MiB
:: ¿Continuar con la instalación? [S/n] S
(1/1) comprobando las claves del depósito [############################] 100%
(1/1) verificando la integridad de los paquetes [############################] 100%
(1/1) cargando los archivos de los paquetes [############################] 100%
(1/1) comprobando conflictos entre archivos [############################] 100%
(1/1) comprobando el espacio disponible en disco [############################] 100%
(1/1) reinstalando lib32-pango [############################] 100%
sbin/ldconfig: El fichero /usr/lib/libtracker-miner-1.0.so.0 está vacío, no se comprueba.
sbin/ldconfig: El fichero /usr/lib/libtracker-miner-1.0.so está vacío, no se comprueba.
sbin/ldconfig: El fichero /usr/lib/libtracker-control-1.0.so.0.600.0 está vacío, no se comprueba.
sbin/ldconfig: El fichero /usr/lib/libtracker-miner-1.0.so.0.600.0 está vacío, no se comprueba.
sbin/ldconfig: El fichero /usr/lib/libtracker-control-1.0.so.0 está vacío, no se comprueba.
Also, I tried reinstalling glib2, glib gtk and gtk2 but none of it worked.
Valar Melkor
(11 rep)
Oct 9, 2015, 12:16 PM
• Last activity: Jun 10, 2025, 11:06 PM
0
votes
4
answers
7887
views
Nemo in Linux Mint - Reset all Preferences and "My computer" pane in List View
I am struggling a little bit with this issue I'm having with Nemo in Linux Mint (I just upgraded to 17.3 but this is happening since 17.1). In brief, I accidentally removed some shortcuts from the "My computer" section in the left sidebar of nemo as a user. I tried to restore them, nbut apparently I...
I am struggling a little bit with this issue I'm having with Nemo in Linux Mint (I just upgraded to 17.3 but this is happening since 17.1).
In brief, I accidentally removed some shortcuts from the "My computer" section in the left sidebar of nemo as a user. I tried to restore them, nbut apparently I can't add icons to that tab, nor drag them from the "bookmark" section to the "My Computer" one. If I start nemo as root, I can add, remove, drag and drop icons in that tab, but of course the changings does not apply to the "user" version.
Moreover, I tried to perform a clean install of nemo after purging it, but unsuccessfully.
Can someone explain me where th configuration file of this sidebar are located and hot to delete them, or set their permission to user in order to drag and drop correctly into that tab? Alternatively, is there a "real" way to clean install Nemo and only Nemo without touching the other GTK features?
Thanks a lot for your time, any help is really appreciated!
WarioBrega
(1 rep)
Jan 4, 2016, 05:19 PM
• Last activity: Jun 10, 2025, 03:03 AM
5
votes
4
answers
9287
views
Change border color around window (edit GTK theme)
I am using a fairly recent version of `Cinnamon` (5.4.12), with desktop theme `Adwaita-dark` (and `Adwaita` sometimes). When I start a `gnome-terminal` window, it has a very thin (1px?) white border all around it. But as I like black terminals, I configured a black background to it, but now, I canno...
I am using a fairly recent version of
Cinnamon
(5.4.12), with desktop theme Adwaita-dark
(and Adwaita
sometimes).
When I start a gnome-terminal
window, it has a very thin (1px?) white border all around it. But as I like black terminals, I configured a black background to it, but now, I cannot see the window borders anymore. This also happens with other dark background applications.
It can be very confusing to know which is which when terminal windows are overlapping, or even just next to one another.
I tried to change this colour with no success:
- by searching in the theme files in /usr/share/themes/Adwaita
,
- by playing with ~/.config/gtk-3.0/gtk.css
to override some configuration,
- by reading other similar questions , but they are either outdated or not applying to my use case.
So, **how can I change the border colour of gnome-terminal
(and possibly all other) windows to white?**
Totor
(21020 rep)
Nov 20, 2022, 11:14 PM
• Last activity: Jun 8, 2025, 04:00 AM
10
votes
5
answers
1763
views
Recommended way for a Linux app to inform user of an exception
In this context, an 'exception' is an undesirable scenario, which could be: a code-level signal (like SIGSEGV), incorrect ways of launching an app (like launching a command-line app as a daemon) etc. For a command-line app, the way to report exceptions to the user is by outputting to stderr - no dou...
In this context, an 'exception' is an undesirable scenario, which could be: a code-level signal (like SIGSEGV), incorrect ways of launching an app (like launching a command-line app as a daemon) etc.
For a command-line app, the way to report exceptions to the user is by outputting to stderr - no doubts here.
For a GUI app using GTK, an error window displayed using GTK's [MessageDialog](https://docs.gtk.org/gtk3/class.MessageDialog.html) can be used. But what if the
MessageDialog
fails, either due to unstable state of the app (SIGSEGV or SIGBUS may not have any recovery) or the API itself failed... in that case, how can a GUI app inform the user?
Finally, a daemon... A daemon needs to inform user either due to a code-level exception (signals) or an external exception - user could launch a command-line app as a daemon, which is not a desirable way of launch, since a command-line app would've exited after its task is completed, but a daemon is expected to run for a long time. The command-line app could detect it was launched as a daemon and inform the user that it was launched incorrectly, but output to stderr does nothing here... how can a command-line app launched as daemon inform user that it was launched incorrectly?
The main question is, how can each of these apps communicate with the user in the above mentioned scenarios? What is Linux's recommendation?
PS: I'm new to Linux and app development in Linux.
NightFuryLxD
(201 rep)
May 24, 2025, 02:18 PM
• Last activity: May 27, 2025, 10:38 AM
4
votes
1
answers
2936
views
How to get a 'compact' look in GTK?
I am not a fan of the newer “touch screen” looks that GTK has these days. I appreciate what the GTK devs are doing (and to be honest, they look great!) But, I am not on a tablet, I am on a laptop and my pointing device is very precise. I use a mouse, not my finger. Even though large toolbars with hu...
I am not a fan of the newer “touch screen” looks that GTK has these days. I appreciate what the GTK devs are doing (and to be honest, they look great!) But, I am not on a tablet, I am on a laptop and my pointing device is very precise. I use a mouse, not my finger. Even though large toolbars with huge icons are great with touch devices, but they are not that great with laptops that has a mouse. I want to see more on a screen, not less. I also hate newer trends of having less information density on the screen.
To avoid that I switched from GNOME 3 to GNOME 2 Mate. It works but a lot of GTK applications are still so bad. Here are some examples,
On the left is what I want, but on the right is what I have on my MATE desktop. **Spacing:** (on left) _Menu, Applications_ are so close together without wasting any space. (on right) _Mouse Orientation, Locate Pointer, Pointer Speed_ have unnecessary space between them. **Spacing within sections:** (on left) Inside _Applications_ section, all the check-boxes and their options are on spot on. (on right) Inside the _Mouse Orientation_, the _Right-handed_ and _Left-handed_ radio buttons have too much space in between. **Sliders:** The sliders in the left is small but on the right they are too big. In fact it looks like they have been resize and hence the blurriness.
The menubar and toolbar have too much padding on the top and bottom in the right (my MATE desktop) than on the left. Forget the icon labels, the icons are too big for me (on the right). Also the tabs _Untitled Document 1_ (on right) are much bigger than _Downloads_ (on left).
And same with the drop downs menus. The menu on my MATE desktop are padded too much at the top and bottom than the bottom one.
.
And also buttons. The buttons are huge. Why the unnecessary space? The smaller buttons below are much better than the one on the top.
Again, I get it, that touch screen devices need bigger buttons and imperfect pointing methods are the reason why they are so big. And I have no problem with that. But these modern trends of making everything big is so bad for laptops.
I have tried many different themes to make it smaller and this is the most compact one I could get. There are theme that make these UI elements so freaking big (Adwita or something like that).
Ironically, (with some quirks here and there) Kirta and Inkscape guys did the UI much better than GNOME and GIMP. I though GIMP would be better since they created the toolkit.
Anyways, is there any way of making these compact so that I can have a lot of buttons/sliders/dropdows/other UI elements and windows on my screen when I am working. I don't care about the aesthetics. I want functionality. Does anyone know how to make make as close as the ones I showed in my examples.





sigsegv
(169 rep)
Dec 17, 2018, 05:32 PM
• Last activity: May 16, 2025, 08:08 AM
0
votes
0
answers
26
views
Zenity Access Keys
The [Gnome Help zenity manual](https://help.gnome.org/users/zenity/stable/usage.html.en) explains: >An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access key is identified by an underlined lette...
The [Gnome Help zenity manual](https://help.gnome.org/users/zenity/stable/usage.html.en) explains:
>An access key is a key that enables you to perform an action from the keyboard rather than use the mouse to choose a command from a menu or dialog. Each access key is identified by an underlined letter on a menu or dialog option. Some Zenity dialogs support the use of access keys.
I tried to use this feature with several Zenity dialogues but I had no success. A MWE:
--list --column "Item" "Apples"\ "Oranges"\ "Pears"
Adding an underscore (e.g. "_Apples") as explained by the Help page the Access Key does not seem to work.
Question: the manual says that "some Zenity dialogs" support this feature. Which dialogues? I tried several dialogues but I failed.
Thanks a lot.
alcuinus
(1 rep)
Mar 23, 2025, 09:23 PM
• Last activity: Mar 23, 2025, 10:02 PM
2
votes
0
answers
43
views
How do I increase the Debian window header button size?
I made a DIY DAB radio using a Raspberry Pi 5 and a 7-inch 1024x600px HDMI screen, running Raspberry Pi OS (Debian 12). The problem is, that the header buttons of each window is too small for operation reliable using the touchscreen. [![DAB radio screenshot for illustration][1]][1] I tried the follo...
I made a DIY DAB radio using a Raspberry Pi 5 and a 7-inch 1024x600px HDMI screen, running Raspberry Pi OS (Debian 12).
The problem is, that the header buttons of each window is too small for operation reliable using the touchscreen.
I tried the following
-
But that did not change the header size at all.
How can I enlarge the header buttons? What did I do wrong?
(If additional system informationa are required, please feel free to ask)

gsettings get org.gnome.desktop.interface gtk-theme
returns 'PiXnoir'
- nano /usr/share/themes/PiXnoir/gtk-3.0/gtk.css
shows @import url("../../PiXflat/gtk-3.0/gtk-contained.css");
- therefore I modified nano /usr/share/themes/PiXflat/gtk-3.0/gtk-contained.css
- I modified the following parameter:

Florian
(71 rep)
Mar 15, 2025, 08:52 PM
-1
votes
1
answers
326
views
installiing libwebkit2gtk-4.0-37
``` $apt install libwebkit2gtk-4.0-37 output : Package libwebkit2gtk-4.0-37 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Error: Package 'libwebkit2gtk-4.0-37' has no installation candi...
$apt install libwebkit2gtk-4.0-37
output :
Package libwebkit2gtk-4.0-37 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Error: Package 'libwebkit2gtk-4.0-37' has no installation candidate
I'm trying to install the libwebkit2gtk-4.0-37, any solution ?
i'm using Kali linux
$uname -a
Linux kali 5.19.0-kali2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1kali2 (2022-10-10) x86_64 GNU/Linux
Ichimonji_bleach
(1 rep)
Mar 6, 2025, 09:34 AM
• Last activity: Mar 6, 2025, 09:40 AM
0
votes
1
answers
21
views
What icon filename have files that are not recognized by the GTK+ icon theme?
I have an icon theme that I'm working on, and I have few files that are missing icons. One of them is empty file and others are different type of files. They all had the same icons that don't came from my theme. I've found that you can use: ```bash xdg-mime query filetype ``` to find the mime, and y...
I have an icon theme that I'm working on, and I have few files that are missing icons. One of them is empty file and others are different type of files. They all had the same icons that don't came from my theme.
I've found that you can use:
I'm testing this on Fedora Xfce flavor.
xdg-mime query filetype
to find the mime, and you only slash need to be replaced by dash and save it as svg file.
But how to find a filename for the icon of the file that is missing an icon?
Like those white files on the left below.

jcubic
(10310 rep)
Mar 1, 2025, 03:04 PM
• Last activity: Mar 2, 2025, 12:11 AM
8
votes
2
answers
729
views
Can I mark files as recently-used from the command line?
GTK applications mark files as recently used by adding them to the XML in `~/.local/share/recently-used.xbel`, but I am frequently working with files from terminal-driven applications like latex, and these are not marked in the GTK list and hence not available from the "Recent" bookmark in GUI file...
GTK applications mark files as recently used by adding them to the XML in
~/.local/share/recently-used.xbel
, but I am frequently working with files from terminal-driven applications like latex, and these are not marked in the GTK list and hence not available from the "Recent" bookmark in GUI file browsers/pickers etc..
Is there a CLI command I can use to explicitly add files to the Recent list, for smoothing operations between the terminal and GUI sides of my Linux usage? Either an official way, or a fast & simple hack with the side-effect of writing to the recently-used.xbel
file!
andybuckley
(183 rep)
Mar 29, 2019, 11:42 AM
• Last activity: Feb 14, 2025, 01:37 PM
0
votes
0
answers
73
views
How can I set the titlebar icon in GTKmm GUI application to a different icon in Kubuntu?
I have learned to create a simple C++ GUI application using **GTKmm version 4**, and managed to compile it and make it run on Kubuntu. I have also defined a .desktop file with a custom icon and with the compiled GTK binary in its Exec section. I then placed the .desktop file in /usr/share/applicatio...
I have learned to create a simple C++ GUI application using **GTKmm version 4**, and managed to compile it and make it run on Kubuntu. I have also defined a .desktop file with a custom icon and with the compiled GTK binary in its Exec section. I then placed the .desktop file in /usr/share/applications. I however, have not figured out how to set the icon in the titlebar to the same icon I'm using in the .desktop file.The icon I see in the titlebar resembles the icon I see in kcm_kwinxwayland.desktop. **Is there a way to set the icon in the titlebar to something different?**
These are my files:
C++ Source Code
---------------
#ifndef GTKMM_EXAMPLE_HELLOWORLD_H
#define GTKMM_EXAMPLE_HELLOWORLD_H
#include
#include
class HelloWorld : public Gtk::Window
{
public:
HelloWorld();
~HelloWorld() override;
protected:
//Signal handlers:
void on_button_clicked();
//Member widgets:
Gtk::Button m_button;
};
#endif // GTKMM_EXAMPLE_HELLOWORLD_H
#include "hello_world.hpp"
#include
HelloWorld::HelloWorld()
: m_button("Hello World") // creates a new button with label "Hello World".
{
// Sets the title of the window.
this->set_title("Hello World");
// Sets the margin around the button.
m_button.set_margin(10);
// When the button receives the "clicked" signal, it will call the
// on_button_clicked() method defined below.
m_button.signal_clicked().connect(sigc::mem_fun(*this,
&HelloWorld::on_button_clicked));
// This packs the button into the Window (a container).
set_child(m_button);
}
HelloWorld::~HelloWorld()
{
}
void HelloWorld::on_button_clicked()
{
std::cout
int main(int argc, char* argv[])
{
auto app = Gtk::Application::create("org.gtkmm.example");
//Shows the window and returns when it is closed.
return app->make_window_and_run(argc, argv);
}
// TO COMPILE: g++ main.cpp hello_world.cpp -o hello_world pkg-config --cflags --libs gtkmm-4.0 -std=c++17
Desktop file
------------
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Gtkmm Example
GenericName=Example
Comment=From the "Programming with gtkmm 4" tutorial
Icon=/path/to/icon
StartupNotify=true
Exec=/path/to/compiled/binary %U
Categories=GNOME;GTK;Utility
I have tried to set the application icon directly in my C++ HelloWorld class code, right below where I set the window title, using several different methods that didn't work, like set_icon, set_icon_from_file, etc. **Is there a way to set the titlebar icon, either directly using gtkmm (set_icon_name?), or through other means, in Kubuntu?**
Alberto García
(1 rep)
Feb 4, 2025, 07:31 PM
0
votes
1
answers
43
views
Prevent dialog windows from opening on a different X server
Frequently this scenario happens when I'm logged in in more than one X session on the same machine, for example locally (`:0.0`) and remotely through RDP. If a desktop application (like the Chrome browser, I suspect it's GTK in general) opens a dialog window, for example to save a file, the dialog w...
Frequently this scenario happens when I'm logged in in more than one X session on the same machine, for example locally (
:0.0
) and remotely through RDP.
If a desktop application (like the Chrome browser, I suspect it's GTK in general) opens a dialog window, for example to save a file, the dialog window often appears on the other X session. Which is obviously hard to access at the moment. The application then seems like frozen until the dialog is dealt with at the other X session.
What's even worse is that sometimes the dialog apparently "opens" on an X session that isn't accessible any more, such as closed RDP session. Then it's not possible to access it at all and and the only solution is to forcibly kill the application.
So I'm looking for ways how to:
- Debug the issue - why it's happening in the first place.
- Prevent it from happening.
(Another possible solution/workaround would be to avoid creating multiple sessions at all, if that'd be possible (https://unix.stackexchange.com/questions/780441/can-an-xrdp-server-be-configured-to-connect-to-an-existing-desktop-session).)
----
I suspect this might be related to systemd login sessions being stuck somehow (and then maybe causing some troubles over dbus
):
$ loginctl list-sessions
SESSION UID USER SEAT TTY STATE IDLE SINCE
3602 2001 user - - closing no -
c11 2001 user - - closing no -
c7 2001 p seat0 tty7 closing no -
...
And subsequently misbehaving
Petr
(1776 rep)
Jan 29, 2025, 10:18 AM
• Last activity: Jan 29, 2025, 05:42 PM
2
votes
0
answers
738
views
xfce4-terminal in fluxbox follows a different style/theme to xfce4-terminal in xfce
I am using xubuntu 18.04, but this question should preferably be applicable to all linux installations having both desktop managers "xfce" and "fluxbox". So I have started with xubuntu (i.e. ubuntu with xfce) but I have also `apt install fluxbox` as well. In "Xfce" I use `xfce4-settings-manager` to...
I am using xubuntu 18.04, but this question should preferably be applicable to all linux installations having both desktop managers "xfce" and "fluxbox".
So I have started with xubuntu (i.e. ubuntu with xfce) but I have also
However, when I switch to "fluxbox":
As you can see the window's menubar, as well as the preferences window do not obey the selected theme. This is a problem in "nautilus" file manager as well, but not for other applications (such as "Thunar" file manager, which works correctly)
Does it perhaps not follow "gtk-2.0" styles ?
For that I have set gtk-3.0 in "~/.config/gtk-3.0/settings.ini"
[Settings]
gtk-theme-name = Adwaita-dark
gtk-icon-theme-name = SimplyGrey
gtk-fallback-icon-theme = gnome
gtk-font-name = Sans 10
# next option is applicable only if selected theme supports it
gtk-application-prefer-dark-theme = true
I have also setup QT to use GTK+ styles, but the issue persists. What am I missing here ?
apt install fluxbox
as well.
In "Xfce" I use xfce4-settings-manager
to select a theme, the result for "Adwaita-dark" theme is shown below, for the "x-terminal-emulator" application: 

nass
(1508 rep)
Nov 30, 2018, 12:59 PM
• Last activity: Jan 27, 2025, 12:36 PM
0
votes
1
answers
87
views
meld won't run on Cygwin: AttributeError: module 'gi' has no attribute 'require_version
I'm trying to run meld on Cygwin, after having installed it, and circumvented the ["no module named 'meld'" issue by forcing it to use Python 3.6][1]. Now, I get: ``` $ meld Traceback (most recent call last): File "/usr/bin/meld", line 341, in check_requirements() File "/usr/bin/meld", line 193, in...
I'm trying to run meld on Cygwin, after having installed it, and circumvented the "no module named 'meld'" issue by forcing it to use Python 3.6 . Now, I get:
$ meld
Traceback (most recent call last):
File "/usr/bin/meld", line 341, in
check_requirements()
File "/usr/bin/meld", line 193, in check_requirements
gi.require_version("Gtk", "3.0")
AttributeError: module 'gi' has no attribute 'require_version'
Where do I get gi
from, and what do I do to get meld
to work?
Version info:
* Windows: Version 10.0.19045.5131
* Cygwin: Updated 2024-12-05
* meld: 3.18.0-1
* Python3: 3.9.16
* Python3.6: 3.6.15
I can provide additional information as relevant, just ask in a comment.
einpoklum
(10753 rep)
Dec 5, 2024, 01:21 PM
• Last activity: Dec 20, 2024, 05:40 PM
Showing page 1 of 20 total questions