Author Topic: (solved) need help packaging peazip-gtk2  (Read 498 times)

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1171
(solved) need help packaging peazip-gtk2
« on: January 30, 2012, 12:37:39 AM »
Hi guys i try to update peazip-gtk2,

i downloaded the source and the spec and edited the spec for the new version.
but after building and installing i cant change the settings of peazip e.g. the language.

I have looked a bit around and found a folder .peazip-gtk2 in my home folder but last changes in this folder were last year. so it musst be the folder from the pre version.

Played a bit more and got it with the following to work

Code: [Select]
ln -s /home/<username>/.peazip-gtk2/conf.txt /usr/share/peazip-gtk2/res/

so i have to move the config file in the home folder and make a symbolic link.

Now my question how do i do this for all users in the spec file?

greets and thanks in advance
ghostbunny
« Last Edit: January 30, 2012, 07:44:19 AM by ghostbunny »
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1171
Re: need help packaging peazip-gtk2
« Reply #1 on: January 30, 2012, 12:56:08 AM »
found some informations more.

There is a file altconf.txt for alternativ path's to the config and bookmark file.

so is it possible to enter a path in this form without replacing through my own:

Code: [Select]
$HOME/.peazip-gtk2/

?

or is there a makro for this?
and how to create the folder in the user directory?

Code: [Select]
mkdir %{buildroot}/home/$USER???/.peazip-gtk2

?


The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: need help packaging peazip-gtk2
« Reply #2 on: January 30, 2012, 04:40:25 AM »
The user's config file should be replaced/updated on installation of the upgrade. Hmm...... perhaps make use of %post to remove the old config file?     

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1171
(solved) need help packaging peazip-gtk2
« Reply #3 on: January 30, 2012, 06:17:18 AM »
hello again,

i got it to work

the solution was a bit easier after studying the help file from the website so

i inserted the following

Code: [Select]
cat > %buildroot%{_datadir}/peazip-gtk2/res/altconf.txt <<EOF
[alternative configuration's path: specify a location for conf.txt and bookmarks.txt, using either absolute or relative path (use " and ' if needed); write "same" or let blank to not use an alternative configuration path]
appdata
EOF

So the hidden folder is automatically created while starting the first time.

Thanks for your help dudes

ghostbunny
« Last Edit: January 30, 2012, 07:44:41 AM by ghostbunny »
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD