Bug 239983

Summary: "Sound units removed" when working on different computers with a common home directory
Product: [Frameworks and Libraries] Phonon Reporter: Birger Kollstrand <birger.kollstrand>
Component: kded module for audio device listingAssignee: Harald Sitter <sitter>
Status: RESOLVED FIXED    
Severity: wishlist CC: martin.sandsmark, myriam, sitter
Priority: VLO    
Version: 4.4.1 (KDE 4.4.4)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Birger Kollstrand 2010-05-29 15:29:03 UTC
Version:           4.4.1 (KDE SC 4.4.3 rolling distros) (using KDE 4.4.3) 
OS:                Linux

I'm sitting on a private network where I'm using 6 computers. All the computers use LDAP login to a central server so that my family members and I can use any one of them. The home disk is also on the server and mounted during tha login procedure.

An anoyng thing that we see all the time is that when we switch between computers we get a KDE popup saying something like (Translated from Norwegian...)
-----------------
Sound units removed

KDE discovered that one or more sound units was removed

Do you want KDE to forget these units forever?
-----------
And then a long list of units.

It seems like KDE is storing the previously used sound units used on the users home area. If so, then that is not ok when working on a networked setup with a number of different computers......

Reproducible: Always

Steps to Reproduce:
1. two different computeres with different audio HW
2. The /home partition must be on a common media
3. Log in to one machine
4. Log in to the second

Actual Results:  
you get a popup asking to forget the HW from the first machine

Expected Results:  
No popup asking to remove HW as that information should be stored on a machine specific directory like  /var/tmp/ or /tmp/.

My network is has a number of different machines. Login is handled via LDAP and LDAP also serves the home dir path. Tha home directory is on a common NFS/Samba file server.
Comment 1 Harald Sitter 2013-07-03 22:20:53 UTC
This is going to get a bit of a workaround solution as there is not much future for this piece of software, so I'd like to stay away from invasive changes.
You'll get a config switch to make a profile relocatable, you can either put a kdedrc with appropriate settings in /etc/kde4 or ~/.kde

I hope this is an acceptable enough solution.
Comment 2 Harald Sitter 2013-07-03 22:22:28 UTC
Oh and on a related note... the fix for bug 321036 should entirely solve this problem without config as long as you are using the recommended software stack which includes PulseAudio.
Comment 3 Harald Sitter 2013-07-03 22:28:17 UTC
Git commit a4eed50d0806c7182b7d52ad37e8308a03353b5d by Harald Sitter.
Committed on 03/07/2013 at 22:25.
Pushed by sitter into branch 'master'.

Allow always forgetting devices (no dialog whatsoever) in phononserver

In kdedrc one can now add
> [Notification Messages]
> phonon_always_forget_devices=true
which turns off the "do you want to remove these devices" window entirely.

Along with the previous change with not processing devices when Pulse is
used this should allow the majority of users to get rid of this annoying
thing once and for all.

M  +5    -1    phonon/kded-module/phononserver.cpp

http://commits.kde.org/kde-runtime/a4eed50d0806c7182b7d52ad37e8308a03353b5d