solus-cold-storage / journal

GNU General Public License v2.0
9 stars 5 forks source link

install Journal outside evolve (Arch) #51

Closed greendragon2010 closed 9 years ago

greendragon2010 commented 9 years ago

I have the following error when I install journal: (process:30404): GLib-GIO-ERROR **: Settings schema 'com.evolve-os.journal' is not installed

But once I installed Budgie it fixed the issue.

zesterer commented 9 years ago

Yeah... @ryanleesipes you should probably make journal independent from Budgie with regards to GLib.Settings if you want to truly make Journal platform-agnostic.

greendragon2010 commented 9 years ago

I am working on a patch to check and see if com.evolve-os.journal exist in gsettings and if it doesn't created it so journal can run independent of Budgie. Any help will be appreciated since I've never used vala before.

ikeydoherty commented 9 years ago

This has nothing to do with Budgie.. You need to recompile your schemas after install.

@zesterer given this is in evolve-os whats the harm in using evolveos schemas??

@greendragon2010 sudo glib-compile-schemas /usr/share/glib-2.0/schemas

greendragon2010 commented 9 years ago

When I installed the package from on Arch from the aur that was the error I got.

My plan to fix this is to still use "com.evolve-os.journal" as the scheme since it is a evolve os project. I also know someone who had s schema issue to when they install journal from the aur but it was a slightly different error. I'm just trying to make sure the application will create the scheme if doesn't exist, so that it can be install on any distro with any desktop environment.

@ikeydoherty so I could have just done that after I installed the aur package, and that would have fixed the issue?

ikeydoherty commented 9 years ago

@greendragon2010 yup. So a package like budgie-desktop automatically does this post-install,however Journal does not, and that's where the issue is. So when you installed budgie, it recompiled all the schemas, including Journal's :)

greendragon2010 commented 9 years ago

@ikeydoherty could we make Journal do this so it is not an issue, or could we have a pop up and ask the user to do it if the scheme doesn't exist? Just playing with ideas.

ikeydoherty commented 9 years ago

@greendragon2010 problem is if the scheme doesn't exist, it will die. This is technically the correct behaviour. So it needs to either be corrected within the packaging, or within the package.

Now, when you have binary packages (outside of AUR) - a package has post installs to achieve this. i.e. its not done at build time. It should only be done on a non DESTDIR make install.

I'm not familiar enough with CMake (because I can't stand it) to be of help here, but I'm sure there are examples around of cmake gsettings integration.

greendragon2010 commented 9 years ago

Okay, I will look into cmake and see if I can figure it out. I have professor that understands cmake and make since he teaches C. I'll ask him if he knows or knows resources I can use to figure it out.

greendragon2010 commented 9 years ago

I believe this can be closed. If you follow the instruction to build and install then it will create the schemas for you. So people packaging this for other distros need to make sure this happens, and we can call this a packaging issue and not an application issue.

ryanleesipes commented 9 years ago

@greendragon2010 great work, yeah, looks like Justin may need to take a look at this, as I think he may maintain the Arch package.

Justinzobel commented 9 years ago

This is my bad. I made the AUR package. Will fix up asap

On Thu, 26 Mar 2015 5:51 am John Hamernick-Ramseier < notifications@github.com> wrote:

I believe this can be closed. If you follow the instruction to build and install then it will create the schemas for you. So people packaging this for other distros need to make sure this happens, and we can call this a packaging issue and not an application issue.

— Reply to this email directly or view it on GitHub https://github.com/evolve-os/journal/issues/51#issuecomment-86180484.

ryanleesipes commented 9 years ago

@Justinzobel would you like me to assign this bug to you, so you can close it when you are done?

ryanleesipes commented 9 years ago

Eh, nevermind, I can't assign it to you @Justinzobel - @ikeydoherty can Justin be included in the org?

ryanleesipes commented 9 years ago

There we go :)

Justinzobel commented 9 years ago

@greendragon2010 closing this off as i've updated the AUR install file, please re-open if it's not resolved.

Justinzobel commented 9 years ago

Just confirmed this working from an Arch live ISO without budgie.

greendragon2010 commented 9 years ago

I believe the issue is fixed, just tested in a systemd container.