~do-win/do/test-paths

« back to all changes in this revision

Viewing changes to Do.Platform.Windows/src/Do.Universe/ApplicationItemSource.cs

  • Committer: Chris S.
  • Date: 2009-06-24 05:16:06 UTC
  • Revision ID: chris@szikszoy.com-20090624051606-9g5ip3nfkau6pvzl
add windows paths service

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
using System.IO;
22
22
using System.Linq;
23
23
using System.Collections.Generic;
 
24
using System.Runtime.InteropServices;
24
25
 
25
26
using Do.Platform;
26
27
using Do.Universe;
164
165
        /// </returns>
165
166
        static IEnumerable<string> GetDesktopFileDirectories ()
166
167
        {
167
 
                        // get the path to the "all users" start menu
 
168
                        // get the path to the "all users" start menu ** THIS IS FOR VISTA + WIN7
168
169
                        string commonStartMenu = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData), "Microsoft");
169
170
                        commonStartMenu = Path.Combine (commonStartMenu, "Windows");
170
171
                        commonStartMenu = Path.Combine (commonStartMenu, "Start Menu");
 
172
                        
 
173
                        /*
 
174
                        if (!File.Exists (commonStartMenu))
 
175
                        Console.WriteLine ("Common start menu: {0}", commonStartMenu);
 
176
                        Console.WriteLine (Environment.GetFolderPath (Environment.SpecialFolder.StartMenu));
 
177
                        */
 
178
 
 
179
                        //Console.WriteLine (Environment.GetWin
171
180
 
172
181
            return new [] {
173
182
                Environment.GetFolderPath(Environment.SpecialFolder.Desktop),