How to update icon on the homescreen without full homescreen refresh or reboot ?
Someone know how to update specific icon (.desktop file) on the homescreen.
For example my script change profile -> remove icon -> remove .desktop file -> copy new icon -> create new .desktop file with the same name. In most cases after changing profile it not show me new icon and the name of the new profile from new .desktop file. It just show me the old name (previous profile) and empty icon :( How I can cause to show me what I need without full refresh (lipstick) or reboot ? I found this file: /usr/bin/xdg-desktop-icon Inside this file it have some nice explanations like: Quote:
Code:
xdg-desktop-icon install /path/to/new(same_name).desktop Any advice ? Thanks |
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
delete desktop, call desktop-file-install, create desktop, call desktop-file-install is the only way.
|
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
Hmmm but how I will "call desktop-file-install" if in this moment desktop file already deleted ?
Or your don't mean to this command "xdg-desktop-icon install" ? If not, what the exactly command your mean ? Thanks EDIT: you mean to this one: /usr/bin/desktop-file-install I will try and report. |
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
Andrey, big thanks! It work exactly like I need it :)
|
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
If I create a desktop file that updates correctly the way you describe, and I put it into a folder in the app menu along with some other apps, when executed it'll update but reappear outside the folder. I was looking around for somewhere to define it's location to keep it inside the folder (something in the .desktop files or… wasn't there .folder or .directory files in Fremantle?) but I can't see anything. Any ideas?
|
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
Quote:
Check this two files: Code:
/home/nemo/.config/lipstick/applications.menu I didn't try it yet.. |
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
Quote:
|
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
Nope, that didn't work… :(
Edit: After editing ~/.config/lipstick/applications.menu I tried restarting lipstick with 'systemctl-user restart lipstick.service' which gave a blank screen, blinking green LED and the app in the desired place, in that order, haha! Not a very smooth solution... |
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
How you tried this ?
try: 1. copy both files 2. update icon like coderus wrote 3. restore both files. Create simple script for this. |
Re: How to update icon on the homescreen without full homescreen refresh or reboot ?
Quote:
|
All times are GMT. The time now is 18:40. |
vBulletin® Version 3.8.8