can't find gconf file

Asked by Legohain

I can't find the gconf file. I open sudo gconf-editor, navigate to apps -> rhy -> plugins, but there is no "fileorganizer" there. I can see, however, in the rhy program, under plugins, the fileorganizer, whith the checkbox checked.

backgroud:
I had previously a instalation of lubuntu, with rhy and fileorg installed. Dumped it (format) and installed fresh ubuntu 10.10. When i opened rhy, the plugin fileorg was already there. I have tryed uninstal and reinstal the plugin, and also purge rhy and install ir back again. Noone works.
However the dir ~/.gnome2/rhy/plugins/fileorg exists.
Note that rhy should be read as rhythmbox and fileorg as fileorganizer :)
Thanx a lot for your time and help.

Question information

Language:
English Edit question
Status:
Solved
For:
Rhythmbox Fileorganizer Edit question
Assignee:
lachlan-00 Edit question
Solved by:
lachlan-00
Solved:
Last query:
Last reply:
Revision history for this message
lachlan-00 (lachlan-00) said :
#1

the first thing i see is "sudo gconf-editor".

you're actually looking at root's gconf and not your user's.
i'd bet if you run it without sudo you'll be fine.

Revision history for this message
Legohain (vk-diego) said :
#2

Then, the plugin is not working. I hit "organize selection", but nothing happens. files stay where they were. The plugin worked on the lubuntu distro.
I have 10.10 ubuntu, and the partition where the files are as well as where they are supposed to be moved is NTFS, if that matters. I don't know what else could be.
Also there's a line in my gconf file that goes: log_path: /home/diego/fileorganizer.log if it matters.

Revision history for this message
Legohain (vk-diego) said :
#3

I have checked and it does not exist such file as /home/diego/fileorganizer.log in nautilus.
I may have deleted it by mistake (my bad). But in that case, i can't get to regen it, i have tried, as i said, reinstaling both the plugin and the whole rhy and it's unseccesful.
The mp3 are not moved, the file /home/diego/fileorganizer.log does not show up (I have checked that i can see invisible items)

Revision history for this message
lachlan-00 (lachlan-00) said :
#4

I haven't used an NTFS partition before but that is a possibility. I have an NTFS removeable hard drive i'll try out today.

These keys indicate where your file will end up.
/apps/rhythmbox/plugins/fileorganizer/file - output filename
/apps/rhythmbox/plugins/fileorganizer/folder - output folder path
/apps/rhythmbox/library_locations - base folder

So when you add those settings together the output should be:
library location + folder + file

Because you have used this before your fileorganizer key may have a 'dir' value. This value isn't used any more and can be removed.

A good way to test will be to backup a file somewhere and then copy it to a new folder in you music library.
.../music/testfolder/01-somesong.mp3

Find the file in rhythmbox and run organize selection.
If you run rhythmbox from a terminal by typing "rhythmbox -D fileorganizer" and email me a copy of the output after running the test that would be awesome.

Revision history for this message
Legohain (vk-diego) said :
#5

I have uninstalled the plugin u had (v1.0.2) and installed the v 1.0.3. I have removed the dir key.

My rhythmbox library location reads: file:///mnt/Disco/M%C3%BAsica
I'm spanish maybe the "ú" from "música" is what is causing problems?
The fileorganizer gconf file reads as follows:
Active (X)
digits 2
digits disc 1
digits track 2
folder $artist
file $title
log path /home/diego/fileorganizer.log

(as i said, i don't know what that .log file is, but i does not seem to exist in any case.)

I tried doing what you told me: i copied a mp3 straight into the library (/Música folder) and tryed to organize it. (It should have been moved to /Música/Robbie Williams) but nothing happened.

I have run the comand you told me and this is the output:

(rhythmbox:14778): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
(rhythmbox:14778): Rhythmbox-DEBUG: Received SaveYourself(SmSaveLocal, !Shutdown, SmInteractStyleNone, !Fast) in state idle
(rhythmbox:14778): Rhythmbox-DEBUG: Setting initial properties
(rhythmbox:14778): Rhythmbox-DEBUG: Sending SaveYourselfDone(True) for initial SaveYourself
(rhythmbox:14778): Rhythmbox-DEBUG: Received SaveComplete message in state save-yourself-done
(rhythmbox:14778): Rhythmbox-DEBUG: ayatana-plugin.vala:17: Rhythmbox - Goodbye Ayatana world

BTW, you told me to email you the uotput. If you prefer me to email you the info instead of posting it here, tell me.

Revision history for this message
lachlan-00 (lachlan-00) said :
#6

that character is actually a very probable cause. when i added compilation support i noticed a lot of issues with special characters. it's something that only came up a couple of days ago.

because the english keyboard is closer to the URL standard i didn't see a lot of problems but i would think the folder name is a possible cause. i've started working on this and i'll update the question when i've fixed it.

To start with i'll test out a song with that character as well and let you know. :)
Thanks for filing this question too!

Revision history for this message
Legohain (vk-diego) said :
#7

I have changed the name on the folder to /Musica which caused rhythmbox to lost all the files and add them again. After the process was completed, i tried again to orzanize selection. I choose a file without any spacial character, neither in the title nor in the artist. It did not work, so i think it's not because of the character issue. Or it can be just 1 problem of the several i have.
In any case, something's still wrong.

BTW: thx a lot for the help with this! :)
Glad to answer any further question!

