~do-win/do/test-paths

« back to all changes in this revision

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

  • Committer: Hardeep S
  • Date: 2009-06-24 02:24:43 UTC
  • Revision ID: ootz0rz@gmail.com-20090624022443-ivwlzfujjqu7naa0
Added the ApplicationItemSource, indexes startmenu and desktop shortcuts
Added clipboard support

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        /// </returns>
165
165
        static IEnumerable<string> GetDesktopFileDirectories ()
166
166
        {
 
167
                        // get the path to the "all users" start menu
 
168
                        string commonStartMenu = Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData), "Microsoft");
 
169
                        commonStartMenu = Path.Combine (commonStartMenu, "Windows");
 
170
                        commonStartMenu = Path.Combine (commonStartMenu, "Start Menu");
 
171
 
167
172
            return new [] {
168
173
                Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
169
 
                Environment.GetFolderPath(Environment.SpecialFolder.StartMenu)
 
174
                Environment.GetFolderPath(Environment.SpecialFolder.StartMenu),
 
175
                                Environment.GetFolderPath(Environment.SpecialFolder.Programs),
 
176
                                commonStartMenu,
170
177
            };
171
178
        }
172
179
    }