(Solved) Plank Icons

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

(Solved) Plank Icons

Post by richdell-mint »

I am using Plank version 0.11.4 on 2 computers, both running Mint Cinnamon 19.3. I lock the icons, which works until I restart, then they are unlocked again.(The problem is, it's easy to remove apps from the dock and my wife does't remember how to get them back) Both computers behave the same.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Plank Icons

Post by smurphos »

Hi,

Do you and your wife have separate user accounts on both machines? Plank's settings are user account specific so locking the dock in your user account won't apply to your wife's account and vice-versa.

Otherwise it sounds like an ownership problem. Does the command below return any output? Again if multiple user accounts run the command whilst logged in as each user.

Code: Select all

find $HOME ! -user $USER
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

Mine is the only account. I only mentioned my wife to justify searching for a fix!

Here is the result of the code you supplied:

rich@rich-desktop:~$ find $HOME ! -user $USER
/home/rich/.cache/dconf/user
/home/rich/.config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml
/home/rich/.aptitude
find: ‘/home/rich/.aptitude’: Permission denied
rich@rich-desktop:~$
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Plank Icons

Post by smurphos »

Cheers,

Running the command below will return those files and folders to your ownership and should fix plank's settings not sticking.

Code: Select all

sudo chown -Rc $USER:$USER $HOME
The change in ownership normally is a result of running GUI apps with sudo, which is generally not a good idea.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

So sad, it made no difference.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Plank Icons

Post by smurphos »

How are you launching plank preferences?
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

Curser in Plank, Ctrl-Right click, choose "Preferences"

BTW, I tried your command on both computers, same results
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

Another BTW, I have a third computer which is a Chromebook 2 with Gallliumos. (works great!) It also has Plank, which behaves the same including your code I tried.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Plank Icons

Post by smurphos »

Interesting - I can confirm it's working fine my end - all settings survive a reboot - I'm using 0.11.4.34-96bbb from https://launchpad.net/~ricotz/+archive/ubuntu/docky

Can you try a couple of things?

Quit plank then open a terminal and run plank - leaving the terminal window open, then open plank preferences and toggle lock on and off (and other settings). Is there any terminal output associated with toggling the settings?

Also try these commands - do any of them return errors?

Check the current setting from the command line

Code: Select all

dconf read /net/launchpad/plank/docks/dock1/lock-items
Change the setting from the command line

Code: Select all

dconf write /net/launchpad/plank/docks/dock1/lock-items true

Code: Select all

dconf write /net/launchpad/plank/docks/dock1/lock-items false
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

I quit plank, started from the terminal and got the following message.

rich@rich-desktop:~$ plank
[WARN 14:07:56.378872] [Environment:161] XDG_SESSION_CLASS not set in this environment!
[WARN 14:07:56.440733] [Preferences:192] '/usr/share/plank/themes/Default/dock.theme' is read-only!

Toggling settings showed no output at command line.
I ran the rest of your codes and got no errors.

I did the same thing on Galliumos and got similar response, plus "Creating surface took WAY TOO LONG (102ms), enabled downscaling for this cache!
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Plank Icons

Post by smurphos »

OK, none of those relate to the settings window.

I just tested with the default version from the repos (0.11.4) and again that is working fine for me with all settings include the lock setting surviving a reboot.

I'm running out of ideas of what might be causing this.

What's the command you are using to autostart plank at login? To check, open Startup Applications from the menu, highlight plank and click the edit button.

Image

Are you familiar with the application dconf-editor? You can use it to check and amend the backend settings database that plank (and many other applications) use. It might help you work out what is going on.

apt install dconf-editor

This is what's the default docks setting look like.

Image
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

My autostart command is plank.
I installed deconf editor, but have no idea how to do anything with it. A search showed me that it's way over my head!
As a work around for my wife, I have pined the icons she uses in the panel, where they stay put.
Thank you for trying to help me
richdell-mint
Level 1
Level 1
Posts: 27
Joined: Thu Dec 12, 2019 8:48 am

Re: Plank Icons

Post by richdell-mint »

Well, I just learned a lesson! I must have installed from Software Center, because when I uninstalled and installed from the PPA, everything's working fine now. So the easy way isn't always best. Thanks
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Plank Icons

Post by smurphos »

Glad you sorted it out. I think the trick was pinning icons first :wink:

The lock setting is for locking / unlocking pinned icons.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Compiz, Conky, Docks & Widgets”