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
Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#1 Post by Jean Charalab »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

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

#2 Post by Head_on_a_Stick »

Jean Charalab wrote:So im searching since yesterday how to auto minimize the viber app in very startup, but anything that i used hasnt work.
You need to post exactly what you have tried or everybody's time will be wasted by people suggesting things you have already confirmed not to work.
Jean Charalab wrote: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
Please provide more detail — where exactly did you enter that command and what *exactly* did you use? I've never heard of a 'ch' command, do you actually mean 'sh'?

And anyway you should stick to a single problem per thread to aid SEO when other people with the same problem are searching for a solution — these boards are supposed to be a community resource rather than a help desk.
deadbang

Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#3 Post by Jean Charalab »

Unfortunately i cant post every single post i ve read in web, they were like 15 and scattered. The XFCE DE has in its settings a startup tab, there you can add apps in order to start along with the system ( im sure you already know this ). There i add my commands. The sleep command for the vpn and for viber i tried -minimized, -startintray and other.

CwF
Global Moderator
Global Moderator
Posts: 2681
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

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

#4 Post by CwF »

There should be ~/.config/autostart/ desktop file create for you, append or edit with 'Hidden=true'.
When the command line switch works this can be =false. As far as a delay, don't use autostart if a script doesn't play well. Create a button or other solution. I use a hidden 'verve' plugin loaded with multiple choice actions to configure such things.

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

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

#5 Post by cuckooflew »


Unread postby Jean Charalab » 2020-08-31 16:18
Unfortunately i cant post every single post i ve read in web, they were like 15 and scattered.
Well no one expects that, and just reading some posts is not the same as actually trying something:
You need to post exactly what you have tried
All we ask is that you clarify what you actually have tried.

Code: Select all

 ch -s "sleep 20 && appname or something like it 
What is that supposed to do ? ahh, never mind:

Code: Select all

parrot$ man ch
CH(4)                        Device Drivers Manual                       CH(4)

NAME
     ch - SCSI media-changer (juke box) driver

SYNOPSIS
     ch? at scsibus?

DESCRIPTION
     The ch driver provides support for SCSI juke boxes.  It allows many slots
     of media to be multiplexed between a number of drives.

     A SCSI adapter and a logical scsibus must also be separately configured
     into the system before a SCSI changer can be configured.

     As the SCSI adapter is probed during boot, the SCSI bus is scanned for
     devices.  Any devices found which answer as "Changer" type devices will
     be "attached" to the ch driver.  The first device found will be attached as ch0 and the next ch1, etc  It is also possible to specify what ch
     unit a device should come on-line as; refer to scsi(4) for details on
     kernel configuration.-----snip---
SEE ALSO
     chio(1), cd(4), intro(4), scsi(4), sd(4), st(4)

  
But I have not seen the 'ch' driver on Debian, are you using some other distro ?
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

CwF
Global Moderator
Global Moderator
Posts: 2681
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

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

#6 Post by CwF »

cuckooflew wrote: ch - SCSI media-changer (juke box) driver
Well I'll be! I actually have some! Pioneers and Nakamichi's !

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1495
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 60 times

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

#7 Post by oswaldkelso »

I was going to suggest sleep and xdotool for the start, minimise bit, but was unsure of the closing the running process with systemd once logged out. So I searched for
"linux start application minimised"
first hit has lot's of options. Though I'd prefer a more concise human readable solution.
https://askubuntu.com/questions/663187/ ... -minimized

I'd put money on it that if I search
"linux close user applications on logout"
that would have an answer also.
That would be all 3 components the op asked for. delayed start, minimise and kill on log out.

Some of the joys of being a boomer :lol:
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#8 Post by Jean Charalab »

[quote="CwF"]

My problem with autostart config is that its resets it self in every reboot. So any change i make into it its erased.

User avatar
sickpig
Posts: 589
Joined: 2019-01-23 10:34

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

#9 Post by sickpig »

Jean Charalab wrote: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
You can create a script with something like

Code: Select all

viber && xdotool windowminimize $(xdotool search --class viber|tail -1)
to minimize it after its launched. Replace viber with the actual app name.

As for delayed start systemd.timers are your best friend. You can do something like

Code: Select all

[Unit]
Description=firefox

[Timer]
OnActiveSec=15000ms
AccuracySec=10ms

[Install]
WantedBy=timers.target

Code: Select all

