Adding a Launcher to Plank - SOLVED

Adding a Launcher to Plank - SOLVED

Postby kay-dee » Wed Jul 03, 2019 7:05 pm

New to Zorin and to Gnome. Installed release “15” a week ago and have enjoyed my limited amount of time with it. Got it set up pretty much as I please and am using Plank (Dock), as my desktop interface. But I want to add a PowerOff Launcher. In other distros I would click on the System Logo in the Panel to configure the menu, add the PowerOff function and then add it to Plank.
Not so, it would seem, in Gnome.
In Software I see a package called Menu Editor. Maybe that’s what I need to configure the Menu.
Thank you to anyone who can shed some light on this topic for a dimwitted Linux user.
Best,
Katie
Last edited by kay-dee on Tue Jul 23, 2019 7:01 pm, edited 1 time in total.
Clevo N141ZU with Zorin 15 only, Gnome DE, Dual Drive: SSD & HDD, Processor: Intel Core i7-10510U, 32 Gb RAM, Graphics: Intel UHD
User avatar
kay-dee
 
Posts: 120
Joined: Sun Jun 30, 2019 7:32 pm

Re: Adding a Launcher to Plank

Postby Swarfendor437 » Wed Jul 03, 2019 11:09 pm

OK, This is frustrating ... as I have created one that works and can't remember how I came up with the 'hybrid' solution! Basically I used initial information from here:

https://community.linuxmint.com/tutorial/view/1113

and then from here:

https://linuxconfig.org/how-to-create-d ... aver-linux

and lastly here:

https://askubuntu.com/questions/86376/h ... ical-shutd

and here is the proof (but I can't upload a video!):

PowerButton.jpg
https://vimeo.com/user15592214
https://www.deviantart.com/swarfendor437
https://trisquel.info/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 12026
Joined: Wed Sep 18, 2013 5:51 pm

Re: Adding a Launcher to Plank

Postby Swarfendor437 » Wed Jul 03, 2019 11:41 pm

OK, opened the shortcut with 'other application' to get the script I used:

ScriptForPowerButton.jpg


:D :D :D
https://vimeo.com/user15592214
https://www.deviantart.com/swarfendor437
https://trisquel.info/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 12026
Joined: Wed Sep 18, 2013 5:51 pm

Re: Adding a Launcher to Plank

Postby kay-dee » Fri Jul 05, 2019 8:00 pm

Thanks for this, Swarfendor. Sorry for the delay... 4th of July and, unbelievably, all the wifi bars were closed yesterday here in the DR.
What you provided is a little over my head. I have added a PowerOff Launcher to Plank many times but never in Gnome. Gnome seems to make it awkward. I have copied your links and will have to experiment a little. Hopefully I'll learn something in the process. Wish me luck.
Best,
Katie
Clevo N141ZU with Zorin 15 only, Gnome DE, Dual Drive: SSD & HDD, Processor: Intel Core i7-10510U, 32 Gb RAM, Graphics: Intel UHD
User avatar
kay-dee
 
Posts: 120
Joined: Sun Jun 30, 2019 7:32 pm

Re: Adding a Launcher to Plank

Postby Swarfendor437 » Fri Jul 05, 2019 10:29 pm

Hi,

All you need to do is install gedit (suspect nano would have done the job) and type the exact same information I provided to you in that second image. This then creates an icon on the desktop that you have to give it 'trusted' status. I then changed the 'notepad' like icon for the power one and then simply dragged it to the plank - I left the original on the desktop.

You can now sing along to this:

http://www.popularyoutube.com/video/_BR ... The-power/ ;) :D

Here's that script 'how-to' in a more readable format:

Install 'gedit'
Code: Select all
sudo apt install gedit


After installing gedit and whilst still in Terminal enter:

Code: Select all
gedit ~/Desktop/shutdown.desktop


now copy and paste the code below by clicking on 'Select All' - this copies all of the code to your clipboard for pasting into the new gedit txt file:

Code: Select all
#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=shutdown -Ph now
Name=Power
Comment=Power
Icon=/usr/share/icons/hicolor/scalable/actions/system-shutdown.svg


It will create a 'txt' icon on your desktop and when selecting it it asks if you want to trust it - of course you do!

Right-clicking the icon, select properties and choose the icon of your choice - forgotten where I got mine from and then I just dragged it to the plank. ;) :D
https://vimeo.com/user15592214
https://www.deviantart.com/swarfendor437
https://trisquel.info/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 12026
Joined: Wed Sep 18, 2013 5:51 pm

Re: Adding a Launcher to Plank

Postby kay-dee » Sun Jul 07, 2019 7:29 pm

Thanks, let me work on that....
Best
Katie
Clevo N141ZU with Zorin 15 only, Gnome DE, Dual Drive: SSD & HDD, Processor: Intel Core i7-10510U, 32 Gb RAM, Graphics: Intel UHD
User avatar
kay-dee
 
Posts: 120
Joined: Sun Jun 30, 2019 7:32 pm

Re: Adding a Launcher to Plank

Postby kay-dee » Fri Jul 19, 2019 8:15 pm

Had to go out of town for a few days, Swarfendor, but didn't forget you.
Installed Uget, though I use Extreme Download Manager. I pasted your commands in the terminal and got the Shutdown File on the desktop. Now if I read your instructions correctly, I should be able to open it and, mark it as trusted and copy and past the commands you provided into it.
But I can't open it. Please see the attachment. I'm doing something wrong, something silly, I'm sure...
Any more suggestions appreciated.
Katie

Oops... attachment too large to post.
Clevo N141ZU with Zorin 15 only, Gnome DE, Dual Drive: SSD & HDD, Processor: Intel Core i7-10510U, 32 Gb RAM, Graphics: Intel UHD
User avatar
kay-dee
 
Posts: 120
Joined: Sun Jun 30, 2019 7:32 pm

Re: Adding a Launcher to Plank

Postby Aravisian » Sat Jul 20, 2019 2:43 am

kay-dee wrote:Had to go out of town for a few days, Swarfendor, but didn't forget you.
Installed Uget, though I use Extreme Download Manager. I pasted your commands in the terminal and got the Shutdown File on the desktop. Now if I read your instructions correctly, I should be able to open it and, mark it as trusted and copy and past the commands you provided into it.
But I can't open it. Please see the attachment. I'm doing something wrong, something silly, I'm sure...
Any more suggestions appreciated.
Katie

Oops... attachment too large to post.

You mention something about Uget Download manager,but I am not sure how that applies. Swarfendor had mentioned downloading and using Gedit. Maybe I am misunderstanding what has been said but could it be you were thinking Uget instead of Gedit?
Why not check out Starlabs PC's, built for Linux, with Linux. Starlabs now offers Zorin O.S. pre-installed on a new machine, prepped and Ready To rock.
https://starlabs.systems/?rfsn=4498332.52b196
User avatar
Aravisian
 
Posts: 1999
Joined: Sun Dec 30, 2018 6:51 am

Re: Adding a Launcher to Plank

Postby Swarfendor437 » Sat Jul 20, 2019 11:36 am

Aravisian wrote:
kay-dee wrote:Had to go out of town for a few days, Swarfendor, but didn't forget you.
Installed Uget, though I use Extreme Download Manager. I pasted your commands in the terminal and got the Shutdown File on the desktop. Now if I read your instructions correctly, I should be able to open it and, mark it as trusted and copy and past the commands you provided into it.
But I can't open it. Please see the attachment. I'm doing something wrong, something silly, I'm sure...
Any more suggestions appreciated.
Katie

Oops... attachment too large to post.

You mention something about Uget Download manager,but I am not sure how that applies. Swarfendor had mentioned downloading and using Gedit. Maybe I am misunderstanding what has been said but could it be you were thinking Uget instead of Gedit?


Aravision, uget is a download manager and is not required for this exercise. ;)
https://vimeo.com/user15592214
https://www.deviantart.com/swarfendor437
https://trisquel.info/

Machine: ASUS X470-PRO, AMD Ryzen 7 1700X 8 Core, 16 Gb RAM, ZOTAC Geforce GT1030 (2 Gb)
User avatar
Swarfendor437
 
Posts: 12026
Joined: Wed Sep 18, 2013 5:51 pm

Re: Adding a Launcher to Plank

Postby kay-dee » Sun Jul 21, 2019 7:23 pm

Uget ...Getit... Yeah. I got all that confused. And I was kinda wondering about how a video download manager entered into this exercise. But I wasn't about to question the Experts. That being said, let me uninstall Uget and install Getit. I assume it is in Software.
I did say I was a newbie, didn't I? :D
I am terribly busy right now with a writing project and a pending deadline so please forgive me if it takes a day or two to respond.
Thanks you guys, you're great...
Katie
Clevo N141ZU with Zorin 15 only, Gnome DE, Dual Drive: SSD & HDD, Processor: Intel Core i7-10510U, 32 Gb RAM, Graphics: Intel UHD
User avatar
kay-dee
 
Posts: 120
Joined: Sun Jun 30, 2019 7:32 pm
Next

Return to Help and Support

Who is online

Users browsing this forum: No registered users and 29 guests