Stopping Program from Auto-Starting

Hello All,

*Running the following on a CuBox-i2 (arm mini-pc):


WINDOW MANAGER --> XFCE version 4.10

# cat SuSE-release
# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead
openSUSE 13.1 (armv7hl)
VERSION = 13.1
CODENAME = Bottle

# cat os-release
NAME=openSUSE
VERSION="13.1 (Bottle)"
VERSION_ID="13.1"
PRETTY_NAME="openSUSE 13.1 (Bottle) (armv7hl)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:13.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"

# uname -a
Linux CuBox-ExtonHQ 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux

So I’ve been running this for a few weeks now and suddenly yesterday when I booted up the PC after I get auto-logged-in, a xfce4-terminal window opens on the desktop fully maximized… While this is not so much a bad thing that’s happening, I have no idea why and I can’t figure out how to prevent it from starting by itself like that…

I checked in:

  • XFCE’s* Settings Manager > Session and Startup, but there was nothing in there about that.
    I also check in, YaST > Service Manager, but nothing in there about that either *(probably wouldn’t be in here anyway since it’s not a service)…

But does anyone know where I can look to try and stop this from starting on its own?

Any thoughts or suggestions would be greatly appreciated!

Thanks in Advance,
Matt

You possibly have it set to save your session on logout and restore it on login. As far as I know, the only place to set that is on the logout menu.

I think the sessions are saved in “$HOME/.config/sessions”

Yes,
And of course if this is the case the easiest solution is to manually close all running apps (Inspect the taskbar) before shutting down.

TSU

Hey Guys, thank you both for the replies, much appreciated!

You possibly have it set to save your session on logout and restore it on login. As far as I know, the only place to set that is on the logout menu.

I think the sessions are saved in “$HOME/.config/sessions”

Yea I had thought about that, but I checked for that directory and it is not in the ~/.config directory… I made sure to check ALL sub-dirs in .config too, so I’m pretty sure it doesn’t exist, at least not in that dir. But, I don’t remember ever messing with save session or anything like that, but I guess anything is possible…

Yes,
And of course if this is the case the easiest solution is to manually close all running apps (Inspect the taskbar) before shutting down.

Yea, but I always try and make sure to close out everything that is open on the desktop before I shutdown. And anyway I don’t ever usually maximize terminal windows either… The strange thing it this just started happening a few days ago, and it does the exact same thing on each login… No clue why though?

Is there any log I could/should look at that might give a hint as to who or what is starting the terminal window?
I guess I can reboot and when I get logged back in check **ps **-ef to see who started that terminal window…

Thanks again for your replies fellas, much appreciated!

Thanks Again,
Matt

I can’t really check on my own systems, because I have not recently saved an XFCE session. That’s because I mainly use KDE. You might also check under “$HOME/.cache”. I have a vague memory that it might have been there.

When I was trying XFCE more extensively, here’s what I would do:

  1. Login, and setup a session exactly as I wanted it.
  2. Logout. On the logout menu, I would check the box to save the current session on logout.
  3. Login again. Make sure everything is as I want it.
  4. Logout again. This time, uncheck the box about saving the current session.

Thereafter, I would get that same saved session, and the logout menu would default to not saving.

The best fix is to delete the save session, if you can find it. The alternative would be to save an empty session, using roughly the steps above.

On 2014-12-05 22:46, mmartin0926 wrote:

> Is there any log I could/should look at that might give a hint as to who
> or what is starting the terminal window?
> I guess I can reboot and when I get logged back in check *ps *-ef to
> see who started that terminal window…

That’s a good idea. But no need to reboot, just log out, then log back in.

For instance, on every login, in xfce, I get a popup message with this “warning”:


Could not open or invalid data: %U

which I know where it comes from, but I haven’t killed because I wanted to do a bug report, which I keep forgetting to do.

Closing the popup, saving the session, doesn’t help, it reappears. It is some other program, not session start directly, which calls it.

Running “ps afxu” I can see it:


