lachlan-00 / rb-fileorganizer

Rhythmbox File Organizer - looking for a maintainer.
Other
30 stars 11 forks source link

menu item disappears #5

Closed BrianZbr closed 10 years ago

BrianZbr commented 10 years ago

The "Organize Selection" option disappears from the right-click menu every time I restart Rythmbox. In order to bring it back, I have to disable the plugin, restart Rythmbox, and then re-enable the plugin.

lachlan-00 commented 10 years ago

run rhythmbox this way and paste the results back

rhythmbox -d fileorganizer

BrianZbr commented 10 years ago

The output is massive and I'm not really sure how to capture it all. I tried sending it to a text file with "rhythmbox -d fileorganizer > output.txt" but all the file says is: "Unable to open ~/.mtpz-data for reading, MTPZ disabled." I have no idea what that means. Let me know if you know a better way to capture the complete output.

Here is what was left in my terminal window when I closed Rhythmbox: http://pastebin.com/PRdeZvwU

I did it again and interrupted it with Ctrl-C, to try and get stuff from earlier in the loading process: http://pastebin.com/NwrD7sxP

On Thu, Aug 7, 2014 at 9:08 PM, lachlan notifications@github.com wrote:

run rhythmbox this way and paste the results back

rhythmbox -d fileorganizer

— Reply to this email directly or view it on GitHub https://github.com/lachlan-00/rb-fileorganizer/issues/5#issuecomment-51552642 .

lachlan-00 commented 10 years ago

i'm really sorry i forgot the debug for a specific plugin is capital D.

rhythmbox -D fileorganizer

that means run in debug mode for a specific item. (ie a plugin of part of RB) that should be a lot shorter.

BrianZbr commented 10 years ago

Ah ha! Here you go:

\ (rhythmbox:1891): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(rhythmbox:1891): Gtk-CRITICAL **: gtk_css_provider_load_from_path: assertion 'path != NULL' failed (10:16:54) [0x9124dc0] [Fileorganizer.do_activate] /usr/lib/rhythmbox/plugins/fileorganizer/fileorganizer.py:85: activating Fileorganizer

(rhythmbox:1891): GLib-GObject-CRITICAL **: object SoupServer 0x9a56bb0 finalized while still in-construction

(rhythmbox:1891): GLib-GObject-CRITICAL **: Custom constructor for class SoupServer returned NULL (which is invalid). Please use GInitable instead.

(rhythmbox:1891): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(rhythmbox:1891): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(rhythmbox:1891): Gtk-CRITICAL **: gtk_size_group_remove_widget: assertion 'g_slist_find (priv->widgets, widget)' failed

(rhythmbox:1891): Gtk-CRITICAL **: gtk_size_group_remove_widget: assertion 'g_slist_find (priv->widgets, widget)' failed (10:18:35) [0x9124dc0] [Fileorganizer.do_deactivate] /usr/lib/rhythmbox/plugins/fileorganizer/fileorganizer.py:103: deactivating Fileorganizer

(rhythmbox:1891): Gtk-WARNING **: mnemonic "s" wasn't removed for widget (0x91f03f0) Unable to open ~/.mtpz-data for reading, MTPZ disabled.

On Sun, Aug 10, 2014 at 6:44 PM, lachlan notifications@github.com wrote:

i'm really sorry i forgot the debug for a specific plugin is capital D.

rhythmbox -D fileorganizer

that means run in debug mode for a specific item. (ie a plugin of part of RB) that should be a lot shorter.

— Reply to this email directly or view it on GitHub https://github.com/lachlan-00/rb-fileorganizer/issues/5#issuecomment-51729873 .

lachlan-00 commented 10 years ago

Thanks, i see the error is on line 103. (/usr/lib/rhythmbox/plugins/fileorganizer/fileorganizer.py:103: deactivating Fileorganizer )

did you install from from the fossfreedom repo or directly from here? I've always built the plugin to run as a local user (/home/user/.local/share/rhythmbox/plugins/fileorganizer) so i can see this version is a system install.

BrianZbr commented 10 years ago

I installed it from the fossfreedom repository.

On Mon, Aug 11, 2014 at 9:02 PM, lachlan notifications@github.com wrote:

Thanks, i see the error is on line 103. (/usr/lib/rhythmbox/plugins/fileorganizer/fileorganizer.py:103: deactivating Fileorganizer )

did you install from from the fossfreedom repo or directly from here? I've always built the plugin to run as a local user (/home/user/.local/share/rhythmbox/plugins/fileorganizer) so i can see this version is a system install.

— Reply to this email directly or view it on GitHub https://github.com/lachlan-00/rb-fileorganizer/issues/5#issuecomment-51861485 .

lachlan-00 commented 10 years ago

possibility 1

first thing i see is that it doesn't look like it's loaded the config.ui file correctly. I can't vouch for the fossfreedom plugin as i don't know what changes are made, but it's possible that it's looking for the local version.

copy the config.ui file from the plugin to: $HOME/.local/share/rhythmbox/plugins/fileorganizer/

Test that out.

possibility 2

it could be that the system version managed by David is unable to create the folders/files for the plugin. it could also be that the blank template file isn't being found on activation to give you default settings.

The error i see is that it's trying to read the config and UI file but isn't getting the details.

Check that you have the default conf file called fo.conf: gedit $HOME/.local/share/rhythmbox/plugins/fileorganizer/fo.conf

paste this into the file if it's empty: [conf] cover_enabled = True cover_names = Folder.jpg,folder.jpg,Cover.jpg,cover.jpg,Front.jpg,front.jpg,Front Cover.jpg cleanup_empty_folders = True cleanup_enabled = True log_path = .fileorganizer.log log_enabled = True preview_mode = False update_tags = True

possibility 3

Something is wrong in the launchpad version managed by fossfreedom. file a bug on launchpad for david to check referencing this bug here.

possibility 4

part of me thinks that there are some semi-hardcoded options in the plugin. if you install the mater.zip from here and extract the contents of the rb-fileorganizer-master folder to: $HOME/.local/share/rhythmbox/plugins/fileorganizer it will all work; i think.

fossfreedom commented 10 years ago

BTW - I cannot reproduce this - installed fileorganizer from the PPA - started RB and enabled. The version in the PPA is the same as the repo here. I'm testing on 64bit 14.04.

Right click in library view - file-organizer menu option is available. Close RB and restart. Right click in library view - file-organizer menu option is still available.

BrianZbr commented 10 years ago

I'm on 32bit if that matters. I also have the CoverArt browser installed from that same repository, don't know if that could be interfering.

I haven't yet tried any of the suggested solutions to see if they work for me, but will post here if they do.

On Tue, Aug 12, 2014 at 5:40 PM, David Mohammed notifications@github.com wrote:

BTW - I cannot reproduce this - installed fileorganizer from the PPA - started RB and enabled. The version in the PPA is the same as the repo here. I'm testing on 64bit 14.04.

Right click in library view - file-organizer menu option is available. Close RB and restart. Right click in library view - file-organizer menu option is still available.

— Reply to this email directly or view it on GitHub https://github.com/lachlan-00/rb-fileorganizer/issues/5#issuecomment-51981642 .

BrianZbr commented 10 years ago

Possibility #4 (d/ling the zip file and manually copying the files) seems to have done the trick, thank you.

BrianZbr commented 10 years ago

Problem came back again; the "organize" option suddenly dissapeared from the right-click menu. Nobody else seems to have this problem?