Registered Member
|
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:
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:
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... |
Administrator
|
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] |
Registered Member
|
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()));
|
Administrator
|
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).
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.
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 |
Registered Member
|
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. |
Registered Member
|
Renaming them *is* a option. But in your case it may be a tedious one. That's why Hans'
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()));
|
Administrator
|
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."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
unfortunately, instead of solving it the workarounds are very anti-intuitive for non-geeks (or in other words "normal people").
|
Registered Member
|
considering I made the topic I don't see the problem in that...
I do consider myself a geek 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... |
Administrator
|
@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...
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar