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.Jean Charalab wrote:two issues are considerig as multiples...? whatever...
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? -
Re: Startup Applications XFCE - How to minimize? How to dela
Re: Startup Applications XFCE - How to minimize? How to dela
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.
Re: Startup Applications XFCE - How to minimize? How to delay? -
Certainly! Let's address both of your concerns: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.
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
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
Move the Service File:
Move this file to /etc/systemd/system/:
Code: Select all
sudo mv myvpn.service /etc/systemd/system/
Code: Select all
sudo systemctl daemon-reload
Code: Select all
sudo systemctl enable myvpn.service