This forum has been archived. All content is frozen. Please use KDE Discuss instead.

display .desktop's "name" instaid of filename

Tags: None
(comma "," separated)
User avatar
foxofinfinety
Registered Member
Posts
22
Karma
0
OS
I made two shortcuts in using folderview on the panel.
but I have one small problem:
it shows the file names, but I want it to display the "name" field of the .desktop files instaid of "file.desktop".

the files are these:
Code: Select all
seamless.desktop
compas.desktop
exel.desktop
iexplorer.desktop
notepad.desktop
outlook.desktop
powerpoint.desktop
total_commander.desktop
word.desktop


these are all applications that should be started from a Citrix server, when I click on them the Citrix Receiver is launched and they work.
but I want it to display this:
Code: Select all
Citrix Presentation Server Console
Compas
Exel 2003
Internet Explorer (synergy)
Notepad
Outlook 2003
Powerpoint 2003
Total Commander
Word 2003
as they are named in using name="" in the .desktop files.
I also have a second widget containing RDP connections which are named using the last 3 digits of the local IP (192.168.100.<these>) for them followed by .desktop, while there name="" fields are there host-names.

is there a way to make it display that? but automatically, so if I add a program (or we get a new server) that I can also see it like that.



while talking about folder-view widgets:
is there a way to change there icon? I now get the "home" icon but that's not exactly relative to the content...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Assuming you have the shortcuts in the ~/Desktop directory, then you can use the "desktop:/" IO slave to show those names.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
You can rename them anything you want, even without extensions and any desktop will still recognize them.

See http://imagebin.ca/view/Ayp-Nz.html
Those are .desktop files named exactly as you see.


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
foxofinfinety wrote:while talking about folder-view widgets:
is there a way to change there icon? I now get the "home" icon but that's not exactly relative to the content...


You get the same icon as the folder the widget is pointing to, except when you point it to Home (in which case it shows the "home" icon. I guess it has to do with Places in Dolphin).

dpalacio wrote:You can rename them anything you want, even without extensions and any desktop will still recognize them.

See http://imagebin.ca/view/Ayp-Nz.html
Those are .desktop files named exactly as you see.


For convenience you could create a script to automatically rename the icons, although you have to ask someone else than me how to do it. :p


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
foxofinfinety
Registered Member
Posts
22
Karma
0
OS
it's not pointing to the desktop.
but to ~/.ICAClient/pma_menu_items/ and ~/.ICAClient/RDP_connections/
I used to use "Quick Access" and it will show them by the names, but it makes each item a lot smaller, and I sometimes click the wrong item then.
then I have to wait for a program I don't want to start just so I can close it, and Citrix is slow.


renaming them is not really an option, since there a lot of items, the onces I listed are not all, I just made a short list, especially counting all the servers.



edit:
also, there is a bug, it you edit the setting for a folder-view widget and in previews you select "desktop configuration file", plasma crashes.
User avatar
dpalacio
Registered Member
Posts
240
Karma
2
OS
Renaming them *is* a option. But in your case it may be a tedious one. That's why Hans'
Hans wrote:For convenience you could create a script to automatically rename the icons, although you have to ask someone else than me how to do it. :p
Is the best solution in this case. If you do not know how to do that, somebody else could help you.

Something like
for i in *.desktop; do grep ^Name $i; ? ? ? ?; profit!; done


connect(post, SIGNAL(readSignature()), qapp, SLOT(quit()));
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
For a quicker solution, use the desktop:/ io-slave, which will not display .desktop extensions.

It can also be used with other folders, but you need to keep it relative to the Desktop folder (as defined in the paths in System Settings). Example:

~/Documents --> desktop:/../Documents

(Thanks to fredrikh on IRC for the explanation)


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
javielillo
Registered Member
Posts
3
Karma
0
OS
unfortunately, instead of solving it the workarounds are very anti-intuitive for non-geeks (or in other words "normal people"). :-/
User avatar
foxofinfinety
Registered Member
Posts
22
Karma
0
OS
considering I made the topic I don't see the problem in that...
I do consider myself a geek :P

and desktop:/ doesn't work for hidden folders...
at least, apparently...

and I prefer not to use script to rename, if you make one typo in the script they'll get names I don't want them to, I once tried to use a script.
but...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
@javielillo: Are you aware of any other solutions? The desktop:/ KIO slave is the only one which is capable of performing this task.

@foxofinfinety: I just tested the desktop:/ KIO slave error with a hidden folder and it worked fine...
Code: Select all
kioclient copy desktop://../.config/Trolltech.conf $HOME


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar