Xyrio / RSSOwlnix

RSSOwlnix is a fork of RSSOwl a powerful application to organize, search and read your RSS, RDF & Atom news feeds in a comfortable way. Highlights are saved searches, notifications, filters, fast fulltext search and a flexible, clean user interface.
Eclipse Public License 1.0
237 stars 22 forks source link

First addon install (or reinstall after program update) changes the user home config.ini to default values #5

Open Joel889 opened 6 years ago

Joel889 commented 6 years ago

Thank you for picking up this project!

Are addons no longer supported? I was using a 6KB offline addon, which adds the option File > Work Offline, to limit RSSOwl to the cached article feed. Using Wireshark, I noticed that RSSOwl makes an online request every time one would click on an article. This was true even for text only articles, presumably to check whether the article has been updated since downloading the feed.

This behavior is also documented here: http://tutorial.rssowl.org/ht_offline.html

"When online, RSSOwl reloads news summaries and retains them in memory each time you select a newsfeed."

Is it possible to run addons? I tried putting it into "p2" and also into the "plugins" folder. Or can an offline mode be implemented?

P.S.: Your sourceforge forum post regarding placing java inside the installation folder without having to install it is a great tip! Perhaps adding this to the main page would be helpful to many users.

Xyrio commented 6 years ago

i tried some out and they seem to work. on the release page i try to explain that you have to go to the menu and manually select the unpacked folder of update_site_addons_release_2017_12_10.zip: under Help / Install New Software... add a new site by pointing to the unzipped folder containing the site.xml for example like: file:/C:\update_site_addons

Joel889 commented 6 years ago

Where do I get the site.xml file? All I have is the addon (.jar file), and I was able to find feature.xml from the features folder. I tried pointing it to the jar file, feature.xml file, and also renaming the feature.xml to site.xml.

Feature.xml has the following content:

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="org.rssowl.feature.contrib.offline"
      label="Offline Mode"
      version="1.0.0"
      provider-name="RSSOwl.org">

   <description>
      This add-on will add a new entry to the File menu to switch to an offline modus where feeds will no longer update or attachments downloaded.
   </description>

   <url>
      <update label="RSSOwl.org" url="http://boreal.rssowl.org/update/addons/"/>
   </url>

   <requires>
      <import plugin="org.eclipse.ui"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.rssowl.ui" version="2.1.2" match="greaterOrEqual"/>
      <import plugin="org.rssowl.core"/>
   </requires>

   <plugin
         id="org.rssowl.contrib.offline"
         download-size="5"
         install-size="0"
         version="1.0.0.201108111128"
         unpack="false"/>

</feature>
Xyrio commented 6 years ago

on the release page where u downloaded 2.4.0 is also a download for the updated addons including the offline mode one: https://github.com/Xyrio/RSSOwl/releases the mentioned update_site_addons_release_2017_12_10.zip file contains what you need.

then just follow the steps on the release page about the update site for addons.

Joel889 commented 6 years ago

Thank you! I got it to work, but noticed the following: 1) The addon installation would fail unless the .rssowl2 profile folder was on drive F:. I had changed the profile folder's relative location to be stored in the same folder as the main program, and all feed items were always available regardless of the drive's drive letter.

2) After installing the addon, a new config.ini was created in folder "config240" (the old version is still in the "configuration" folder), but the profile path in the new config.ini was restored back to default.

Xyrio commented 6 years ago

yes you need to change the configuration\config.ini so that it uses the .rssowl2 in you local folder. another difference to 2.2.1 is that plugins are now installed in the .rssowl2-beta (or however you changed it) folder. i intentionally changed folders in case there are bugs. config221 is not used. old .rssowl2 folder is now .rssowl2-beta as mentioned.

Joel889 commented 6 years ago

I guess what I'm saying is that I changed "configuration/config.ini" when I first started using your version and everything was working. But as soon as I installed an addon, all my settings and feeds were (seemingly) lost, because it created another profile somewhere else. I then had to go "config240/config.ini" and point it back to my profile.

So it seems that if no addons are installed, "configuration/config.ini" is being used. As soon as addons are installed "config240/config.ini" is being used.

Xyrio commented 6 years ago

yea i tried it now and the very first time you install an addon it writes the default paths to the .rssowl2-beta\config240\config.ini you need to correct those before you restart. afterwards it doesnt seem to do it anymore. even when uninstalling all addons an then installing a first addon again it stays on the changed path.

Joel889 commented 6 years ago

I tried version 2.6, but still cannot get "Offline Mode" to work in a custom user directory. The initial installation works, but when changing the location of the configuration folder, "offline mode" located in the menu bar disappears. Reinstalling fails, because it says that the addon is already installed.

"Offline Mode" + custom configuration is working fine in the original version 2.21.

Xyrio commented 6 years ago

there is a second config.ini inside the home folder: .rssowlnix-beta\config\config.ini when the addon is (re)installed the config.ini inside the custom homefolder is reset. if you change the 2 path entries again it should work.

more #2

ps: http://tutorial.rssowl.org/ht_offline.html is for rssowl 1.x i think.

Joel889 commented 5 years ago

I tried that several times but it doesn't work.

I did get it working in a version prior to 2.6.

To recap, version < 2.6 can only do one of the following (but not both at the same time): a) Set a custom profile folder b) Run plugins.

Xyrio commented 5 years ago

i am using 2.7.0 with modified path with the notes addon myself so i know it works.

so here are the steps (just now did it like this):

it needs this fix only once, somehow it remembers now but only until a new version triggers addon reinstall. after that need to fix the file in home folder again. (maybe reinstall also changes the one in the install folder, i dont remember).

Joel889 commented 5 years ago

Thank you. I followed your steps and got it working again. I wish there was an easier way to save the profile folder within the application for portable applications.