[Unit]
Description=firefox

[Service]
Type=simple
Environment=DISPLAY=:0

ExecStart=/dev/shm/ff/firefox
create corresponding units for your startup applications. It will give you granular control over sequential start of your apps. You can spread out the duration of your timer units.

Then create a simple bash script to list all of your timers and services and chuck it in xfce's autostart menu.

Code: Select all

#!/bin/bash
systemctl --user start RsyncFoxToRam.timer
systemctl --user start Setresolution.timer
systemctl --user start conky.timer
systemctl --user start pcmanfmstartwo.timer
systemctl --user start geany.timer
systemctl --user start firefox.timer
Or create a .desktop and add it in .config/autostart

edit - the systemd.units will go here - /home/$youruser/.config/systemd/user

CwF
Global Moderator
Global Moderator
Posts: 2681
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 196 times

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

#10 Post by CwF »

^ what he said..
The command in the autostart.desktop file isn't full bash, do the script.

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

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

#11 Post by sgosnell »

Have you tried putting

Code: Select all

/opt/viber/Viber StartMinimized
as the start command in the session/startup manager? I don't use Viber, but that's what multiple websites report.
Take my advice, I'm not using it.

Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#12 Post by Jean Charalab »

Guys the riseupvpn that im using it seems has some mechanism what it rewrites its autostart config after every reboot. So any edits there are meaningful. I already tried the startminimized and other similar commands and they didnt work. Im gonna try the last suggestion. Thanks for the responds.

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

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

#13 Post by sgosnell »

Riseup VPN shouldn't be affecting startup parameters. It's not started until later, and only affects external traffic. I don't believe it has any effect on your issues. You can test that by disabling it temporarily. I have seen issues where it causes some programs to fail to work properly by blocking traffic. It's not a perfect solution, but it probably is the best free VPN available.
Take my advice, I'm not using it.

Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#14 Post by Jean Charalab »

[quote="sgosnell"]

My issue is that riseup starts along or before the networkmanager establishes its connection which ends up into an error and a failure of it to connect properly into tunnel, thats why i need the delay command.

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

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

#15 Post by sgosnell »

Sorry, you're mixing issues. You should probably use a separate thread for each issue. I don't know what the problem with RiseUpVPN, it works for me. I've never needed to investigate the nuts and bolts, it just works.
Take my advice, I'm not using it.

User avatar
sunrat
Administrator
Administrator
Posts: 6476
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

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

#16 Post by sunrat »

sgosnell wrote:Riseup VPN shouldn't be affecting startup parameters.
Agreed, separate issues. I suspect these "startup parameters" are configured incorrectly.
It's not a perfect solution, but it probably is the best free VPN available.
It's not a free VPN. They say it costs them $60p.a. and they ask users to contribute at least that much to use it. I guess you can leech if you absolutely have to but if it's worth it for you to use, you should contribute if you can.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#17 Post by Jean Charalab »

[quote="sgosnell"] Brother im not mixing anything, i just want to make my vpn to delay just as the title and the first comment says

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

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

#18 Post by sgosnell »

I had been replying to your issue of how to start Viber minimized. You have stated multiiple issues in this thread. That confuses everything.

@sunrat: I've been making automatic monthly contributions to RiseUp for several years. Everyone gets the popup nag though, whether or not they've contributed. But technically it's free if one doesn't want to, or can't, contribute. I choose to help, just as I do for a number of other organizations.
Take my advice, I'm not using it.

User avatar
sunrat
Administrator
Administrator
Posts: 6476
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

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

#19 Post by sunrat »

Jean Charalab wrote:
sgosnell wrote: Brother im not mixing anything, i just want to make my vpn to delay just as the title and the first comment says
Which of the several excellent suggestions have you tried? The systemd timers posted by sickpig would seem to be just what you need.
sgosnell wrote:@sunrat: I've been making automatic monthly contributions to RiseUp for several years. Everyone gets the popup nag though, whether or not they've contributed. But technically it's free if one doesn't want to, or can't, contribute. I choose to help, just as I do for a number of other organizations.
Maybe I did words a bit wrong but I did say contributions should be made by those who are able. I too contribute there although only using email so far, and to other open source projects.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Jean Charalab
Posts: 12
Joined: 2020-08-31 14:55

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

#20 Post by Jean Charalab »

two issues are considerig as multiples...? whatever...

Post Reply