[ubuntu-za] Launcher icons

Bruce Pieterse dev at otq.za.net
Wed May 2 18:40:30 UTC 2012


On 02/05/2012 19:48, Jan Greeff wrote:
> Hi Bruce,
>
> Thanks for the advice.
>
> I now remember how I did it last time, but now it does not work, the
> link seems to drag across fine but the moment it is dropped on the
> desktop it becomes damaged and I get this feedback:  'This link cannot
> be used, because its target
> "../../lib/libreoffice/share/xdg/writer.desktop" doesn't exist.'
>
> Any more ideas?
>
> Kind regards,
>
> Jan
>
> On 02/05/2012 19:23, Bruce Pieterse wrote:
>> On 02/05/2012 09:35, Robin Bownes wrote:
>>>
>>>
>>> On 05/02/2012 05:59 AM, Jan Greeff wrote:
>>>> Thanks Bruce, removing the icon and re-launching the program sorted
>>>> the problem out.
>>>>
>>>> Jan
>>>>
>>> Pleased to hear that Jan. Unfortunately, it didn't work for me.
>>> Doesn't matter how often I remove the button, and reload the
>>> program, or change themes, etc. - still the same. I've even tried
>>> tracking down the LibreOffice .desktop file and editing that to
>>> point to a particular icon file - still no joy.
>>>
>>> So if anyone out there has a flash of brilliance, please let me
>>> know. It only does this with my LibreOffice launcher button.
>>>
>>> Robin
>>>
>>>
>>
>> Hi Jan,
>>
>> Glad you got it sorted out! :) To place a shortcut onto your desktop,
>> you won't be able to drag it from the launcher onto your desktop, but
>> you can drop an icon onto your desktop through the unity dash.
> All the best,
>> Bruce 
>
>
>
Funny enough, I get the same thing. Opening writer from the dash works
though. I can see that it is a symbolic link that is being created:
libreoffice-writer.desktop ->
../../lib/libreoffice/share/xdg/writer.desktop but the path it's
pointing to is /lib/libreoffice which does not exist in /lib. I did find
the correct link at /usr/lib/libreoffice/share/xdg/writer.desktop.

Unfortunately, creating a symbolic link to that .desktop file won't work
as it has root permissions (needs to be owned by you and marked as
trusted). So I tried the following and it works:
- Open up the terminal
- cd ~/Desktop
- sudo cp /usr/lib/libreoffice/share/xdg/writer.desktop .
- sudo chown yourusername: writer.desktop
- Right-click on writer.desktop
- Go to permissions tab and tick "Allow executing file as program"
- Done!

The file will be renamed to LibreOffice Writer and it will launch
properly :)

Robin, perhaps you can try this work around a see if it will work for you.




-- 
All the best,

Bruce

FSF Member 10674 / The FSF is a charity with a worldwide mission to advance software freedom / Join the Free Software Foundation: http://www.fsf.org/register_form?referrer=10674

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20120502/7c5b001f/attachment.html>


More information about the ubuntu-za mailing list