Mageia Bugzilla – Attachment 3846 Details for
Bug 5941
No desktop icons in LXDE - Home, Join the community etc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
This patch adds capability to add icons to desktop version2
lxde-common-0.5.5-add-mageia-desktop-icons.patch (text/plain), 1.12 KB, created by
Atilla ÖNTAŞ
on 2013-04-29 12:21:15 CEST
(
hide
)
Description:
This patch adds capability to add icons to desktop version2
Filename:
MIME Type:
Creator:
Atilla ÖNTAŞ
Created:
2013-04-29 12:21:15 CEST
Size:
1.12 KB
patch
obsolete
>diff -Naur a/startlxde.in b/startlxde.in >--- a/startlxde.in 2011-07-29 17:04:03.000000000 +0300 >+++ b/startlxde.in 2013-04-29 12:52:03.374574908 +0300 >@@ -26,10 +26,21 @@ > fi > mkdir -p "$XDG_DESKTOP_DIR" > >+# Ensure the existance of Mageia Desktop icons at first run >+OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox" >+if [ -d @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons ]; then >+ if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then >+ xdg-desktop-icon install --novendor @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons/trash.desktop >+ xdg-desktop-icon install --novendor @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons/home.desktop >+ xdg-desktop-icon install --novendor @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons/register.desktop >+ fi >+fi >+ >+ > # Clean up after GDM (GDM sets the number of desktops to one) > xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null > >-# Enable GTK+2 integration for OpenOffice.org, if available. >+# Enable GTK2 integration for OpenOffice.org, if available. > export SAL_USE_VCLPLUGIN=gtk > > # Launch DBus if needed
diff -Naur a/startlxde.in b/startlxde.in --- a/startlxde.in 2011-07-29 17:04:03.000000000 +0300 +++ b/startlxde.in 2013-04-29 12:52:03.374574908 +0300 @@ -26,10 +26,21 @@ fi mkdir -p "$XDG_DESKTOP_DIR" +# Ensure the existance of Mageia Desktop icons at first run +OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox" +if [ -d @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons ]; then + if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then + xdg-desktop-icon install --novendor @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons/trash.desktop + xdg-desktop-icon install --novendor @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons/home.desktop + xdg-desktop-icon install --novendor @localstatedir@/lib/mageia/lxde-profiles/Desktop-icons/register.desktop + fi +fi + + # Clean up after GDM (GDM sets the number of desktops to one) xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null -# Enable GTK+2 integration for OpenOffice.org, if available. +# Enable GTK2 integration for OpenOffice.org, if available. export SAL_USE_VCLPLUGIN=gtk # Launch DBus if needed
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5941
:
3248
|
3752
|
3753
| 3846