You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Whisker menu reads Desktop files from /etc/skel/.local/share/applications

Author (Read 4328 times)

0 Members and 1 Guest are viewing this topic.

Whisker menu reads Desktop files from /etc/skel/.local/share/applications
« Reply #1 on: February 18, 2015, 01:44:44 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
      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: [Select]
Icon=/usr/share/pixmaps/enable.png
Code: [Select]
Icon=/usr/share/pixmaps/disable.png
  • Restarted the panel
Code: [Select]
dbus-send --print-reply --dest=org.xfce.Panel /org/xfce/Panel org.xfce.Panel.Terminate boolean:trueNothing 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: [Select]
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: [Select]
sed -i 's!/etc/skel!'$HOME'!g' $HOME/.config/menus/xfce-applications.menuThen all that should be done is to restart the panel.
Code: [Select]
dbus-send --print-reply --dest=org.xfce.Panel /org/xfce/Panel org.xfce.Panel.Terminate boolean:trueNow the configuration is pointing to home/misko/.local/share/applications
Code: [Select]
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>
« Last Edit: February 18, 2015, 05:42:09 AM by misko_2083 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section