summaryrefslogtreecommitdiffstats
path: root/redhat/tdebase/tdebase-14.0.0-kickoff_xdg_dirs.patch
blob: 0a692c42b0e416785d9f8f48553e5ce0220acf6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- ./kicker/kicker/ui/k_new_mnu.cpp.ori	2013-05-08 21:56:01.084691260 +0200
+++ ./kicker/kicker/ui/k_new_mnu.cpp	2013-05-08 21:58:02.086130445 +0200
@@ -1428,6 +1428,42 @@
            m_systemView->insertItem( "folder_man", i18n( "My Documents" ), documentPath, documentPath, nId++, index++ );
     }
 
+    if ( TDEStandardDirs::exists( TDEGlobalSettings::picturesPath() + "/" ) )
+    {
+        TQString picturesPath = TDEGlobalSettings::picturesPath();
+        if ( picturesPath.endsWith( "/" ) )
+            picturesPath = picturesPath.left( picturesPath.length() - 1 );
+        if (picturesPath!=TQDir::homeDirPath())
+           m_systemView->insertItem( "folder_image", i18n( "My Images" ), picturesPath, picturesPath, nId++, index++ );
+   }
+
+    if ( TDEStandardDirs::exists( TDEGlobalSettings::musicPath() + "/" ) )
+    {
+        TQString musicPath = TDEGlobalSettings::musicPath();
+        if ( musicPath.endsWith( "/" ) )
+            musicPath = musicPath.left( musicPath.length() - 1 );
+        if (musicPath!=TQDir::homeDirPath())
+           m_systemView->insertItem( "folder_sound", i18n( "My Music" ), musicPath, musicPath, nId++, index++ );
+    }
+
+    if ( TDEStandardDirs::exists( TDEGlobalSettings::videosPath() + "/" ) )
+    {
+        TQString videosPath = TDEGlobalSettings::videosPath();
+        if ( videosPath.endsWith( "/" ) )
+            videosPath = videosPath.left( videosPath.length() - 1 );
+        if (videosPath!=TQDir::homeDirPath())
+           m_systemView->insertItem( "folder_video", i18n( "My Videos" ), videosPath, videosPath, nId++, index++ );
+    }
+
+    if ( TDEStandardDirs::exists( TDEGlobalSettings::downloadPath() + "/" ) )
+    {
+        TQString downloadPath = TDEGlobalSettings::downloadPath();
+        if ( downloadPath.endsWith( "/" ) )
+            downloadPath = downloadPath.left( downloadPath.length() - 1 );
+        if (downloadPath!=TQDir::homeDirPath())
+           m_systemView->insertItem( "folder_inbox", i18n( "My Downloads" ), downloadPath, downloadPath, nId++, index++ );
+    }
+
     m_systemView->insertItem( "network", i18n( "Network Folders" ),
                               "remote:/", "remote:/", nId++, index++ );