Mageia Bugzilla – Attachment 3752 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
lxde-common-0.5.5-add-mageia-desktop-icons.patch (text/plain), 1.56 KB, created by
Atilla ÖNTAŞ
on 2013-04-16 19:25:32 CEST
(
hide
)
Description:
This patch adds capability to add icons to desktop
Filename:
MIME Type:
Creator:
Atilla ÖNTAŞ
Created:
2013-04-16 19:25:32 CEST
Size:
1.56 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-14 02:55:29.530541633 +0300 >@@ -4,6 +4,23 @@ > export XDG_CONFIG_HOME="$HOME/.config" > fi > >+# Ensure the existance of the 'Desktop' folder >+if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then >+ . "$XDG_CONFIG_HOME/user-dirs.dirs" >+else >+ XDG_DESKTOP_DIR="$HOME/Desktop" >+fi >+mkdir -p "$XDG_DESKTOP_DIR" >+ >+# Ensure the existance of Mageia Desktop icons at first run >+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 >+ > # Ensure the existance of pcmanfm config file > PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm/LXDE" > if [ ! -f "$PCMANFM_CONF_DIR/pcmanfm.conf" ]; then >@@ -18,14 +35,6 @@ > cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml" > fi > >-# Ensure the existance of the 'Desktop' folder >-if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then >- . "$XDG_CONFIG_HOME/user-dirs.dirs" >-else >- XDG_DESKTOP_DIR="$HOME/Desktop" >-fi >-mkdir -p "$XDG_DESKTOP_DIR" >- > # 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 >
diff -Naur a/startlxde.in b/startlxde.in --- a/startlxde.in 2011-07-29 17:04:03.000000000 +0300 +++ b/startlxde.in 2013-04-14 02:55:29.530541633 +0300 @@ -4,6 +4,23 @@ export XDG_CONFIG_HOME="$HOME/.config" fi +# Ensure the existance of the 'Desktop' folder +if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then + . "$XDG_CONFIG_HOME/user-dirs.dirs" +else + XDG_DESKTOP_DIR="$HOME/Desktop" +fi +mkdir -p "$XDG_DESKTOP_DIR" + +# Ensure the existance of Mageia Desktop icons at first run +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 + # Ensure the existance of pcmanfm config file PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm/LXDE" if [ ! -f "$PCMANFM_CONF_DIR/pcmanfm.conf" ]; then @@ -18,14 +35,6 @@ cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml" fi -# Ensure the existance of the 'Desktop' folder -if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then - . "$XDG_CONFIG_HOME/user-dirs.dirs" -else - XDG_DESKTOP_DIR="$HOME/Desktop" -fi -mkdir -p "$XDG_DESKTOP_DIR" - # 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
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 5941
:
3248
|
3752
|
3753
|
3846