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

If none of the more specific forums is the right place to ask

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

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

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

Postby Head_on_a_Stick » 2020-08-31 15:29

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.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12488
Joined: 2014-06-01 17:46
Location: /dev/chair

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

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

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

Postby CwF » 2020-08-31 19:07

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.
CwF
 
Posts: 767
Joined: 2018-06-20 15:16

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

Postby cuckooflew » 2020-09-01 17:36


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!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

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

Postby CwF » 2020-09-01 18:05

cuckooflew wrote: ch - SCSI media-changer (juke box) driver


Well I'll be! I actually have some! Pioneers and Nakamichi's !
CwF
 
Posts: 767
Joined: 2018-06-20 15:16

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

Postby oswaldkelso » 2020-09-02 13:37

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:
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1269
Joined: 2005-07-26 23:20
Location: UK

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

Postby Jean Charalab » 2020-09-04 00:22

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

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

Postby sickpig » 2020-09-04 01:24

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
User avatar
sickpig
 
Posts: 474
Joined: 2019-01-23 10:34

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

Postby CwF » 2020-09-04 01:33

^ what he said..
The command in the autostart.desktop file isn't full bash, do the script.
CwF
 
Posts: 767
Joined: 2018-06-20 15:16

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

Postby sgosnell » 2020-09-04 01:49

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.
sgosnell
 
Posts: 781
Joined: 2011-03-14 01:49

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

Postby Jean Charalab » 2020-09-04 01:57

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

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

Postby sgosnell » 2020-09-04 16:52

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.
sgosnell
 
Posts: 781
Joined: 2011-03-14 01:49

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

Postby Jean Charalab » 2020-09-04 21:27

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

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

Postby sgosnell » 2020-09-04 22:04

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.
sgosnell
 
Posts: 781
Joined: 2011-03-14 01:49

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable