LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-10-2022, 06:44 PM   #1
TheJooomes
Member
 
Registered: May 2019
Posts: 226

Rep: Reputation: 2
How do I make XFCE see $HOME/bin? (Debian 11)


End goal is to cripple xfdesktop, just for my user, because it interfers with using i3 as XFCEs window manager.

I've made the script $HOME/bin/xfdesktop that just echos "fuck xfdesktop". A slightly humorous potential solution. The idea is XFCE will execute that instead of /usr/bin/xfdesktop and accomplish nothing. But I'm having trouble getting XFCE to run $HOME/bin/xfdesktop instead of /usr/bin/xfdesktop.

I've tried adding export PATH="$HOME/bin:$PATH" to .bashrc, .bash_profile, .profile, and the XFCE Startup items. echo $PATH shows that /home/user/bin is part of $PATH. I created the script $HOME/bin/bruh that touches $HOME/bruh, just to see if XFCE would execute bruh from $HOME/bin. And it didn't.

If nothing else, how can I cripple xfdesktop just for my user.
 
Old 11-10-2022, 11:28 PM   #2
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
Not sure. You could try deleting /usr/bin/xfdesktop, or replacing that with your script. Or try to find from where /usr/bin/xfdesktop is loading and replace that line with yours. Just some thoughts.
 
Old 11-11-2022, 12:12 AM   #3
lvm_
Senior Member
 
Registered: Jul 2020
Posts: 1,557

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Shell initialisation files (.bashrc, etc) are not used during GUI startup. Usually setting variables in ~/.xinitrc works but there are variations e.g. on debian ~./xsessionrc is executed instead. Check what your /etc/X11/Xsession does, user scripts are started from there.
 
Old 11-11-2022, 07:30 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: Heaven
Distribution: Debian Sid/RPIOS
Posts: 4,916
Blog Entries: 29

Rep: Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540Reputation: 540
This is what I have in my .bashrc
Code:
# Fix PATH
PATH=$PATH:/home/pi/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pi/.local/bin:/home/pi/.cargo/bin:
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Copy /home dir. old laptop (Mint 19.1 XFCE) to new laptop (Mint 19.1 XFCE)? Klaas Vaak Linux - Laptop and Netbook 15 05-05-2019 08:54 AM
echo $PATH shows /usr/kerberos/bin:$PATH:$home/bin klcrowder1 Linux - Server 2 03-14-2013 06:14 AM
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration