Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Joel889 opened this issue Feb 6, 2018 · 12 comments
Labels

Comments

@Joel889
Copy link

Joel889 commented Feb 6, 2018

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
Copy link
Owner

Xyrio commented Feb 6, 2018

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
Copy link
Author

Joel889 commented Feb 7, 2018

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
Copy link
Owner

Xyrio commented Feb 7, 2018

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
Copy link
Author

Joel889 commented Feb 8, 2018

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
Copy link
Owner

Xyrio commented Feb 8, 2018

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
Copy link
Author

Joel889 commented Feb 8, 2018

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
Copy link
Owner

Xyrio commented Feb 9, 2018

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.

@Xyrio Xyrio added the bug label Feb 9, 2018
@Xyrio Xyrio changed the title Addons no longer working (e.g. Offline Mode)? First addon install changes the user config.ini to default values Feb 9, 2018
@Xyrio Xyrio mentioned this issue Oct 23, 2018
@Joel889
Copy link
Author

Joel889 commented Nov 6, 2018

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
Copy link
Owner

Xyrio commented Nov 6, 2018

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.

@Xyrio Xyrio changed the title First addon install changes the user config.ini to default values addon (re)install changes the user home config.ini to default values Nov 6, 2018
@Xyrio Xyrio changed the title addon (re)install changes the user home config.ini to default values First addon install (or reinstall after program update) changes the user home config.ini to default values Nov 6, 2018
@Joel889
Copy link
Author

Joel889 commented May 16, 2019

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
Copy link
Owner

Xyrio commented May 17, 2019

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):

  • modify 2 lines in RSSOwlnix\configuration\config.ini
    1. osgi.instance.area.default=@user.home/.rssowlnix-beta-bla
    2. osgi.configuration.area=@user.home/.rssowlnix-beta-bla/config
  • now rssowl uses the modified path
  • install addon(s) (installs it to the current path which is the modified path)
  • after restart it goes to wrong path
  • modify 2 lines in %userprofile%\.rssowlnix-beta-bla\config\config.ini
  • now rssowl uses again modified path

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
Copy link
Author

Joel889 commented Jun 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants