rednotebook icon indicating copy to clipboard operation
rednotebook copied to clipboard

Reorganize rednotebook directories on Windows, remove webkit and xbel folders

Open jendrikseipp opened this issue 7 years ago • 10 comments

Originally reported by benjarvis at https://bugs.launchpad.net/bugs/777512 (2011-05-05T00:43:27Z):


I'm running version 1.1.4 on Windows 7 64-Bit. After install and opening for the first time, it creates the ".rednotebook" and "webkit" folders in "c:\Users*username*" and when closed it creates a .recently-used.xbel in this folder.

Can or shouldn't they be put in "c:\Users*username*\AppData\Roaming\RedNotebook" like other apps? Since Win7 doesn't respect the .file hidden attrib like Linux, they clutter up the user folder.

Thanks! Let me know if you need any other info.

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by benjarvis (2011-05-05T00:43:27Z):


jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by benjarvis (2011-05-05T00:43:46Z):


jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by jendrikseipp (2011-05-05T08:18:40Z):


Thanks for the report!

Concerning RedNotebook data: Are you sure "c:\Users*username*\AppData\Roaming\RedNotebook" is the correct directory for the files? Can you give any pointers to "official" guidelines for saving data, configs, etc.?

Concerning the webkit folder: You may have to file a bug at the webkit bugtracker.

Concerning .recently-used.xbel: There's some info here: http://developer.pidgin.im/ticket/8772. Apparently you need to add

gtk-recent-files-limit = 0
and/or gtk-recent-files-max-age = 0

to your gtkrc file (found under RedNotebook/etc/gtkrc I think). Does that make any difference?

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by benjarvis (2011-05-05T11:44:40Z):


Thanks for replying so soon!

To be honest I'm not 100% sure where the official proper place to put app prefs and settings in Win 7 is. However all of the commercial software I have (Ableton Live, Adobe products, dBpoweramp) and many of the F/OSS apps (VLC, Deluge, Mozilla) store their profiles/settings under "c:\users<username>\AppData\Roaming<Appname>" (i.e. vlc puts them in "c:\users<username>\AppData\Roaming\vlc"). I have come to expect to find them there, and I'm assuming (by the folder name) they get copied when a user logs on to another PC on a domain that uses "Roaming Profiles"

Is webkit creating that folder? I'm not sure I understand exactly.

Changing the gtkrc file didn't do anything. I tried each of the variable changes and both of them at once. No difference. Setting the file to hidden and read-only made it remain hidden for 1 instance of opening/closing, but returned (unhidden and read-enabled) after a 2nd instance of opening/closing.

I fear these may be upstream bugs. :(

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by jendrikseipp (2011-05-05T12:29:26Z):


Am 05.05.2011 13:44, schrieb pixel_juice:

Is webkit creating that folder? I'm not sure I understand exactly. yes, I think that's the case. What is inside that folder?

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by benjarvis (2011-05-05T21:39:56Z):


There is one folder called: "icondatabase" and inside that is a file called "WebpageIcons.db".

BTW, I forgot to mention I love your program. I'm using Windows now and when I moved from Ubuntu and I missed Lifeograph. But when I found your app and I forgot all about Lifeograph. Thanks for all the hard work!

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by jendrikseipp (2011-05-06T11:27:25Z):


Thanks, glad you like it :)

I opened a bug report for the webkit file at https://bugs.webkit.org/show_bug.cgi?id=60360 and asked about the gtk file at https://bugzilla.gnome.org/show_bug.cgi?id=305325.

Does someone know about a pythonic way to get the desired windows paths for the journal data ("c:\users<username>\AppData\Roaming\RedNotebook") generically for the different Windows versions?

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by benjarvis (2011-05-10T02:07:26Z):


I did a little looking and it looks like you can use the environment variable "APPDATA" to store the .rednotebook folder in the appropriate appdata folder.

http://stackoverflow.com/questions/626796/how-do-i-find-the-windows-common-application-data-folder-using-python

Maybe that will help.

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by jendrikseipp (2011-03-10T10:56:43Z):


indeed, that looks very helpful. Reorganization of the directories will have to be postponed to version 1.2 or 1.3 however since it implies some untrivial changes.

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp

Original comment by jendrikseipp (2011-08-09T17:34:00Z):


One "dirty" solution to this problem might be to remove those created files when RedNotebook exits.

jendrikseipp avatar Mar 20 '17 15:03 jendrikseipp