| Issue 31: | Notes do not get saved | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Run Glista and edit a note. 2. While on the note edit panel, quit Glista (I used pkill -9 and -15) What is the expected output? What do you see instead? The notes should be saved. However, the notes do not get saved. If however, you click outside the note panel on to another item and then quit, the note is saved. What version of the product are you using? On what operating system? Glista 0.4 under Debian Testing with DWM. Please provide any additional information below. I am not much of a programmer but there might be a way to save notes instantaneously? |
|
,
Nov 30, 2008
I don't want to save to disk whenever you type something, that would be too i/o intensive (esp. if one day we will have other storage modules like on-line web service to store the lists). I don't think you can expect data to be saved when you SIGKILL (-9) a program. About -15, I can try to capture the signal and do a normal termination instead of immediately existing - but I don't think that would be wise. The note should be saved when you just exit the program normally (i.e. right click the status icon and select "Quit") - if it doesn't this is a bug. However I don't think it's a major issue when you actually pkill a program. Is there a reason why you were pkilling it?
Owner: shahar.evron
|
|
,
Nov 30, 2008
You're right about saving the notes whenever something is typed, it will be too I/O intensive. As for the quitting process, I don't use GNOME or KDE so I don't have the status icon displayed anywhere. I use a tiling window manager called DWM. To quit an application I press Alt+Shif+C (which is the standard way in DWM). I think this does a pkill -15 although I am not too sure. Looking at source code for DWM there is a function called killclient that calls XKillClient() from the X11 calls. I am not sure what the best approach is but maybe as you suggested, capturing pkill -15 and do a normal termination. I can also try capturing a debugging session if you like although I am not too familiar with gdb. |
|
,
Nov 30, 2008
I don't know DWM, but just out of curiosity, is there no "X" button to normally close the Window? If there is, you can run Glista (if you build it from svn) with the -T flag so that it doesn't use the system tray - this way when you close the window the program actually exits. |
|
,
Nov 30, 2008
There is no X button in DWM. Here is a link to a screenshot of it. http://www.suckless.org/dwm/screenshots/dwm-20070930.png Anyways I tried building glista from svn (rev 106) and it compiles and builds successfully but I get the following error: amitu@debian:~/src/glista-read-only$ glista -T Error loading config file: [4] No such file or directory Using default configuration. (glista:17685): Gtk-CRITICAL **: gtk_buildable_custom_tag_start: assertion `GTK_IS_BUILDABLE (buildable)' failed Unable to read icon data file: /usr/local/share/glista/glista-icons.xml Unable to initialize UI. |
|
,
Dec 01, 2008
Odd, I am unable to reproduce this - do you actually have the file /usr/local/share/glista/glista-icons.xml ? Can you attach it, and also the output of `ls -lR /usr/local/share/glista/` ? Thanks. |
|
,
Dec 05, 2008
any news? |
|
|
|