FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian KDE

 
 
LinkBack Thread Tools
 
Old 10-22-2011, 11:31 AM
Harry Putnam
 
Default How can I find the path to various icons

On the main kde menu, I have several icons in the first area
(favorites)

I expected to be able to right click and get the properties of the
icon as one can do in gnome, but that hows other information and
nothing about what the icon is linked to (path wise). How can I get
that information.

A detailed example:

An icon for Virtual Box appears in my `Favorites'
How can I determine what executable and how it is called.

Moreover, how can I edit that call?


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87fwiluus1.fsf@newsguy.com">http://lists.debian.org/87fwiluus1.fsf@newsguy.com
 
Old 10-22-2011, 12:12 PM
Mirosław Zalewski
 
Default How can I find the path to various icons

Hi

Favorites are kept in file ~/.kde/share/config/kickoffrc
This is simple INI file and value of FavoriteURLs key is comma-separated list
of .desktop files paths. If you only want to read path to executable, just open
appropriate .desktop file in any text editor.

Global .desktop files are kept in /usr/share/applications/. You should not
modify them. You would have root privileges to do so, but any changes will be
overwritten next time you update application which ships .desktop file.
Instead, you should copy .desktop file to ~/.local/share/applications/ (you can
create that directory if you do not have it). Then you can modify it any way
you like.

If you need GUI for it, you can simply drag icon and drop it anywhere on your
desktop. You will be able to modify properties of that icon. Modifying them
will transparently copy .desktop file into your ~/.local folder and modify it.
To see changes in kickoff ("start menu"), you will have to restart it. Simply
logging out and logging in will do the job. You can safely remove icon from
your desktop afterward.
--
Best regards
Mirosław Zalewski


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201110221412.54075.miniopl@poczta.onet.pl">http://lists.debian.org/201110221412.54075.miniopl@poczta.onet.pl
 
Old 10-22-2011, 01:58 PM
Scott Ferguson
 
Default How can I find the path to various icons

On 22/10/11 22:31, Harry Putnam wrote:
> On the main kde menu, I have several icons in the first area
> (favorites)
>
> I expected to be able to right click and get the properties of the
> icon as one can do in gnome, but that hows other information and
> nothing about what the icon is linked to (path wise). How can I get
> that information.
>
> A detailed example:
>
> An icon for Virtual Box appears in my `Favorites'

It will also appear elsewhere (launcher => System => VirtualBox)
Favourites is just a shortcut to the launcher entry.

> How can I determine what executable and how it is called.
>
> Moreover, how can I edit that call?
>
>

Right-click on the KDE icon at the base of the launcher (menu)
Select "Menu Editor" from the drop-down list
Expand the Category you're interested in eg. System
Left-click on the entry eg. VirtualBox
You'll see the command and can edit it, if you click on the Advanced tab
you can change the work path, left-click on the (VirtualBox) icon to
edit it's properties.


Though you don't ask:-
;Right-clicking on the KDE launch icon will give you access to the
Application Launcer Settings - it'll also allow you to turn off "Kick
off menu style".
;Right-clicking on the bottom panel will allow you to "Unlock Widgets"
(it's under Panel Options) - when widgets are unlocked you can
right-click on any launcher (KDE menu) entry and assign it to the
Desktop, Favourites, or the Panel.



Cheers




--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EA2CBF4.9060307@gmail.com">http://lists.debian.org/4EA2CBF4.9060307@gmail.com
 
Old 10-22-2011, 11:49 PM
Harry Putnam
 
Default How can I find the path to various icons

Scott Ferguson <prettyfly.productions@gmail.com> writes:

First, I've snipped the bulk of your input. It hit the mark and very
helpful, thank you.

For some reason VB is under Utilities for me, rather than
System. Other than that, I found everything I asked for.

I've left your first comments below because it raised another related
point I wanted to get at.

[...]

>> A detailed example:
>>
>> An icon for Virtual Box appears in my `Favorites'
>
> It will also appear elsewhere (launcher => System => VirtualBox)
> Favourites is just a shortcut to the launcher entry.

A word of explanation: I put VB under favorites my self. Here is
why. First it looked like a long job to find it by hand; so I
used the search box to find it... I still could not determine where it
was in the menus. Seems like something I should be able to see from
the `search' output (the path to the icon in the menus) But since I
couldn't and I didn't want to use search every time... I drug it
to `favorites' since that is the first thing that opens.

I say all that to point up the fact that (In my opinion) the path
information would often be nearly as useful as finding the item. It
seems a serious shortcoming to the menu `search' dialog, that it does
not provide the path (inside the menus) for the items it finds.


PS - what does %F mean at the end of a command path, such as the one
for emacs23: /usr/bin/emacs23 %F.



--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 871uu4vb7y.fsf@newsguy.com">http://lists.debian.org/871uu4vb7y.fsf@newsguy.com
 
Old 10-22-2011, 11:51 PM
Harry Putnam
 
Default How can I find the path to various icons

Mirosław Zalewski <miniopl@poczta.onet.pl> writes:

[...] snipped excellent input.

> . . . . You will be able to modify properties of that
> icon. Modifying them will transparently copy .desktop file into your
> ~/.local folder and modify it. To see changes in kickoff ("start
> menu"), you will have to restart it. Simply logging out and logging
> in will do the job. You can safely remove icon from your desktop
> afterward.

Thanks. That list bit was especially helpful because it would not be
at all obvious.


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87wrbwtwir.fsf@newsguy.com">http://lists.debian.org/87wrbwtwir.fsf@newsguy.com
 
Old 10-23-2011, 12:01 AM
Facundo Aguilera
 
Default How can I find the path to various icons

On Sat, Oct 22, 2011 at 8:49 PM, Harry Putnam <reader@newsguy.com> wrote:

> [...]
>
>>> A detailed example:
>>>
>>> An icon for Virtual Box appears in my `Favorites'
>>
>> It will also appear elsewhere (launcher => System => VirtualBox)
>> Favourites is just a shortcut to the launcher entry.
>
> A word of explanation: *I put VB under favorites my self. *Here is
> why. *First it looked like a long job to find it by hand; so I
> used the search box to find it... I still could not determine where it
> was in the menus. * Seems like something I should be able to see from
> the `search' output *(the path to the icon in the menus) *But since I
> couldn't and I didn't want to use search every time... I drug it
> to `favorites' since that is the first thing that opens.
>
> I say all that to point up the fact that (In my opinion) the path
> information would often be nearly as useful as finding the item. *It
> seems a serious shortcoming to the menu `search' dialog, that it does
> not provide the path (inside the menus) for the items it finds.
>
>
> (...)

Maybe you can vote this upstream bug:
https://bugs.kde.org/show_bug.cgi?id=57314. Solving this 'wishlist'
will help to your problem.


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAPYB0AArWE1u3qfaxxEBNzDNmumCkxdakAGzkd8Ne+eB1t2Pe A@mail.gmail.com">http://lists.debian.org/CAPYB0AArWE1u3qfaxxEBNzDNmumCkxdakAGzkd8Ne+eB1t2Pe A@mail.gmail.com
 
Old 10-23-2011, 09:31 AM
Mirosław Zalewski
 
Default How can I find the path to various icons

On 23/10/2011 at 01:49, Harry Putnam <reader@newsguy.com> wrote:

> PS - what does %F mean at the end of a command path, such as the one
> for emacs23: /usr/bin/emacs23 %F.

It is described in .desktop file specification. Take a look:
<http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html>
You can read all about .desktop files there. Just click "Home" link at the
bottom of the page to get a table of contents.
--
Best regards
Mirosław Zalewski


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201110231131.03965.miniopl@poczta.onet.pl">http://lists.debian.org/201110231131.03965.miniopl@poczta.onet.pl
 
Old 10-23-2011, 11:08 AM
Harry Putnam
 
Default How can I find the path to various icons

Mirosław Zalewski <miniopl@poczta.onet.pl> writes:

> On 23/10/2011 at 01:49, Harry Putnam <reader@newsguy.com> wrote:
>
>> PS - what does %F mean at the end of a command path, such as the one
>> for emacs23: /usr/bin/emacs23 %F.
>
> It is described in .desktop file specification. Take a look:
> <http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html>
> You can read all about .desktop files there. Just click "Home" link at the
> bottom of the page to get a table of contents.

from your cited URL.

A list of files. Use for apps that can open several local files at
once. Each file is passed as a separate argument to the executable
program.

I figured it was something like that. Something akin to the shells
$@.

But that doesn't make much sense in the properties of an ICON. How
does one pass a list of files when clicking on a menu of icons? So I
didn't think it would be just inserted gratuitously but it seems to
be so. eh?

For example, I see the %F in the properties of the emacs icon..

Or is it expected that user would drag a file to the icon and drop it?


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87hb30t17e.fsf@newsguy.com">http://lists.debian.org/87hb30t17e.fsf@newsguy.com
 
Old 10-23-2011, 09:53 PM
Mirosław Zalewski
 
Default How can I find the path to various icons

On 23/10/2011 at 13:08, Harry Putnam <reader@newsguy.com> wrote:

> But that doesn't make much sense in the properties of an ICON. How
> does one pass a list of files when clicking on a menu of icons? So I
> didn't think it would be just inserted gratuitously but it seems to
> be so. eh?
>
> For example, I see the %F in the properties of the emacs icon..

I am afraid you are missing a point. .desktop file is more generic than just
icon. It is INI file with key for Icon, Name, supported Mime Types, executable
path (or just name, in which case system should check $PATH for that
executable) and some other things. Dolphin (KDE file manager) is using .desktop
files as well. So when you select some text files, under "Open with" you will
find emacs (beside Kate, Kwrite and perhaps some other apps).

When you edit icon properties, you are editing .desktop file; not only Icon
key, but whole content of it.

I have downloaded sources for emacs (I do not use it at all, so I don't have
it installed) and in emacs.desktop file I see:
#v+
Exec=emacs %F
Icon=emacs
#v-

So %F is not in icon (which indeed would not make much sense), but in Exec
value. That way opening few text files in emacs (from Dolphin) will not spawn
multiple emacs instances. For Kickoff it makes no difference, since you can't
select any files from it.

Hope I have cleared some things up and I apologize in advance if my message is
a bit harsh.
--
Best regards
Mirosław Zalewski


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201110232353.44188.miniopl@poczta.onet.pl">http://lists.debian.org/201110232353.44188.miniopl@poczta.onet.pl
 
Old 10-23-2011, 10:00 PM
Harry Putnam
 
Default How can I find the path to various icons

Mirosław Zalewski <miniopl@poczta.onet.pl> writes:

> So %F is not in icon (which indeed would not make much sense), but in Exec
> value. That way opening few text files in emacs (from Dolphin) will not spawn
> multiple emacs instances. For Kickoff it makes no difference, since you can't
> select any files from it.

I get it a bit better now... thanks.

> Hope I have cleared some things up and I apologize in advance if my message is
> a bit harsh.

You have nothing to apologize for... thanks for taking time to clear
it up.


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87fwijjrlg.fsf@newsguy.com">http://lists.debian.org/87fwijjrlg.fsf@newsguy.com
 

Thread Tools




All times are GMT. The time now is 05:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org