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:

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.