Peppermint | Linux OS Community Forum
 
It is currently Sun Sep 15, 2019 4:32 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Adeskbar (SOLVED)
PostPosted: Wed Jan 15, 2014 7:24 am 
Offline
User avatar

Joined: Fri Jun 11, 2010 4:17 pm
Posts: 32
This is a bit of a long shot, because I know it's not a standard launcher here, but I'm trying to get Adeskbar to work with Peppermint 4. I installed the latest version 0.4.3 from here http://download.tuxfamily.org/adeskbar/archives/ and it half works.

It didn't create a .desktop file on installation, but it runs from a terminal and I can get it to autostart by adding it to /etc/xdg/lxsession/Peppermint/autostart

What doesn't work is any way of customising/altering it, a menu comes up on right-click, but the preferences dialog refuses to load and the exit and volume control buttons on the bar don't do anything.

Does anyone have any idea about something obvious I might have missed? It might be that it's simply not compatible, which is fair enough, but I'd love to get it working if I can. Thank you for any help you can give me.


Last edited by SallyK on Sun Jan 26, 2014 6:35 am, edited 1 time in total.

Top
 Profile  
 
 

 Post subject: Re: Adeskbar
PostPosted: Wed Jan 15, 2014 10:34 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Nope, not a long shot at all ;) .....

OK, to make the volume work pulseaudio needs to be installed .. so open a terminal and run:
Code:
sudo apt-get install pulseaudio pulseaudio-utils pavucontrol


to make the "preferences" dialog work .. run:
Code:
sudo apt-get install python-vte


to add it to the menus at menu > Preferences > ADesk Bar
(be aware, they probably hid it in the menus by setting "NoDisplay=true" because it would be easy to open multiple instances of it without knowing, as they'd be displayed on top of each other .. so up to you if you want to do this bit)
Code:
sudo gedit /usr/share/applications/adeskbar.desktop

and make it read:
Code:
[Desktop Entry]
Type=Application
Name=ADesk Bar
Comment=A Quick Application Launcher
Exec=adeskbar
Icon=adeskbar
Categories=GNOME;Settings;
NoDisplay=false

SAVE the file, and back in the terminal run:
Code:
lxpanelctl restart


I'll get back to you on the "System Control" launcher (log out / shutdown / reboot) issue as we may either need to scrap it altogether and add a launcher for lxsudo gedit /usr/share/applications/adeskbar.desktopsession-logout .. or edit the config at
~/.config/adeskbar/default.cfg
to have the correct commands.

Adding a launcher that just runs lxsession-logout (like the one by the clock on the default panel) would be easiest .. would that be OK ?
(if so, I'll type up instructions)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Wed Jan 15, 2014 4:59 pm 
Offline
User avatar

Joined: Fri Jun 11, 2010 4:17 pm
Posts: 32
Thank you very much, that's got me a lot of the way. :-) The preferences now work, which was the biggest issue.

I do like the idea of the quicker shut-down of being able to pick the options from the session control launcher, but not if it's going to make you a lot more work - I can live with the Peppermint shut-down etc dialog.

One thing I've noticed is that the Window List (and Task List) plugin doesn't work - if you try adding it to the bar, the preferences crash and you have to restart the bar before you can access them again. Looking at what was listed on the About tab of the preferences, I tried installing python-xlib but unfortunately it didn't help.

I must admit, I'm not really fussed about adding it to the menu- after all, I just want one instance to autorun - so I shouldn't actually need to add it there, unless it's going to help make something work that doesn't otherwise.

Thank you again for your help with this.


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Fri Jan 17, 2014 9:56 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
Installing python-wnck seems to fix the Tasklist and Windowlist plugins :)
Code:
sudo apt-get install python-wnck

at this point if you've already added those plugins you may need to remove them, then re-add them.

Still working on the session control commands .. I've got them written down somewhere, but can't find them (obviously my filing system needs some work :lol:), so more digging is required ;)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Fri Jan 17, 2014 4:14 pm 
Offline
User avatar

Joined: Fri Jun 11, 2010 4:17 pm
Posts: 32
Thank you again for that, it works here too. :-)

I'm sorry to put you to so much work, it's very kind of you to go to the trouble.


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Sun Jan 19, 2014 11:24 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
OK, I've come to the conclusion there's no "easy" and " reliable"way to get the session control options to work.

Seems the commands they run require HAL to be installed .. but before you run off and do that let me explain a couple of things

1) using hal the shutdown and reboot options will work BUT they may cause disk corruption .. they caused my SSD to get flagged as "not being unmounted cleanly".
and
2) the logout option still won't work .. though I suppose that could be edited to run lxsession-logout.

I wouldn't really advise installing hal.

=======================================================

So there are 2 other possiblilities

a) Create some scripts that run the "correct" shutdown and reboot command, but then you'd have to add them to the sudoers file so they didn't prompt for your password.

or

b) go with my original idea, and just replace the "session control" options with a single launcher that runs lxsesssion-logout.

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Sun Jan 19, 2014 11:50 am 
Offline
User avatar

Joined: Fri Jun 11, 2010 4:17 pm
Posts: 32
Oh dear, I hope it won't cause you too many problems to fix.

It does sound as if it's not worth trying to get the rest of it to work, and putting a link to the lx-session logout is the way to go.


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Sun Jan 19, 2014 2:13 pm 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
My system isn't broken :) ..

The file system check automagically fixes the file system .. there may not even be a problem with it besides it getting flagged as an unclean unmount (which causes the filesystem check to run).

My point is at worst it might cause irrecoverable file system corruption, and at best it increases boot times considerably because every time you shut down or reboot it has to run a file system check at bootup.

So it's risky, and time consuming at the same time .. not exactly worth it eh ?

=====================================================

Anyway .. do you know how to replace it with a launcher that runs lxsession-logout ?

or do you need assistance ?

If you now consider this topic (SOLVED), please remember to mark it so .. TIA :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: Adeskbar
PostPosted: Sun Jan 26, 2014 6:35 am 
Offline
User avatar

Joined: Fri Jun 11, 2010 4:17 pm
Posts: 32
I'm sorry for the delay in coming back to this - one of my other systems decided it was it was the week to stop working.

Anyway, I've added a launcher for the logout dialog, and everything is working fine, Thank you again for you help. :-)

For anyone else who's trying to do the same thing, I added a custom launcher in the Adeskbar preferences, with the command lxsession-logout and added a suitable icon - I used /usr/share/lxsession/images/system-shutdown.png Now I have a working button on my Adeskbar panel/dock to shut down the machine.

So I have a working Adeskbar set up as a dock, and it looks good. :-)


Top
 Profile  
 
 Post subject: Re: Adeskbar (SOLVED)
PostPosted: Sun Jan 26, 2014 10:02 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
You're most welcome .. thanks for marking the topic (SOLVED) :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL