Launching the system logout popup from the Plank dock

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
skallal
Posts: 258
Joined: Fri Jul 28, 2023 12:47 pm

Launching the system logout popup from the Plank dock

#1 Post by skallal »

In another topic of mine a forum member recommended the Plank dock. I finally got around to test driving it today and really like it's simplicity. In some ways I like it more than the XFCE4 panel. However I haven't found a way to launch the system Log Out popup screen from Plank. I've tried calling /usr/bin/xfce4-session-logout directly and in a script file. Also wrote a C# program in .NET Core, my professional environment, to launch it. The Plank docks also wouldn't launch it. The normal methods for adding an item to the dock won't work, so I created my own .dockitem file in /home/skallal/.config/plank/dock1/launchers/. I used the other files in the folder as a template for my own file. Basically I want a simple way to Log Out, Restart, Shut Down, Suspend, Switch User etc. from the Plank dock. It has no option to do this, so it won't pass my test for a primary dock.

Here's a screen of the Log Out popup screen:

system-log.png
You do not have the required permissions to view the files attached to this post.

User avatar
dolphin_oracle
Developer
Posts: 22717
Joined: Sun Dec 16, 2007 12:17 pm

Re: Launching the system logout popup from the Plank dock

#2 Post by dolphin_oracle »

can you not just drag the "Logout" app from the whisker menu onto the dock? works for me...
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

skallal
Posts: 258
Joined: Fri Jul 28, 2023 12:47 pm

Re: Launching the system logout popup from the Plank dock

#3 Post by skallal »

dolphin_oracle wrote: Mon Oct 02, 2023 7:57 am can you not just drag the "Logout" app from the whisker menu onto the dock? works for me...
The odd thing is it didn't work. In fact I've difficulty dragging other items to the dock. It's easier for me to open an app and right click and select Keep in Dock. Right now the Plank dock is on the top and the XFCE dock on the bottom until I'm happy Plank will meet my needs.

Soon after submitting this topic, I managed to get the Logout app working from the dock. But there's no mechanism to remove a post or topic on this forum. The solution was adding xfce4-session-logout.dockitem to /home/skallal/.config/plank/dock1/launchers:

Code: Select all

[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/xfce4-session-logout.desktop
There were already some other .dockitem files in that folder I used as a template.

Post Reply

Return to “MX Help”