LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whisker menu reads Desktop files from /etc/skel/.local/share/applications
#1
      The /etc/skel directory contains files and directories that are automatically copied over to a new user's Home directory when such user is created by the useradd program.
A home directory, also called a login directory, is the directory on LL that serves as the repository for a user's personal files, directories and programs, including personal configuration files.
      Here is what happened:
  • I've opened two .desktop files, alacarte-made-8.desktop and alacarte-made-9.desktop, in /home/misko/.local/share/applications/ in order to change the default icons to the ones that a user submited in this thread
  • Changed the lines Icon=... to
Code:
Icon=/usr/share/pixmaps/enable.png

Code:
Icon=/usr/share/pixmaps/disable.png
  • Restarted the panel
Code:
dbus-send --print-reply --dest=org.xfce.Panel /org/xfce/Panel org.xfce.Panel.Terminate boolean:true
Nothing happened, and the icons should have changed.
I remember there was a couple threads where the users claimed they can't remove items from the whisker menu. This is related to that.
So something is wrong in the configuration, and that is this file /home/misko/.config/menus/xfce-applications.menu
Code:
grep "/etc/skel" $HOME/.config/menus/xfce-applications.menu
<AppDir>/etc/skel/.local/share/applications</AppDir>
            <AppDir>/etc/skel/.local/share/applications</AppDir>
        <AppDir>/etc/skel/.local/share/applications</AppDir>
        <AppDir>/etc/skel/.local/share/applications</AppDir>
        <AppDir>/etc/skel/.local/share/applications</AppDir>
    <AppDir>/etc/skell/.local/share/applications</AppDir>
        <AppDir>/etc/skel/.local/share/applications</AppDir>
        <AppDir>/etc/skel/.local/share/applications</AppDir>
        <AppDir>/etc/skel/.local/share/applications</AppDir>
I've changed /etc/skel to /home/misko restarted the panel and this fixed the problem.
Next command will change all occurances of /etc/skel to /home/user_name
Code:
sed -i 's!/etc/skel!'$HOME'!g' $HOME/.config/menus/xfce-applications.menu
Then all that should be done is to restart the panel.
Code:
dbus-send --print-reply --dest=org.xfce.Panel /org/xfce/Panel org.xfce.Panel.Terminate boolean:true
Now the configuration is pointing to home/misko/.local/share/applications
Code:
grep "/home" $HOME/.config/menus/xfce-applications.menu
        <AppDir>/home/misko/.local/share/applications</AppDir>
            <AppDir>/home/misko/.local/share/applications</AppDir>
            <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
    <AppDir>/home/miskol/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
        <AppDir>/home/misko/.local/share/applications</AppDir>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)