kcmwineconfig doesn't load if Z: drive is removed

Bug #256910 reported by Xwang
2
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Won't Fix
Undecided
Yuriy Kozlov

Bug Description

On my Kubuntu 8.04.1, I've noticed that kcmwineconfig (System settings>Advanced>Windows Applications) does not load if a .wine directory is already present. So it is impossible to modify wine settings using this integrated tool. It is necessary to use the winecfg utility. If I remove the .wine directory and start kcmwineconfig, I can setup wine, but then when I close kcontrol and open it back again, it can't load it.
Starting kcontrol from the console and selecting the Windows Applications tool when a .wine directory is already present, it is not opened and in the console the following messages appear:

Pythonize constructor -- pid = 12441
Python interpreter initialized!

Pythonize constructor -- pid = 12441
Warning: could not find DOS drive for current working directory '/home/andreak', starting in the Windows directory.
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_wineconfig
  File "/var/lib/python-support/python2.5/wineconfig.py", line 3525, in create_wineconfig
    return WineConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/wineconfig.py", line 120, in __init__
    self._buildGUI()
  File "/var/lib/python-support/python2.5/wineconfig.py", line 151, in _buildGUI
    self.generalpage = GeneralPage(tabcontrol,self.compact_mode)
  File "/var/lib/python-support/python2.5/wineconfig.py", line 2898, in __init__
    self.reset()
  File "/var/lib/python-support/python2.5/wineconfig.py", line 2908, in reset
    settings = wineread.GetGeneralWineSettings(application)
  File "/var/lib/python-support/python2.5/wineread.py", line 303, in GetGeneralWineSettings
    return GetKeyValues("HKEY_CURRENT_USER\\Software\\Wine")
  File "/var/lib/python-support/python2.5/wineread.py", line 191, in GetKeyValues
    file=open('.registrykey.reg')
IOError: [Errno 2] Nessun file o directory: '.registrykey.reg'
error: *** runFunction failure
;

Ideally it should be possible to use both this integrated tool and the wineconfig one without having such issues.
Do you agree?
Xwang

PS I don't know if "System settings>Advanced>Windows Applications" is the correct one, I have obatined it by traslating the Italian one "Impostazioni di sistema > Advanced > Applicazioni Windows"

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Thanks for your bug report; we'll need some furter info from you.

Please specify what versions of guidance-backends and kde-guidance you are running?

What happens if you run the following command in a terminal?:
"wine regedit /E .registrykey.reg HKEY_CURRENT_USER\\\\Software\\\\Wine"

Changed in kde-guidance:
assignee: nobody → andreas-wenning
status: New → Incomplete
Revision history for this message
Xwang (xwang1976) wrote :

Ok, I'll post the commands and the results obtained so you will have all the info:

apt-cache policy guidance-backends
guidance-backends:
  Installato: 0.8.0svn20080103-0ubuntu16.1
  Candidato: 0.8.0svn20080103-0ubuntu16.1
  Tabella versione:
 *** 0.8.0svn20080103-0ubuntu16.1 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     0.8.0svn20080103-0ubuntu16 0
        500 http://it.archive.ubuntu.com hardy/main Packages

apt-cache policy kde-guidance
kde-guidance:
  Installato: 0.8.0svn20080103-0ubuntu16.1
  Candidato: 0.8.0svn20080103-0ubuntu16.1
  Tabella versione:
 *** 0.8.0svn20080103-0ubuntu16.1 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     0.8.0svn20080103-0ubuntu16 0
        500 http://it.archive.ubuntu.com hardy/main Packages

wine regedit /E .registrykey.reg HKEY_CURRENT_USER\\\\Software\\\\Wine
regedit: Can't export. Registry key 'HKEY_CURRENT_USER\\Software\\Wine' does not exist!
Success

If you need more info, ask me!
Xwang

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Try to run the wine explorer "wine explorer.exe" ... which drive letter and folder does explorer open in and does drive "Z:" exist?

Revision history for this message
Xwang (xwang1976) wrote :

Explorer opens in C: and drive z: does not exit because I've removed all drives except for c: (maybe in the future I will add a drive for the cdrom).
Xwang

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

The Z: drive is an alias for your complete unix system; if you add the Z: drive again it should fix your problem. wineconfig does not work without Z: drive as it is now.

Changed in kde-guidance:
status: Incomplete → Confirmed
Revision history for this message
Xwang (xwang1976) wrote :

Ok, adding the Z. drive it works.
I removed it because I was searching for a method to avoid windows application to see files outside the .wine directory.
Is it possible to limit wine using a sort of chroot (so that applications see .wine as the /directory)?
Xwang

Revision history for this message
Xwang (xwang1976) wrote :

I've discovered that removing all drives except c: (namely not mapping /, /home/user and so on), I can look at all the directories from a windows application but I can open and write only in directories inside c:. So, since this is, IMHO, a much more safer configuration, I suggest to modify kcmwineconfig so that it is not needed the presence of the z: drive which maps / (giving to windows applications the ability to read and write to all the file the user has access on the pc.
Xwang

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

@Xwang
After looking into it, it will take some heavy restructuring to make it work without having the Z: drive defined. As the Z: drive is default to have this is probably not critical enough (especially not compared to the restructuring needed) to deserve an SRU (fix in hardy).

Wineconfig is not guaranteed to live in hardy+1 and might be replaced by some other configuration mechanism; I'll keep this bug open to be used in the case that wineconfig does live on.

Changed in kde-guidance:
assignee: andreas-wenning → yuriy-kozlov
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Kubuntu 8.04 has reached the end of its supported life, and unfortunately the Guidance user configuration tool and the Guidance Power Manager were the only Guidance apps to survive. The rest were removed from distribution and will not be receiving any more bugfixes. Thanks for understanding, and have a nice day.

Changed in kde-guidance (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.