cer       5632  0.0  0.0  13112   496 ?        S    Dec04   0:00 /bin/sh /usr/bin/oyranos-profile-install %U
cer       5643  0.0  0.0  30820   772 ?        S    Dec04   0:00  \_ oyranos-profiles --gui --install -u %U
cer       5672  0.0  0.1 578564 11876 ?        Sl   Dec04   0:00      \_ zenity --warning --text Could not open or invalid data: %U

(ps aef doesn’t find it)

Who exactly is calling “/usr/bin/oyranos-profile-install” I don’t know, or I have forgotten. Probably the latter :wink:


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I’m not running XFCE but your answer is probably here…
Scroll down (or search) on this page “Disable sessions”
https://wiki.archlinux.org/index.php/xfce

TSU

… or set it to NOT save your sessions, which is my preference.:wink:

Which should now be known how to configure with my last previous post
:slight_smile:

TSU

Cross-posting at its best … :wink:

I have created a session in XFCE. It auto-starts.

The session appears to be saved in two files:


$HOME/.cache/sessions/xfce4-session-$HOSTNAME:0
$HOME/.cache/sessions/xfwm4-{funky_name_that_looks_like_a_UUID}.state

Deleting those two files should remove that saved session.

My test saved session simply has an “xterm” window at the bottom right, and it is visible on all XFCE workspaces.

I created that session as in post #5 in this thread.

On 2014-12-07 04:16, nrickert wrote:
>
> mmartin0926;2680958 Wrote:
>> But does anyone know where I can look to try and stop this from starting
>> on its own?
>
> I have created a session in XFCE. It auto-starts.
>
> The session appears to be saved in two files:

Menu → settings manager → Session and startup

Session tab in the dialog.

Clear saved sessions.

Done.

On the tab at the left, “Application autostart” you can manually
select/deselect apps.

On the “session” tab you can change settings for individual items. I see
dozens of lines for my many opened xterms.

> My test saved session simply has an “xterm” window at the bottom right,
> and it is visible on all XFCE workspaces.

The same xterm on every workspace? That’s not the default. Not on 13.1,
at least.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

This was with 13.2. I agree that it is not the default.

I opened an “xterm” with the menu. I moved it to the bottom right. I right-clicked on the window header and set it to be always visible (I’m going by memory, since I am not in XFCE at the moment). Then I logged out, and set the option to save the session and restore on next login.

I like having a terminal always available. At present, in KDE, I am using “yakuake” for that. With XFCE, I use an “xterm”.

Find out in your /home/user/.config if you have a folder named autostart
and delete or rename the app you don’t want to start. It looks like this

**someapp.desktop**

Hey Everybody, thanks for the replies!

We’ll when I powered on the CuBox today, no applications were open when it logged me in. So maybe it was the saved session thing and I may have accidentally left a terminal open on another workspace, or something like that.

Yea I checked the Saved Sessions settings and I saw the options in attached screenshot.
I changed the settings to never for the terminal, so I don’t think it will happen again…

                http://i1326.photobucket.com/albums/u658/mrm5102/XFCE_Sessions_and_Startup_Settings_zpsf1c261fd.jpg

Thanks everyone for the replies, much appreciated!

Thanks,
Matt

On 2014-12-07 16:46, nrickert wrote:

> I like having a terminal always available. At present, in KDE, I am
> using “yakuake” for that. With XFCE, I use an “xterm”.

I use dozens, with different sizes, positions, and workspaces. I’d like
them to be restored to the exact place it was previously, with the exact
same size. But that doesn’t happen, some are incorrect.

In some cases, I have scripts to open half a doxen or more xterms at
some precise locations and sizes, with some defined current directory. I
do this for certain jobs, so as to create the layout I want. These are
not restarted correctly on session restart, I have to close them and run
the script again.

Or firefox. I use many windows, some with certain links opened on
certain workspaces. On restart, all appear on the same workspace, which
can be the current one (number 1) one at login, instead of the one I want.

So, I have my nuisances and tricks to try work around them…


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I used to do that when I was managing several department servers.