ransome1 / sleek

todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)
https://github.com/ransome1/sleek/wiki
MIT License
1.28k stars 99 forks source link

'Error: ENOENT: no such file or directory' on starting sleek #687

Open mdbdb opened 3 months ago

mdbdb commented 3 months ago

'Error: ENOENT: no such file or directory' on starting sleek

App Version: 2.0.11

Platform: Linux

Installation Method: App Store (Flatpak)

Expected Behavior: Sleek opens the last opened file when it starts. All tasks are displayed.

Actual Behavior: Sleek opens the last opened file when it starts. Sometimes I get this message: ENOENT: no such file or directory

When I start sleek via the console, I get these messages:

flatpak run com.github.ransome1.sleek
[2:0323/064608.180261:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Datei oder Verzeichnis nicht gefunden`
Gtk-Message: 06:46:08.277: Failed to load module "canberra-gtk-module"
[2:0323/064608.298509:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Datei oder Verzeichnis nicht gefunden
[2:0323/064608.298538:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: Datei oder Verzeichnis nicht gefunden
Styles injected found in CSS file: /home/rhs/.var/app/com.github.ransome1.sleek/config/sleek/userData/customStyles.css
[Error: ENOENT: no such file or directory, open '/run/user/1000/doc/8b60c039/todo.txt'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/run/user/1000/doc/8b60c039/todo.txt'
}
[Error: ENOENT: no such file or directory, open '/run/user/1000/doc/8b60c039/todo.txt'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/run/user/1000/doc/8b60c039/todo.txt'
}
[2:0323/064623.026280:ERROR:browser_main_loop.cc(276)] GLib-GObject: invalid cast from 'GtkFileChooserNative' to 'GtkWidget'
[2:0323/064626.041159:ERROR:browser_main_loop.cc(276)] GLib-GObject: ../gobject/gsignal.c:2778: instance '0x31ec019c02e0' has no handler with id '3194'

The tasks in my todo.txt are not displayed.

Steps to Reproduce:

The error occurs sporadically. I can't reproduce the error.

ransome1 commented 3 months ago

@mdbdb thanks for reporting this. Can I ask you if you're using drag and drop in order to open the file in sleek? Or are you using the file chooser window?

mdbdb commented 3 months ago

@mdbdb thanks for reporting this. Can I ask you if you're using drag and drop in order to open the file in sleek? Or are you using the file chooser window?

I've never used drag and drop to open my todo.txt file. I'm using the chooser window.

ransome1 commented 2 months ago

It's really hard to say, it looks like something something sandbox. But I havn't able to reproduce this yet hence I cannot provide you solution at this point.

In the meantime, did you stumble upon anything else out of the ordinary which can help me reproducing this?

mdbdb commented 2 months ago

No, I'm sorry. I don't know what causes the error and unfortunately I can't reproduce it. But it still happens at irregular intervals.

mdbdb commented 2 months ago

About two weeks ago, I swapped the Flatpak version of Sleek for the AppImage version. Since this change, the error has no longer occurred. It seems to be related to the Flatpak version.