Revision history for this message
lachlan-00 (lachlan-00) said :
#8

there should be test in that terminal output. something is very wrong.

i'm going to have to look at a script or something that you can run to check everything is working. i think there's no log file because it is created when you right click and press organize selection.

what it seems to be is that it's not running at all because there is no error.
let me look at this some more and get back to you.

Revision history for this message
Legohain (vk-diego) said :
#9

Ok, when you want me to do something else like running some command or looking for whatever. just tell me here, i'll do it asap.
Again thx for al the work your taking into this.

Revision history for this message
lachlan-00 (lachlan-00) said :
#10

in the latest trunk i've added code that will push a notification when it's finished processing.

delete the folder /home/diego/.gnome2/rhythmbox/plugins/fileorganizer and follow these commands.
we'll remove the old version and download the newest version:

(open a terminal)

cd ./gnome2/rhythmbox/plugins
bzr branch lp:rb-fileorganizer fileorganizer

(it should say "Branched 24 revision(s).")

rhythmbox -D fileorganizer

Select any file (or a test file copy) and run organize selection.
A notification should come up when it's done. 'Fileorganizer has processed your selection'
quit rhythmbox and select everything in the terminal (edit -> select all) copy and paste here.

have a look for that log file again as well and post back.

Revision history for this message
Legohain (vk-diego) said :
#11

This is a mix of the output and my own comments and translations into english (my SO is spa). My comments are flagged like "((blabla))" and the translations are "spanish thing (translation)"

$ cd ./gnome2/rhythmbox/plugins
No existe el fichero o directorio (file or folder does not exist)
((I fixed it like that:))
$ cd /home/diego/.gnome2/rhythmbox/plugins
~/.gnome2/rhythmbox/plugins$ bzr branch lp:rb-fileorganizer fileorganizer
El programa «bzr» no está instalado actualmente. Puede instalarlo escribiendo:
sudo apt-get install bzr (program bzr not instaled. You can install it by writing apt-get blabla...)
diego@diego-1000HD:~/.gnome2/rhythmbox/plugins$ sudo apt-get install bzr
[asks for root pasword]
[asks for instalation confirmation (5 packages to install)] yes
~/.gnome2/rhythmbox/plugins$ bzr branch lp:rb-fileorganizer fileorganizer
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 25 revision(s).

I stopped here becuase you said it should say branched 24 revisions and my output was 25.
Shall i go on with "rhythmbox -D fileorganizer" and the organize selection try?

Revision history for this message
lachlan-00 (lachlan-00) said :
#12

sorry i updated the trunk to revision 25 in between answering your question.
just added a title to the notification.

Revision history for this message
Legohain (vk-diego) said :
#13

diego@diego-1000HD:~$ rhythmbox -D fileorganizer

(rhythmbox:9469): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
(rhythmbox:9469): Rhythmbox-DEBUG: Received SaveYourself(SmSaveLocal, !Shutdown, SmInteractStyleNone, !Fast) in state idle
(rhythmbox:9469): Rhythmbox-DEBUG: Setting initial properties
(rhythmbox:9469): Rhythmbox-DEBUG: Sending SaveYourselfDone(True) for initial SaveYourself
(rhythmbox:9469): Rhythmbox-DEBUG: Received SaveComplete message in state save-yourself-done

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

(rhythmbox:9469): GLib-CRITICAL **: g_str_has_suffix: assertion `str != NULL' failed

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

(rhythmbox:9469): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Traceback (most recent call last):
  File "/home/diego/.gnome2/rhythmbox/plugins/fileorganizer/fileorganizer.py", line 88, in organize_selection
    source = shell.get_property("selected_page")
TypeError: object of type `RBShell' does not have property `selected_page'
(rhythmbox:9469): Rhythmbox-DEBUG: ayatana-plugin.vala:17: Rhythmbox - Goodbye Ayatana world

diego@diego-1000HD:~$
(the file still not moved to it's right place)

Revision history for this message
Best lachlan-00 (lachlan-00) said :
#14

ah ha!

TypeError: object of type `RBShell' does not have property `selected_page'

means you must be using an older version of rhythmbox (< 0.13)

if you open:
/home/diego/.gnome2/rhythmbox/plugins/fileorganizer/fileorganizer.py

And in this code section change this line.

# Organize selection
    def organize_selection(self, action, shell):
        source = shell.get_property("selected_page") #<-----OLD LINE
        source = shell.get_property("selected_source") #<-----NEW LINE

you'll be fine.

Revision history for this message
Legohain (vk-diego) said :
#15

It works fine now. However, i'm using Rhythmbox 0.13.1

Revision history for this message
Legohain (vk-diego) said :
#16

Thanks derWaarden, that solved my question.

Revision history for this message
lachlan-00 (lachlan-00) said :
#17

glad to hear it. you scared me that i couldn't answer my first question ;)

Revision history for this message
Legohain (vk-diego) said :
#18

Don't worry at all. Even if you could not, it's not like you're my employee or something! :)
Thanks for everything, dude.