Leafpad slow startup

After installing Fedora 32 XFCE spin, the leafpad editor takes 30 seconds to open a window. It opened almost instantaneously in Fedora 30. I ran the application from the terminal and it did not produce any errors. Any suggestions to troubleshoot this further? Thanks!

1 Like

Hi @bencollver.  The Any:

  1. Switch to emacs.
  2. Try as new test-user.
  3. HDD?  File system fragmentation, maybe.
  4. Some people mentioned not once a ‘strace’ tool, whatever it is.

Thank you for these suggestions.

  1. No thanks.

  2. Same problem.

  3. No, because other apps including mousepad are starting normally.

  4. Strace reveals the following:

    1592075414 connect(5, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, 110) = 0
    1592075414 getpid() = 18210
    1592075414 geteuid() = 1000
    1592075414 getegid() = 1000
    1592075414 getpid() = 18210
    1592075414 geteuid() = 1000
    1592075414 getegid() = 1000
    1592075414 sendmsg(5, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0", iov_len=1}], msg_iovlen=1, msg_control=[{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, cmsg_data={pid=18210, uid=1000, gid=1000}}], msg_controllen=32, msg_flags=0}, MSG_NOSIGNAL) = 1
    1592075414 sendto(5, “AUTH\r\n”, 6, MSG_NOSIGNAL, NULL, 0) = 6
    1592075414 recvfrom(5, “REJECTED EXTERNAL\r\n”, 4096, 0, NULL, NULL) = 19
    1592075414 sendto(5, “AUTH EXTERNAL ________\r\n”, 24, MSG_NOSIGNAL, NULL, 0) = 24
    1592075414 recvfrom(5, “OK _____________________________”…, 4096, 0, NULL, NULL) = 37
    1592075414 sendto(5, “NEGOTIATE_UNIX_FD\r\n”, 19, MSG_NOSIGNAL, NULL, 0) = 19
    1592075414 recvfrom(5, “AGREE_UNIX_FD\r\n”, 4096, 0, NULL, NULL) = 15
    1592075414 sendto(5, “BEGIN\r\n”, 7, MSG_NOSIGNAL, NULL, 0) = 7
    1592075414 write(8, “\1\0\0\0\0\0\0\0”, 8) = 8
    1592075414 eventfd2(0, EFD_CLOEXEC|EFD_NONBLOCK) = 7
    1592075414 write(7, “\1\0\0\0\0\0\0\0”, 8) = 8
    1592075414 write(8, “\1\0\0\0\0\0\0\0”, 8) = 8
    1592075414 poll([{fd=7, events=POLLIN}], 1, 25000) = 1 ([{fd=7, revents=POLLIN}])
    1592075414 read(7, “\1\0\0\0\0\0\0\0”, 16) = 8
    1592075414 poll([{fd=7, events=POLLIN}], 1, 25000) = 0 (Timeout)
    1592075439 write(7, “\1\0\0\0\0\0\0\0”, 8) = 8
    1592075439 futex(0x55f01ce2b360, FUTEX_WAKE_PRIVATE, 2147483647) = 0
    1592075439 close(7) = 0
    1592075439 write(8, “\1\0\0\0\0\0\0\0”, 8) = 8

This 30 second delay matches the following (Ubuntu!) bug report:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016

The Ubuntu bug report includes the following temporary workaround:
$ /usr/bin/dbus-launch --exit-with-session leafpad

This workaround eliminates the delayed start on my system, but i don’t understand the problem well enough to fix it permanently in Fedora.

The Ubuntu bug report appeared to result from a distribution configuration error related to dbus and GTK.

Would you be willing to suggest next steps?

Just for your information, Linux filesystems almost never get fragmented, which is why Fedora doesn’t provide a defrag tool. And even if it did, it’s hardly likely that one and only one program is going to be affected by it.

IDK.  What about another Ubuntu suggestion:

  1. (Permanent). Install “sudo apt-get install appmenu-gtk2-module” and restart.

Is there such package in repos…?


Hi @sideburns; a good joke.  Probably, that is the reason why literally all L. filesystems have such tools (aren’t all? btrfs included).

Thank you for your last response. Unfortunately, i was not able to find a package named appmenu-gtk2-module in the Fedora repos.

I’m not joking, vits95. Name me one defrag tool for an ext4 filesystem. To understand why, read this article about Linux and Defrag.

1 Like

e4defrag

Have you read the article I linked to on why you don’t want to do that?

I know all about fragmentation on extended file systems, I was merely obliging you.

Thanks for the reading.  I should admit that it’s more likely is that way.  (Yet i believing that those defragmentation tools were implemented not by fools too.)

The latest updates resolve my issue. Now leafpad starts normally.

The discussion about defragging Linux filesystems did not help me in any way.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.