Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Startup Applications XFCE - How to minimize? How to delay? -

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
User avatar
sickpig
Posts: 591
Joined: 2019-01-23 10:34
Been thanked: 1 time

Re: Startup Applications XFCE - How to minimize? How to dela

#21 Post by sickpig »

Jean Charalab wrote:two issues are considerig as multiples...? whatever...
You can specify After=network-online.target in the [Unit] section of your service if you want to start it without use of timer. That should take care of the network dependency.

joshi123
Posts: 1
Joined: 2020-09-19 14:49

Re: Startup Applications XFCE - How to minimize? How to dela

#22 Post by joshi123 »

Folks the rise up VPN that I'm utilizing it appears has some system that it revamps its autostart config after each reboot. So any alters there are important. I previously attempted the beginning limited and other comparative orders and they didn't work. I'm going to attempt the last proposal. Much obliged for the reaction.

filliphey
Posts: 5
Joined: 2023-01-11 09:36
Has thanked: 1 time

Re: Startup Applications XFCE - How to minimize? How to delay? -

#23 Post by filliphey »

Jean Charalab wrote: 2020-08-31 15:02 Good evening. So im searching since yesterday how to auto minimize the viber app in very startup, but anything that i used hasnt work. Also im trying to delay the startup of my vpn in order for it to wait first the network manager to establish connection and then do its work, but unfortunately the command i found ( ch -s "sleep 20 && appname or something like it ) it works only in first restart, after this it get reseted? and becomes again as it was before ( theappaname ). Any thoughts or suggestions to fix these? Thanks.
Certainly! Let's address both of your concerns:

Auto Minimize Viber on Startup:
To automatically minimize the Viber app on startup, you might need to use a script or a third-party tool, as Viber itself might not have a built-in option for this. Here's a basic script you can create:

Create a Script:
Open a text editor and create a new script. For example, use the command:

Code: Select all

#!/bin/bash
sleep 10  # Give Viber some time to fully start
wmctrl -r "Viber" -b add,iconic
Save this file with a .sh extension, for instance, minimize_viber.sh.

Make it Executable:
Open a terminal and navigate to the folder where the script is saved. Run:

Code: Select all

chmod +x minimize_viber.sh
Set it to Run on Startup:

Open your system's "Startup Applications" manager.
Add a new startup program and point it to your script.
Now, when your system starts, it should wait for a few seconds (adjustable by changing sleep 10), then minimize the Viber window.

Delay VPN Startup:
The issue you're facing with the VPN startup delay might be due to the fact that the system is resetting the settings. You might need to make sure that your changes persist across restarts. Here's an alternative approach using systemd:

Create a systemd Service:
Create a .service file, for example, myvpn.service, with the following content:

Code: Select all

[Unit]
Description=Delay VPN Startup

[Service]
Type=simple
ExecStart=/bin/bash -c 'sleep 20 && your_vpn_command_here'

[Install]
WantedBy=default.target
Customize the ExecStart line with your actual VPN command.

Move the Service File:
Move this file to /etc/systemd/system/:

Code: Select all

sudo mv myvpn.service /etc/systemd/system/
Reload systemd:

Code: Select all

sudo systemctl daemon-reload
Enable the Service:

Code: Select all

sudo systemctl enable myvpn.service
Now, your VPN should wait for 20 seconds after startup before initiating.

Post Reply