You are not logged in.
Pages: 1
I wanna change the theme of my Xfce at startup, I wrote a simple script that uses xfconf-query:
#!/bin/bash
xfconf-query -c xsettings -p /Net/ThemeName -s "ThinIce"
when I run it manually, it works well, but when I set it to run at startup using crontab and @reboot, it doesn't work.
Any sugestion to a solution?
Offline
use it as on in xfce4-settings-manager "Application Autostart";
for example (" ") :
create a executable under /usr/bin/"change-to-theme" - with:
((you can do it as root-user with mousepad, open a new file, edit with bellow text[your lines above], safe it as /usr/bin/change-to-theme, and check in thunar as root-user the permissions, there owner should be root have read+write, all others only read and this must be executable ))
#!/bin/bash
xfconf-query -c xsettings -p /Net/ThemeName -s "ThinIce"
then add it under xfce4-settings-manager > session and startup > application autostart > Add...
give them a NAME: ,a DESCRIPTION: and as COMMAND: /usr/bin/change-to-theme
- the /usr/bin is not always needed
>> the advantage is, xfce4 sorted it to work
Offline
It worked, thanks!
Is there a way to do that in command line?
Because I'm customizing an ISO using the terminal, and I can't use the GUI.
Or could I modify an script of the system and just add the command to change the theme?
Offline
many differences on different systems/distributions
i use and work on pclinuxos, others have other startup-script's, ...
sorry, but i can not knowing all
Offline
Try creating a .desktop file in /etc/xdg/autostart with the following content:
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Change Theme
Comment=Change the theme on startup
Exec=/usr/local/bin/change-theme
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
...create the file /usr/local/bin/change-theme with the content:
#!/bin/bash
xfconf-query -c xsettings -p /Net/ThemeName -s "ThinIce"
...and make the file executable.
This will get executed on Xfce startup.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
It worked!
Thank you so much!
Offline
Pages: 1
[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 534.69 KiB (Peak: 535.53 KiB) ]