You are not logged in.
Hello XFCE developers,
I'm relatively new to desktop application development and I've encountered a very strange issue that I can't figure out. I would really appreciate some guidance.
Here's what happened:
I compiled Thunar from source and replaced the system binary with my own compiled version. I made sure they were the same version.
After replacing it, I found that DBever (a database tool) would crash immediately upon launch.
After some investigation, I discovered that if I start my desktop session using dbus-launch startxfce4, DBever launches normally without any issues.
However, recently my colleague reported another problem: desktop notifications are not working when applications try to use D-Bus communication to show popup dialogs.
I'm wondering if there might be some D-Bus related configuration or compatibility issue when using a self-compiled Thunar? Could the compilation process have missed some D-Bus service files or configuration that the system package would normally include?
Any insights or suggestions would be greatly appreciated! Thank you very much 🙏
Best regards
```dockerfile
...
COPY thunar /tmp/thunar/
ARG XFCE4_THUNAR_BUILD_DEP="xfce4-dev-tools \
exo-devel \
libxfce4ui-devel \
gobject-introspection-devel \
libgudev-devel \
libnotify-devel \
"
RUN yum install -y $XFCE4_THUNAR_BUILD_DEP && \
ln -s /usr/bin/xdt-csource /usr/bin/exo-csource && \
rpm -e --nodeps Thunar
RUN cd /tmp/thunar/ && \
CFLAGS="-O2 -pipe -w" ./autogen.sh --disable-debug --prefix=/usr/ --enable-introspection=no && \
make clean && make -j4 && make install && \
rm -rf /tmp/thunar && \
yum remove -y $XFCE4_THUNAR_BUILD_DEP && \
yum clean all
```
Offline
Hello and welcome.
I'm not a thunar developer, but some questions/suggestions:
I compiled Thunar from source
Can I ask why? Were you introducing a patch into the program, and if so, what does the patch do?
```dockerfile
...COPY thunar /tmp/thunar/
ARG XFCE4_THUNAR_BUILD_DEP="xfce4-dev-tools \
exo-devel \
libxfce4ui-devel \
gobject-introspection-devel \
libgudev-devel \
libnotify-devel \
"
RUN yum install -y $XFCE4_THUNAR_BUILD_DEP && \
ln -s /usr/bin/xdt-csource /usr/bin/exo-csource && \
rpm -e --nodeps ThunarRUN cd /tmp/thunar/ && \
CFLAGS="-O2 -pipe -w" ./autogen.sh --disable-debug --prefix=/usr/ --enable-introspection=no && \
make clean && make -j4 && make install && \
rm -rf /tmp/thunar && \
yum remove -y $XFCE4_THUNAR_BUILD_DEP && \
yum clean all
```
It looks like you're compiling this in a docker container, as opposed to contaminating the main system. Is this correct?
At which point in this script do you copy over the new file(s)?
CFLAGS="-O2 -pipe -w" ./autogen.sh --disable-debug --prefix=/usr/ --enable-introspection=no && \
You might also need to specify libdir so it puts the library files in the correct location.
and replaced the system binary with my own compiled version.
Which binary or binaries do you copy over? Since you mention "yum", I'll assume Fedora - here is a list of files from the repository install.
After replacing it, I found that DBever (a database tool) would crash immediately upon launch.
What do the DBeaver debug logs say?
How is DBeaver related to or dependent on thunar?
Could the compilation process have missed some D-Bus service files or configuration that the system package would normally include?
https://packages.fedoraproject.org/pkgs … html#files.
After some investigation, I discovered that if I start my desktop session using dbus-launch startxfce4, DBever launches normally without any issues.
Sounds like a dbus issue then.
However, recently my colleague reported another problem: desktop notifications are not working when applications try to use D-Bus communication to show popup dialogs.
Is it just for thunar notifications that its not working, or for all notifications? If the latter, its a bigger problem than just thunar.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 539.84 KiB (Peak: 540.68 KiB) ]