It seems to work now.
Thanks a lot.
Regards
Jose
# for every user in /home/ ...
for HOME_U in /home/*?; do
# obtain the username
USER=$( basename $HOME_U )
if [ -d /home/$USER/.config/$PACKAGE/ ]; then
rm -rf /home/$USER/.config/$PACKAGE/
fi
done
rm -rf /home/$USER/.config//Katuuqed wrote:ps3mediaserver package removes .config/ directory for all users
I've found that this package explicitly uninstalls ps3mediaserver configuration files in all user directories
roseway wrote:Purge deletes the package and its central configuration, but doesn't remove any user data.
-r, --remove, -P, --purge package...|-a|--pending [...]
-P or --purge removes everything, including conffiles.
[...]
Note: some configuration files might be unknown to dpkg because they are created and handled separately through the configuration scripts. In that case, dpkg won't remove them by itself, but the package's postrm script (which is called by dpkg), has to take care of their removal during purge.
Of course, this only applies to files in system directories, not configuration files written to individual users' home directories.
ps3mediaserver (1.51.0+git+mencoder34587-3) oneiric; urgency=low
* Double quotes in postinst
ps3mediaserver (1.51.0+git+mencoder34587-2) oneiric; urgency=low
* Fix config directories in postrm script
* Allow home directories with spaces in postinst scriptRPG_Master wrote:Thanks for making this PPA! Everything is looking good, music streaming wise. I haven't messed with video yet. But I am having one issue. I'm trying to play some multi-channel flac files, but I keep getting "File Corrupted". What can I do to fix this?
Katuuqed wrote:purge should remove only system configs, e.g. files in /etc/ps3mediaserver/ - it shouldn't remove user's configuration files, see Debian forums:roseway wrote:Purge deletes the package and its central configuration, but doesn't remove any user data.
Also man dpkg is quite clear about this:-r, --remove, -P, --purge package...|-a|--pending [...]
-P or --purge removes everything, including conffiles.
[...]
Note: some configuration files might be unknown to dpkg because they are created and handled separately through the configuration scripts. In that case, dpkg won't remove them by itself, but the package's postrm script (which is called by dpkg), has to take care of their removal during purge.
Of course, this only applies to files in system directories, not configuration files written to individual users' home directories.
I just recommend sticking to the standard behaviour. Anyway thanks for fixing this.
happy.neko wrote:[...] And configs in ~/.config/ps3mediaserver are installed with postinst.
Katuuqed wrote:Other packages, e.g. bash, install conffiles into /etc/skel (as ps3mediaserver does) but don't touch home directories of existing users. If the application needs configuration in user's home, it can recreate it by itself or copy it from central location such as /etc/skel - but this happens only if the user executes the application.
happy.neko wrote:Jose1701 wrote:Well, with older versions the sound was given to my av-receiver and it shows DolbyDigital. Also the ps3 shows actually lpcm and not dolbydigital. dts files were working.
You can either disable "Use LPCM for audio" on common transcode settings to enable AC3 transcoding or enable "Keep AC3 track (remux)".
[StartPlaying Event] INFO 2012-04-11 01:03:39.613 renderer: 192.168.0.230, file: /media/movies/Movies/BBC/Planet Earth/02 - Mountains.mpg
[StopPlaying Event] INFO 2012-04-11 01:03:51.015 renderer: 192.168.0.230, file: /media/movies/Movies/BBC/Planet Earth/02 - Mountains.mpgcat /root/.config/ps3mediaserver/PMS.conf
folders = /media/movies/Movies/,/media/tvshows/TV Shows/,/media/1-500/Music/,/var/www/downloads/Complete
hostname =
port =
language =
thumbnails = true
thumbnail_seek_pos = 1
nbcores = 4
turbomode = false
minimized = true
hidevideosettings = false
usecache = false
charsetencoding = 850
engines = pmsencoder,mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux
autoloadsrt = true
avisynth_convertfps = true
avisynth_script = #AviSynth script is now fully customisable !\u0001#You must use the following variables (\"clip\" being the avisynth variable of the movie):\u0001#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\u0001#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file\u0001#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\u0001#Be careful, the custom script MUST return the clip object\u0001<movie>\u0001<sub>\u0001return clip
transcode_block_multiple_connections = false
tsmuxer_forcefps = true
tsmuxer_preremux_pcm = false
tsmuxer_preremux_ac3 = false
audiochannels = 6
audiobitrate = 384
maximumbitrate = 0
skiploopfilter = false
enable_archive_browsing = true
mencoder_fontconfig = false
mencoder_font =
mencoder_forcefps = false
mencoder_usepcm = false
mencoder_intelligent_sync = true
mencoder_decode =
mencoder_encode = keyint=1:vqscale=1:vqmin=2
mencoder_nooutofsync = true
mencoder_audiolangs = eng
mencoder_sublangs = eng
mencoder_audiosublangs =
mencoder_subfribidi = false
mencoder_ass_scale = 1.0
mencoder_ass_margin = 10
mencoder_ass_outline = 1
mencoder_ass_shadow = 1
mencoder_noass_scale = 3
mencoder_noass_subpos = 2
mencoder_noass_blur = 1
mencoder_noass_outline = 1
mencoder_subcp = cp1252
mencoder_ass = true
mencoder_disablesubs = false
mencoder_yadif = false
mencoder_scaler = false
mencoder_scalex = 0
mencoder_scaley = 0
ffmpeg = -g 1 -qscale 1 -qmin 2
use_mplayer_for_video_thumbs = true
dvd_isos_thumbnails = true
uuid = 725e5039-67a2-313f-8bf6-3001b49a508dReturn to Linux Specific Support
Users browsing this forum: Bing [Bot], Will1983 and 3 guests