Wine 使用技巧两则

对于那些想要在 Linux 系统中运行 Windows 程序的人来说,Wine 算是一个不错的解决方案。最近,在使用 Wine 的过程中,我学到了两个使用技巧,现介绍给使用 Wine 的朋友分享。

改善外观

熟悉 Wine 的朋友可能都知道,所 Wine 出来的程序的默认外观与 Linux 系统中的原生程序看起来不太一致和协调。很多朋友对此也颇有抱怨。好在 Wine 支持安装 Windows 主题文件 (*.msstyles),因此我们可以利用这一点来改善 Wine 程序的外观,使之与 Linux 环境融为一体。

具体操作步骤如下:

  1. 执行 Wine 配置程序 winecfg,并切换到 Desktop Integration 选项卡;
  2. 点击 Install theme 按钮选择已下载的主题文件;
  3. 当主题安装成功后,可从 Theme 下拉框中选择;
  4. 点击 OK 确认。

Wine 配置 应用主题后的效果

在 deviantART 上可以找到许多与 Linux 桌面一致的 Windows 主题,如 Ubuntu HumanGNOME Clearlooks 等。

值得注意的是,在我应用主题后,在程序性能上有所影响。正所谓,鱼与熊掌不可兼得呀。

设置背景

当你使用桌面模拟功能 (该功能可通过 winecfg 配置程序打开,启用 Graphics → Emulate a vistual desktop 选项即可) 时,你可以使用以下技巧来设置一个窗口背景。

  1. 将 bmp 格式的壁纸文件复制到 ~/.wine/drive_c/ 目录,假设其名称为 SkyBlue.bmp;
  2. 使用文本编辑器打开 ./wine/drive_c/windows/win.ini 文件,并加入下列内容:
    
    [Desktop]
    
    Wallpaper=c:\SkyBlue.bmp
    

Wine 背景 设置背景后的效果

[via PolishLinux]

Read More:

12 Comments

  1. 1 Hao Commented @ 2008-03-13 19:37Reply to this comment

    问题是如果一个WINDOWS程序,需要在控制面板里把Encoding for Non-unicode characters调成简体中文才能正常显示中文的话,在WINE里要怎么做呢?

  2. 2 lh Commented @ 2008-03-13 19:37Reply to this comment

    天那,卡死我了,一用主题就卡死。。

  3. 3 fireflyoo Commented @ 2008-03-13 19:37Reply to this comment

    這個,應該屬于美化方面的吧.. ..題目似乎不合乎內容的說..

  4. 4 dogfox Commented @ 2008-03-13 19:40Reply to this comment

    鼠标呢?鼠标怎么弄?

  5. 5 黑日白月 Commented @ 2008-03-13 20:22Reply to this comment

    很好,欢迎一切关于WINE的技巧~

  6. 6 雪梨 Commented @ 2008-03-13 21:24Reply to this comment

    用控件主题会严重影响性能, 还是简单改改颜色主题吧

    wget http://linuxfire.com.cn/~huahua/ub/hiweedwinegreen.reg regedit hiweedwinegreen.reg

    就是绿色颜色主题了

  7. 7 AzureSky Commented @ 2008-03-13 22:08Reply to this comment

    Desktop Integration ???有这个选项的吗???为啥我好像没什么见过的???

  8. 8 Bambo Huang Commented @ 2008-03-14 12:20Reply to this comment

    没啥实用价值

  9. 9 雪梨 Commented @ 2008-03-14 18:39Reply to this comment

    @AzureSky 仔细看截图

  10. 10 YZard Commented @ 2008-03-14 20:33Reply to this comment

    style很是影响性能的

  11. 11 Wine 使用技巧两则 | 益友博客 | Linux之友 Pingbacked @ 2008-08-13 23:51Reply to this comment

    [...] 原文链接网址: http://linuxtoy.org/archives/wine-tips.html [...]

  12. 12 kethinc Commented @ 2010-10-09 10:05Reply to this comment

    不错,不过不配置主题也可以啊。