Forum › Forums › General › Tips and Tricks › Script to restart fluxbox session
- This topic has 5 replies, 3 voices, and was last updated Apr 11-4:30 pm by Jockel.
-
AuthorPosts
-
April 11, 2020 at 9:07 am #34578Member
Jockel
Hi,
is use a virtual machine with antix. It’s running great so far. One little problem is the occurance of displaced desktop symbols and conky app. This has to do with the system resolution. I tried to fix it, but was to complicated.
i managed to bypass the problem by restarting my fluxbox seassion via the fluxbox menu.
To symblfy this task i would like to create a script on the destop so that i just have to klick the file to reset my desktop.
Can you tell how to create this script?April 11, 2020 at 9:36 am #34583Member
Xecure
::Option 1. in /usr/share/applications/antix copy the desktop-session-exit.desktop file to your desktop. When executing it (by clicking) you then choose “Restart Session”.
Option 2. Create your own script (be it a .sh script or a .desktop file) that executes
desktop-session-exit -RantiX Live system enthusiast.
General Live Boot Parameters for antiX.April 11, 2020 at 9:48 am #34585MemberJockel
::Solution 2 is the one i searched 🙂
Ok, i created created the .sh file. But if i doubleclick it it’s opened in my editor. How do i create an executeable .sh file? I don’t wanna start it via terminal.
April 11, 2020 at 10:02 am #34587Member
Xecure
::Step by step guide:
1. Create a new file and name it (for example “Restart Session.sh”)
2. Open it with any text editor (for example, geany)
3. Write this into the file:#!/bin/bash desktop-session-exit -R4. Save and close the text editor.
5. Right-click the Restart-session.sh file and make the file executable. Depending on your File Manager:
5.1 If using ROX filer, select “Properties” and then tick the option under Exec for the file owner
5.2 If using SpaceFM, select “Info” and in the Permissions tab of the new window, tick under “Execute” for the file owner.Hit OK and it should be done. every time you double click the file you will be executing the script.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.April 11, 2020 at 1:18 pm #34600Forum Admin
Dave
::You could also make a .desktop file and place that on the desktop to avoid using an additional script. Either manually or through add-desktop (I think menu-manager also makes .desktop files) If you use desktop-session-exit -R in the executable line.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
April 11, 2020 at 4:30 pm #34604MemberJockel
-
AuthorPosts
- You must be logged in to reply to this topic.