** Attachment added: "Test script"
   https://bugs.launchpad.net/bugs/719338/+attachment/1851478/+files/test.py

** Description changed:

  Binary package hint: ubiquity
  
  Hi,
  
  Ubiquity integrates with thunar-volman in Xfce 4.4 and 4.6 (Bug
  #107259). This was rather straightforward, because thunar-volman used to
  store its configuration in a simple rc file (read file, update entries
  if they exist, add them if they are missing, and restore them after the
  installation).
  
  However, in Xfce 4.8, thunar-volman moved to xfconf, which means that
  its conf is now in xml (yay for parsing!), and managed by xfconfd (so
  any manual edition of the conf will be overwritten by xfconfd).
  Unfortunately, there are no python bindings released/packaged for
  xfconf, so I'm not sure of the best way to do it...
  
  My skills in python are not that great, so I used a test script (instead of 
patching ubiquity directly), so I could test more easily.
  What it does:
  * read the previous stored user config, if it exists (if the user didn't 
change the settings, it won't).
  * launch xfconf-query with he correct options to disable automounting.
  * launch xfconf-query to restore the previous settings (either reset to the 
values set by the user, or reset to the system values if the stored config 
didn't exist).
  It uses minidom to parse the config, and then spawns xfconf-query several 
times using os.system (yeah, this is not that nice -- it's probably not very 
robust either, that's why I didn't provide a patch directly also).
  
- Feel free to improve it, or if you have any better way of doing that it
- 'd be great.
+ Feel free to improve it, or if you have any better way of doing that it'd be 
great.
+ I can also do some testing if needed.
+ Thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/719338

Title:
  [Xubuntu] Disable automount

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to